With the mailing application I'm working on, I catch SendFailedException to handle validation of recipient email addresses. After reading a bit more though, I learned that catch blocks are quite expensive. It made me wonder if there was any way to determine if an address is invalid before the message is sent. This is more of an optimization problem of sorts.

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


Does there exist $G$ such that  for a subgroup $H$ of $G$ , $gHg^{-1}$ is proper in $H$ for some $g\in G$ ?  It is clear that $H,G$ must be infinite. I look for examples in matrice groups and not found yet.

Let $G$ be a group, $H\subseteq G$ a subgroup and $a\in G$ an element of the group. Is it possible that $aHa^{-1} \subset H$, but $aHa^{-1} \neq H$?   If $H$ has finite index or finite order, this is not possible.


I would like to create a textbox in a windows form using C# .Net, that will be able to handle simple calculations. For example, if the user writes in the textbox =5*7 then when the textbox gets validated the textbox.Text = 35.   My question is how can I convert the string "=5*7" to doubles and symbols so as to make the calculations.

If I have a string with a valid math expression such as:  String s = "1 + 2 * 7";   Is there a built in library/function in .NET that will parse and evaluate that expression for me and return the result? In this case 15.


This has nothing to do with cookies or the problem concerning cookies as far as I know.   That being said, after I downloaded the new Pokemon update today (7/31/16) after opening the app, it prompted me to login.   I proceeded to login with my Google account. After I type in my email and password I click "allow" giving Pokemon GO permission to access my email and other things. After I click "allow" I get redirected to the Google homepage. From here, I cannot do anything except hit the "done" button.  After clicking done it prompts me to login. Over and over and over again. This has been going on all day and have not been able to find a solution.

I downloaded the July 30th update for Pokemon Go and when I open the app I'm prompted to login, But once I login, it redirects me to this page on Cookies::     If I click "Done" in the top left, it prompts me to login again! I've tried reinstalling the game, restarting my phone, etc. I can't much enable Cookies on the inline Safari browser. It doesn't make sense, and cookies are on in Safari (because I don't use Safari and they're enabled by default).  How can I fix this?


I am working on the layout of my PhD thesis. For designing purpose, I would like to suppress the chapter number and chapter title completely without disturbing section numbering (Figure below).    Well, I managed to remove the chapter title easily by \chapter{}. Although with \chapter*{} chapter number disappears, it affects the section numbers. Is there any way to achieve this without disturbing section numbering?  Please note that the Table of Content is not important.  Thank you in advance. :)  my (sample) working code is as below:  \documentclass[11pt,twoside,openright]{report} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{lipsum} \usepackage{appendix}  \usepackage{titlesec} \titleformat{\chapter}[display]    {\centering\huge\bfseries}{\LARGE\centering\MakeUppercase\thechapter\thispagestyle{empty}}{1pc}{} \titlespacing*{\chapter}{0pt}{0pt}{0pt}  \begin{document}  \tableofcontents \pagenumbering{arabic} \setcounter{page}{1}  %\chapter{Ch one} \chapter*{} \vspace{1cm} \begin{center}     \textbf{{\Large Abstract}} \end{center} \lipsum[2-3]  \mbox{} \vfill  \noindent This chapter is based on:\newline  \noindent Text text text Text text text Text text text Text text text Text text text Text text text Text text text Text text text Text text text Text text text Text text text Text text text Text text text Text text text Text text text Text text text .  \hspace{0pt} \pagebreak   \section{section 1} \lipsum[2-5]  \section{section 2} \lipsum[2-5]  \end{document}

How do I remove "Chapter N" from the chapters when using the book document class?  This does not appear in the TOC (which I don't want, either).  But it appears at the beginning of a chapter, and on each page, in the header.


I'm currently implementing a K-Nearest Neighbours model and I'm at the stage of splitting up the datasets for cross-validation.  I understand the need for the Training, Validation and Test sets, though one thing I'm unsure about is what to do with the Validation and Test sets after the model has been tuned and tested.  Is there any reason for not merging them back into the training set to provide more data? Or do I now leave them and refrain from touching them again?

TL:DR: Is it ever a good idea to train an ML model on all the data available before shipping it to production? Put another way, is it ever ok to train on all data available and not check if the model overfits, or get a final read of the expected performance of the model?    Say I have a family of models parametrized by $\alpha$. I can do a search (e.g. a grid search) on $\alpha$ by, for example, running k-fold cross-validation for each candidate.   The point of using cross-validation for choosing $\alpha$ is that I can check if a learned model $\beta_i$ for that particular $\alpha_i$ had e.g. overfit, by testing it on the "unseen data" in each CV iteration (a validation set). After iterating through all $\alpha_i$'s, I could then choose a model $\beta_{\alpha^*}$ learned for the parameters $\alpha^*$ that seemed to do best on the grid search, e.g. on average across all folds.  Now, say that after model selection I would like to use all the the data that I have available in an attempt to ship the best possible model in production.  For this, I could use the parameters $\alpha^*$ that I chose via grid search with cross-validation, and then, after training the model on the full ($F$) dataset, I would a get a single new learned model $\beta^{F}_{\alpha^*}$   The problem is that, if I use my entire dataset for training,  I can't reliably check if this new learned model $\beta^{F}_{\alpha^*}$ overfits or how it may perform on unseen data. So is this at all good practice? What is a good way to think about this problem?


I have a QC process that has a bunch of models that need to be sequentially run, and then the results manually inspected between each model.    I know how to manually set the default GDB for the Map Document (File-->Map Document Properties-->Default Geodatabase).  I also know how to manually set the default Geoprocessing Workspaces (Geoprocessing-->Environments-->Workspace).  I already have a "setup script" that generate a GDB, Feature Datasets, define the spatial reference, etc, and I would like to be able to integrate these steps into the setup procedure as well.  Can these settings be automatically set?  For example, I have tried arcpy.env.workspace, but that only appears to work within a script, not setting it at the "application" level.  Is this possible?    I know it seems like a small thing, but I have many "areas of interest" that we have to look at, and each one gets placed in its own MXD and GDB (so yes, I could do it by hand... over & over again).

I created a new gdb by  arcpy.CreateFileGDB_management('e:/Rstack', 'new.gdb') arcpy.env.workspace = 'e:/Rstack/new.gdb'   But how to set this new gdb as my default gdb by arcpy, without opening ArcGIS desktop? Setting env workspace does not seem to work here.


I'm pretty new to blender. I tried to find the answer to my problem without success... My viewport suddenly started to act weird. When I'm in object mode I didn't get the yellow diqplay to show what is the selected object. When I add a light, I can't see it in the display also. The light exist and I can tweak the values or rotate or scale but I have no icone to represent it in the viewport. When I'm in shading viewport My model is crop for no apparent reason. Same thing in the wireframe view. I tried to quit and relaunch but I got the same problem. Do you have any advice or solution with that?

When looking at my objects in 3d view I'm seeing a gray cone that seems to be hiding other objects.   Can anyone help me turn this off and explain what it is please.  Screenshots attached.


I have a Lenovo IdeaPad 310 with an Intel Celeron processor, 4GB RAM and 1TB HDD. Which Ubuntu version I can install?

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I want to make the magnified image arrangements as shown in the attachments for a sample image. But I have no clue how to make such magnified arrangements. Please provide a way to solve this problem.

Updated Below  I hope the title gets at what I'm trying to do. I have a large image for a thesis on an image processing topic, and I want show the large image, with zoomed in boxes (typically with the same aspect ratio). I also want colored frames overlaid on the large image to show what portions I'm magnifying. Here's an example:    I am currently accomplishing this by taking the large image and copying the desired zoomed areas into seperate images, and creating the overlaid frames, all in MATLAB. I then use the technique discussed in this  of mine to align all the images nicely.   My new question is, can a similar end product be created entirely within LaTeX so that the only external file I need is the original large image, and some LaTeX component (I'm thinking Tikz, but open to suggestions) creates the overlaid frames and cropped/ zoomed copies of it, then either arranges them as shown in my example, or uses the technique  to align them nicely.   Also, the example I showed is just a sample layout; ideally any solution would be flexible enough to allow rearrangement to some other reasonable arrangement, such as large image on top (full linewidth) with two or three zoom boxes in a horizontal line under it.   Thanks.  The image I'm working with is here:    Update  Please see Jake's response below for current best/ complete version of code. The only outstanding item is that, while subcaptions work and can be referenced with \subref{}, the spy library processes the labels multiple times, resulting in a warning about multiply defined labels.   As such, I have elected to not use subcaptions/ labels for now since the color-coding makes pretty clear the relationship between the zoomed images and the large one. The subcaptions can be removed by replacing the line   \newcommand\phantomimage{\subcaptionbox{\label{\pgfkeysvalueof{/tikz/subfigurename}}}{\phantom{\rule{\imagewidth}{\imageheight}}}}   with  \newcommand\phantomimage{\phantom{\rule{\imagewidth}{\imageheight}}}   I've started a separate question  about the multiply-defined labels with spy problem. I'll update this post again if any solution comes out of the new question.  Final Update   The subcaption issue has been resolved. Please see Jake's response below for final code and usage.


Real number is often used to represent a point in a 1-dimensional number line. Real numbers are written as $a$ where $a \in \mathbb{R}$.  Complex number is often used to represent a point in a 2-dimensional plane. Complex numbers are written as $a + bi$ where $a,b \in \mathbb{R}$ and $i^2 = -1$.  What about higher dimensional space?  We can extend the concept of complex number, and write a point in a 3-dimensional space as $a + bi + cj$ where $a,b,c \in \mathbb{R}$, but how do we define i and j?  Certainly, this also applies to 4-dimensional space. We can write a point in 4D as $a + bi + cj + dk$, how do we define $i,j,k$?  How about even higher n-dimensional space? Is there a system to define i,j,k,... that will extend to arbitrary dimensions? Is there a name for it?

Is there a third dimension of numbers like real numbers, imaginary numbers, [blank] numbers?


If $f\left( x \right) = x\cos \frac{1}{x},x \ge 1$. Then which of the following is the correct option for the domain $x \ge 1$ (A) $f(x+2)-f(x)<2$ (B) $f(x+2)-f(x)>2$ My approach is as follow $T\left( x \right) = f\left( {x + 2} \right) - f\left( x \right) = \left( {x + 2} \right)\cos \frac{1}{{x + 2}} - x\cos \frac{1}{x}$ $T\left( x \right) = x\left( {\cos \frac{1}{{x + 2}} - \cos \frac{1}{x}} \right) + 2\cos \frac{1}{{x + 2}} \Rightarrow T\left( x \right) = x\left( {2\sin \left( {\frac{{\frac{1}{{x + 2}} + \frac{1}{x}}}{2}} \right)\sin \left( {\frac{{\frac{1}{x} - \frac{1}{{x + 2}}}}{2}} \right)} \right) + 2\cos \frac{1}{{x + 2}}$ $T\left( x \right) = x\left( {2\sin \left( {\frac{{2x + 2}}{{2x\left( {x + 2} \right)}}} \right)\sin \left( {\frac{2}{{2x\left( {x + 2} \right)}}} \right)} \right) + 2\cos \frac{1}{{x + 2}} \Rightarrow T\left( x \right) = x\left( {2\sin \left( {\frac{{x + 1}}{{x\left( {x + 2} \right)}}} \right)\sin \left( {\frac{1}{{x\left( {x + 2} \right)}}} \right)} \right) + 2\cos \frac{1}{{x + 2}}$ $T\left( x \right) = 2\left( {\left( x{\sin \left( {\frac{{x + 1}}{{x\left( {x + 2} \right)}}} \right)\sin \left( {\frac{1}{{x\left( {x + 2} \right)}}} \right)} \right) + \cos \frac{1}{{x + 2}}} \right)$ From here onward how do I proceed

I have this function $$f(x) = x\cos(1/x)$$ defined for all $x \geq 1$.      How do I prove that    $$f(x+2)-f(x)>2$$    for all $x\geq 1$?   I found $$f'(x)= \cos(1/x) + \frac{\sin(1/x)}{x}$$ and $$f''(x)=-\frac{\cos(1/x)}{x^3}.$$ How do i use this information?


I am hoping that someone can help me to calculate voltage and current to the LED socket. I see that there are 3 batteries in series, plus a resistor (?). Thank you very much.

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 & = & \frac{V_{cc} - V_f}{I_f} \\   & = & \frac{5V - 3.3V}{20mA} \\   & = & 85\Omega \end{eqnarray} $$  All good so far.  However, if I use the calculator at , that gives me 100Ω. If I use the ElectroDroid app on my phone, that gives me 85Ω.  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?


I found  that suggests several options:   Create a lock file Create a PID file. flock solo   But what about his option:  Check ps to see if the executed command is currently running.  (A ps-check.sh script could even be included at the start of every cron job you create.)  I'm assuming that the reason I haven't come across this kind of solution is that it's a bad idea.  Why is this a bad idea?  ps-check.sh could return 1 if the command is already running. The cron script could call ps-check.sh like this:  #!/bin/bash #some script  #get current script name into variable #then use ps-check.sh to see if current script is already running #by supplying it with 2 things: script name and current PID me=`basename "$0"`     if (( $(ps-check.sh $me $$) == 1)); then   exit 1; fi # do more stuff   ps-check.sh would check to see if the script was already running under another PID.  Is there any case where a script would be running but not visible in ps? If sleeping?  EDIT - Conclusion:  I've decided to go with flock. Checking ps could work but I would probably have to handle a lot of conditions to make sure. I assume flock already handles most of those.

I have scheduled a cron job to run every minute but sometimes the script takes more than a minute to finish and I don't want the jobs to start "stacking up" over each other. I guess this is a concurrency problem - i.e. the script execution needs to be mutually exclusive.  To solve the problem I made the script look for the existence of a particular file ("lockfile.txt") and exit if it exists or touch it if it doesn't. But this is a pretty lousy semaphore! Is there a best practice that I should know about? Should I have written a daemon instead?


My website alancrookes.com display the results of a MySQL query in a HTML table. Some of the characters which are stored correctly in the database are displaying with as a black diamond with a question mark. I have added the code <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> to the HTML file but it doesn't help. Would anyone know how to solve this.  I have tried this  but to no avail. TIA.

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


A friend of mine has to set up a Windows server box and is in a hurry – the server must be running asap. He has successfully ordered a IBM System x3100 M5 with appropriate RAM and HDDs. However, there are difficulties in the delivery of the recommended operating system version, which is IBM Windows Server 2012 R2 Foundation, ROK, 1 CPU (the OS can be delivered but it will arrive a couple of days too late).  Because of the fact that I am a Linux guy, I am not too familiar with Microsofts licensing options and restrictions. Firstly, I am not sure if I really need IBM's ROK version for successful operation of the server (does it include important drivers that other distributions lack?). Secondly, I am not entirely sure if I could simply install an evaluation version first, and later on use the product key of the IBM Windows Server 2012 R2 Foundation, ROK, 1 CPU as soon as it has arrived (there seem to be only evaluation versions of the Essentials/Standard/DataCenter, but not for the Foundation). Would a Windows Server 2012 R2 Essentials work as well for my server? Does it include all required drivers?  So how should I tackle this situation? My favorite option would be to (of course legally) buy-download-burn the IBM Windows Server 2012 R2 Foundation, ROK, 1 CPU somewhere, but it seems that this is not offered. My second favorite alternative would be to download and burn a Windows Server version which can be migrated later on to the supported version. But I am a bit lost in Microsofts version and license jungle.

This is a  about Licensing.    Questions on licensing are off-topic on Server Fault.  If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to.    I have a question regarding software licensing. Can the Server Fault community please help with the following:   How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?


I have a thread group with a login part and a part that checks different webpages. I want the thread group to loop forever, since its used for monitoring. However I want to start the next loop when an error occurs on the login part of the thread, but I want the thread to continue when an error occurs on one of the webpages. I have tried to do this using jsr223 postprocessors/samplers/listeners with the following code:  Boolean result = sampleResult.isSuccessful();  if ( result == false){     sampleResult.setStartNextThreadLoop(true); }   I've also tried this using if controllers/while controllers but I cant figure out how I can accomplish this.   Can anyone help me out?

I have created a program which searches for files in a source folder. If it finds any file, it processes that file and moves it to a destination folder, then looks for a new file in the source folder. It has to keep on checking the source folder for a file.  I have used a thread to look for files in the source folder. The problem I am facing is whenever any exception is thrown during file processing, the thread gets stopped. I want the thread to be running even if an exception is thrown. It has to move the file that caused the error to some other folder and look for a new file in the source folder. How can I make the thread keep on running?  Eg:  public void run() {     try {         searchfile();     }     catch(Exception e) {         e.printStackTrace();     } }  public void searchfile(){   ... }     Update :   I should be more clear in my question. Actually there are 4 source folders and 4 destination folders. I have to perform the same operation in each source & destination pair. So i have created 4 threads in one class and do the operation in separate class.  class MainClass {    public static void main(String[] args){       for(int i=0;i<4;i++){          SearchClass search = new SearchClass();          Thread thread = new Thread(search);          thread.start();      }    }    }  class SearchClass {    public void run() {    try {       searchfile();    } catch(Exception e) {       e.printStackTrace();    } }  public void searchfile(){ ... } }   All the thread wont stop running eventhough it caught any exception in middle. How can i do that?


I've seen  which Microsoft put out covering how to remove SSL 2.0 on IIS 7.0 and earlier, but I can't find anything advising on how to do the same on IIS 7.5. The registry keys mentioned on that KB article are no longer in the registry.

Anyone know how to disable certain SSL versions and only enable others in IIS 7.5?


If I am new to a site and I raise a flag I can't tell how many I have raised or if I have an active flag.  Without any helpful flags on a site there is no link to that page to inform me of the statistics of my flagging habits.    How do I find this information without the link there?

The Problem  Currently if I flag a post, I cannot check the status of the flag unless I have prior helpful flags. This means, for example, that a new user who wants to check the status of his first flag cannot do so while it is pending (active).  This feature request is based on my experience on MSO, where I wanted to check the status of my flag but could not get to the summary page without cheating (tweaking my SO link to work with MSO). It also stems from this question, where the OP indicates he had the same issue:   My Proposal  If I have flagged any post, then show me a "flags" link (red arrow in image below). If I have any helpful flags, then the number of helpful flags should be displayed (blue arrow). If I have not flagged anything, then neither should be displayed (as with current site functionality).


I'm having a problem with declaring an instance of class. The code:  //main.cpp #include "klass.hpp"  int main(int argc, char** argv) {        Klass<Type::Big>* klass = new Klass<Type::Big>(); }  //klass.hpp #pragma once  enum class Type { Big, Medium, Small, };  template<Type T> class Klass { private: public: Klass(/* args */); ~Klass(); };  //klass.cpp #include "klass.hpp"  #include <iostream>  template<Type T> Klass<T>::Klass(/* args */) {    std::cout << "Hello from Klass class"; }  template<Type T> Klass<T>::~Klass() {   }   I'm trying to compile with:  g++ -std=c++17 -o test.exe .\main.cpp .\klass.cpp   And I'm getting the error:     undefined reference to `Klass<(Type)0>::Klass()'   collect2.exe: error: ld returned 1 exit status

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


Okay, so I am trying to be able to explain the answer to the question below to a friend, but I don't know how. I know that the process method doesn't change s and that the answer is ABCD (s is unchanged), but I don't know why. Is it because strings are immutable? My friend thinks it should be CBA. Any help?  public void process(String s)  {     s = s.substring(2, 3) + s.substring(1, 2) + s.substring(0, 1); }   What is printed as a result of executing the following statements (in a method in the same class)?  String s = “ABCD”; process(s); System.out.println(s);

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I mistakely installed ubuntu over my 1tb drive removing essential data and photos which took about 5 mins to install, so I want to know if I can use ddrescue in Ubuntu to create a virtual image of the drive to and then use TestDisk/Photorec to recover lost data? Or is it more recommended to use testdisk straight on the HDD drive?

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


If you are attuning to a magical ring the DMG magic item categories states:  Magic rings offer an amazing array of powers to those lucky enough to find them.  Unless a ring’s description says otherwise, a ring must be worn on a finger, or a similar digit, for the ring’s magic to function.  (emphasis mine) However, the DMG section Wearing and Wielding Items states  Using a magic item’s properties might mean wearing or wielding it. A magic item meant to be worn must be donned in the intended fashion: boots go on the feet, gloves on the hands, hats, and helmets on the head, and rings on the finger. Magic armor must be donned, a shield strapped to the arm, a cloak fastened about the shoulders. A weapon must be held in hand.  (emphasis mine) This appears to contradict the previous ruling, so what would qualify as a "finger or a similar digit"? Further on, it states  In most cases, a magic item that’s meant to be worn can fit a creature regardless of size or build. Many magic garments are made to be easily adjustable, or they magically adjust themselves to the wearer.  That leads to the question, could a toe ring work?  We then move toward gifted male* adventurers, pierced horn / tusk / frill / nose / ear, etc  *male is assuming anyone with traditionally male genitalia

Pretty much what it says on a label. I have a monster for my next adventure that has a pretty interesting ring in his treasure. Since it is intelligent, and would be able to use the ring, I don't see why the ring should be lying there in a chest waiting to be looted.  Monster would use the ring, if it only had hands or even fingers. Hold a second, are fingers even necessary in 5e?  For reference, assume it only has grasping / manipulating tentacles like a  (although it is not one); Said tentacles are very flexible, capable of fine manipulation, and have varying thickness.


After playing with vectors and complex numbers in Common Lisp, I became curious about something. Namely, how does the quote operator relate to these data structures?  For instance, when it comes to lists, the following examples are straightforward to me:  CL-USER> '(1 2) (1 2) CL-USER> ''(1 2) '(1 2)   Let's do the same with vectors:  CL-USER> #(1 2) #(1 2) CL-USER> '#(1 2) #(1 2) CL-USER> ''#(1 2) '#(1 2)   And complex numbers:  CL-USER> #c (1 2) #C(1 2) CL-USER> '#c (1 2) #C(1 2) CL-USER> ''#c (1 2) '#C(1 2)   To save space, I will just say that quoting characters behaves similarly.  My question is why is it that the # and '# evaluated to the same expression? What is the reason for that? What are the "guts" of this mechanism?

After making it through the major parts of an introductory Lisp book, I still couldn't understand what the special operator (quote) (or equivalent ') function does, yet this has been all over Lisp code that I've seen.    What does it do?


Okay, so I recently downloaded Ubuntu and installed it to run alongside Windows 7. When I started Ubuntu, I could not find my WiFi network in the network list. My ISP (Internet Service Provider) is Iburst (now Vox Telecom). It's been maybe two months now and I still can't find my WiFi network. My PC is rather new, and I later installed the exact same Ubuntu onto another, older laptop. It works just fine and it can find my WiFi network... What could be wrong?  My output when I run: lspci -nnk | grep 0280 -A2  05:00:0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01) Subsystem: Broadcom Corporation Device [14e4:0510] Kernel driver in use: bcma-pci-bridge   I tried the answers in , that @chili555 suggested but none of them worked. I tried everything, installed both the package in the list, and the one for after September 2016... I still can't find my WiFi network in the list...

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.


I`m wanting to install Ubuntu 13.10 on virtual machine(VirtualBox) but I got an error when I want to boot Ubuntu . .  This Kernel reguires the following features not pasent on the CPU:  pea Unable to boot - olease use a kernel appropriate for your CPU   Can anybody help me?

After burning Ubuntu 12.04 to a CD, I tried booting and got the message:  This kernel requires the following features not present on the CPU: pae  Unable to boot - please use a kernel appropriate for your CPU.   What does this mean?


I am trying to convert strings to dates in the format below. I would like to keep the timezone format such that when i retrieve it from the DB it will be parsed to the correct time.  Another example of the string i receive is "19 March 2014 10:32:04 GMT";  `string date = "19 March 2014 10:32:04 CEST";  Console.WriteLine(date);  DateTimeOffset result = DateTime.ParseExact(date, "dd MMMM yyyy HH:mm:ss Z",             CultureInfo.InvariantCulture);' `   This is for a .net API   Thanks  Dan

I'm trying to parse an international datetime string similar to:  24-okt-08 21:09:06 CEST   So far I've got something like:  CultureInfo culture = CultureInfo.CreateSpecificCulture("nl-BE"); DateTime dt = DateTime.ParseExact("24-okt-08 21:09:06 CEST",     "dd-MMM-yy HH:mm:ss ...", culture);   The problem is what should I use for the '...' in the format string? Looking at the  MSDN page doesn't seem to list a format string for parsing timezones in PST/CEST/GMT/UTC form.


The Required plugins could not be found Videos requires to install plugins to play files of the following types: •  MPEG-1 Layer 3 (MP3) decoder •  MPEG-4 Video decoder  I tried manually installing the same plugins, but it didn't do anything. Can someone please help?

How can I install the most used plugins like flash player and mp3 in Ubuntu?


So I downloaded and installed Ubuntu Desktop yesterday on a laptop and I noticed that there is a newer 16.04.1 version. I got the 16.04... I think. Would it say ".1" otherwise in system details?  What's the difference?

There are so called "point releases" for LTS versions of Ubuntu. 10.04.3 for instance.  What are those "point releases" releases?


So I get the analogy of the fabric of space-time bending as a sheet would bend with the weight of a ball on it, but that explains the "outside" how would the fabric warp inside the earth? Like the "line" passing through the center of the earth, would it be bent? What about some meters around it?

In General Relativity, Einstein established that gravity is due to the curvature produced by objects in space.  We all know that gravity is proportional to mass. The picture Einstein painted looks like this: The bigger the object, the bigger the curvature and hence the stronger gravity.  Let's say that the material inside the Earth is taken out and Earth is made less dense. Now the gravitational pull will be decreased according to Newton's formula due to reduction in mass.  But as per Einstein's picture the dimensions of curvature will be same, as the size of Earth is the same still and the gravity of Earth should not be altered.  I've pictured the scenario something like this:   Please clear up my confusion.


Disclaimer: I never had (yet c:) a rigorous exposure to set theory (independence proofs, and similar stuff...). I was wondering if, in the following proof of the rank-nullity theorem form Lang's "Linear Algebra" book (page 61, theorem 3.2 in the third edition), the author makes use of the axiom of choice:  Let $V$, $W$ be vector spaces and let $L:V \to W$ be a linear map. Then we have $\dim V = \dim \ker L + \dim \text{im}\, L$. Proof: Let $n$ be the dimension of $V$, $q$ the dimension of the kernel of $L$, and $s$ the dimension of the image of $L$. Then, assuming $s > 0$, let $\{w_1,\dots, w_s\}$ be a basis of $\text{im}\, L$; let $v_1,\dots,v_s$ be $s$ elements of $V$ such that $L(v_i) = w_i$ for $i = 1,\dots, s$. [...]  Here, the inverse image $L^{-1}(\{w_i\})$ need not to be unique, but the author claims that he can arbitrarily take $s$ elements of $V$ such that $L(v_i)=w_i$; this can be carried out with a choice function $\varphi: \{L^{-1}(\{w_i\}): i = 1,\dots, s\} \to V$: we have our $\{v_1,\dots, v_s\}$ by considering the image of $\varphi$. Is the axiom of choice (or any weaker equivalent) required in this case?

So I am relatively familiar with the Axiom of Choice and a few of its equivalent forms (Zorn's Lemma, Surjective implies right invertible, etc.) but I have never actually taken a set theory course.  I know there are times when an explicit way of choosing some elements may not be provided, and instead we call upon the Axiom of Choice to do it for us. But one thing has always bothered me.  I have heard that for a finite set we do not need the Axiom of Choice to choose an element. I find this a little confusing. How is choosing an element from a finite set any different than choosing from an infinite set? I have heard before "since the set it finite, there are finitely many orders, so order the set and choose the first element in the order." But how does one choose what order to use? This involves picking an element from a finite set, i.e. it presumes the conclusion.  I'm guessing there is a good reason why everyone keeps insisting that the Axiom of Choice in not needed to choose from finite sets, so could someone please explain it to me?  Edit: There seems to be confusion on what exactly I am asking. I know that we need the Axiom of Choice, sometimes, to make infinitely many choices, from finite or infinite sets. This is not what is confusing me. Allow me to be more precise:     Suppose $S$ is a nonempty finite set. I want to pick one element from $S$. Does choosing one element from $S$ require the Axiom of Choice? If not, how can the choice be made without the Axiom of Choice?   Saying $S$ is not empty, therefore there is an $x \in S$, does not suffice. How do I choose such an $x$? There is one, but how do I describe it without any information about the set, other than the fact that it nonempty and finite?  Another clarification: I am not asking about using "Let ... be given" as a proof technique.


Travelling into heathrow in April , Have an IPhone 6 4g how much will a sim card cost,  pay as you go. Data calls and text. will it have a uk tel number?

Next month I am traveling to country X, where I would need Y minutes of calls, Z text messages and most importantly Q megabytes of data. How can I find the cheapest/most reliable SIM card for my needs?


My laptop specs are: intel 5th gen i3 8gb ram intel hd5500 . . I am using windows 10 original version , and I don't want to remove it. but i also want ubuntu running in my laptop. please guide me.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


prepare() seems a bit tedious and unnecessary for a majority of my code. If I send a string in a SQL command, why can't I just sanitize it with real_escape_string? What's the difference? That's what I've been doing all the time and it worked well against SQL injections... Thanks.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


This sound very basic to some but I am confused here.  I want to install TeXmaker on my PC (Windows Vista). I downloaded the software from   Now when I try to compile my small example I am getting this :    My question is: why am I getting this? Secondly what is MiKTex?  Can someone please summarize the steps that one needs to do for installing TeXmaker on a Windows machine for the first time?

I am new to TeX/LaTeX. How do I install TeX on Windows (7)? It seems that there are many different implementations, so which one is best for my OS?


I've looked over multiple different questions, and they either dealt with something similar, or gave frustratingly vague answers. So I'm certain that my question is not technically a duplicate (though by saying this I have likely doomed it to being labeled as one).  What are the 'powers' of the twenty Rings of Power? For one thing, the One made its wearer invisible and quasi - immortal. The Nine, I think, made their wearers invisible only when they chose to be when they were still human. But that's all I know about their powers.  I'm not asking about their corrupting influence, nor am I asking about what was done (for example; The Seven let the Dwarves build their wealth but made them greedy, I get that, but how did those rings increase the treasure troves? Did they generate gold? Did they make the Dwarf Lords just that lucky when choosing mining spots?).  To reiterate my question, what powers did the rings give their wearers?

So, I've been reading Lord of The Rings, and other Tolkien books, and I've always wondered something. What did the other rings of power, given to the various races by Sauron actually do?


Is it possible to make an Android phone a hotspot and make it use wireless connection?  Is there any programmatical control over DHCP?

Can we use an Android phone as a Wi-Fi repeater?  Imagine situation when you can access a weak Wi-Fi signal from a free hotspot (coffee shop) signal near window, but want to work in the middle of the room. Then we can put the phone on the window sill to spread the signal over the entire home.  Is it feasible?


I'm wondering why such simple things are not possible.  I have 5 fields on my layer and the last one shall be on the top now. But there is no way to do this, is this correct?

If I have an attribute table with columns A B C D, is it possible to move the columns to different positions, say, B C A D? When making a new column with the field calculator it would be useful to put it somewhere other than last position or to be able to move key columns close to it.


I know this topic has been covered to death but I would like some feedback from the community regarding security within our web application.  We have standard LAMP stack web app which contains a large number of database queries which are executed using mysqli_query. These queries are not parameterized and at the moment but there is some naive escaping of the inputs using addslashes.  I have been tasked with making this system safer as we will be penetration tested very shortly. The powers above know that parameterized queries are the way to go to make the system safer however they don't want to invest the time and effort into re-writing all the queries in the application and also changing the framework we have to make them all work correctly.  So basically I'm asking what my options are here?  I've run mysqli_real_escape_string over the inputs. I've setup a filter which doesn't allow words like SELECT, WHERE, UNION to be passed in which I guess makes it safer. I know mysqli_query only allows one query to be run at once so there's some security there (from concatenating updates onto the end of of selects).  Do I have any other options here?  Edit: I should probably add that if anyone is able to provide an example of an attack which is completely unavoidable without parameterized queries that would also be helpful. We have a query which looks like this:  SELECT pl.created p.LoginName, pl.username_entered, pl.ip_address FROM loginattempts pl LEFT JOIN people p ON p.PersonnelId = pl.personnel_id WHERE p.personnelid = $id AND pl.created > $date1 AND pl.created < $date2   I've substituted a UNION query into the $id UNION SELECT * FROM p WHERE 1 = 1 sort of thing and I can prevent that by not allowing SELECT/UNION but then I'm sure there are countless other types of attack which I can't think of. Can anyone suggest a few more?  Update  I've convinced the powers that be above me that we need to rewrite the queries to parameterized statements. They estimate it will take a few months maybe but it has to be done. Win. I think?  Update2  Unfortunately I've not been able to convince the powers that be that we need to re-write all of our queries to parameterized ones. The strategy we have come up with is to test every input as follows:  If the user supplied input is_int that cast it as so. Same for real numbers. Run mysqli_real_escape_string over the character data. Change all the parameters in the queries to quoted strings i.e.  WHERE staffName = ' . $blah . '   In accordance with  answer we are 100% safe as we are not changing the character set at any time and we are using PHP5.5 with latin1 character set at all times.  Update 3  This question has been marked as a duplicate however in my mind the question is still not followed answered. As per update no.2 we have found some strong opinion that the mysqli_real_escape string function can prevent attacks and is apparently "100% safe". No good counter argument has since been provided (i.e. a demonstration of an attack which can defeat it when used correctly).


function custom_post_type(){//example} function custom_taxonomy(){//example}  Should add code filter hook or action hook custom page, custom post type, custom taxonomy, etc.. in functions.php or create plugins.What is the better method? Is there the way better than this ways?

Is there an easy to understand scheme to decide what kind of code belongs to a plugin or the theme’s functions.php?  There    and many  about that topic, mostly because there are some misconceptions about the inner workings of WordPress. I am asking for an answer based on facts, not on opinions.  It should explain how to handle these points (and probably more):   custom post types and taxonomies contact forms shortcodes custom widgets  SEO functions like custom meta elements theme switch   There are often pros and cons for both sides. Our most popular question  got a lot of code snippets as answers that are at least debatable. We need criteria a beginner can understand, maybe a check list – with reasons.  See also the related question by Chip Bennett on our meta site:   Related:


Is it improper to say "me and Person X"?  I always hear it said as "Person X and I", but have personally learned to say "me and Person X".  Is there a difference between the two versions and is one of them incorrect? "Person and I" just sounds more formal to me.

I've always been taught to put myself last when referring to myself in the same sentence as others but the usage of "me and..." seems to be everywhere these days. The misuse of the word "me" instead of "I" aside, is there some new rule I haven't heard of? Shouldn't we put ourselves last regardless of the "me"/"I" usage?  Examples of "correct" usage:      My friends and I went for some ice   cream. Did you see my friends and me   at the ice cream stand?   Examples of "incorrect" usage:     Me and my friends went for some ice   cream. Did you see me and my friends   at the ice cream stand?   Note: I was also taught that the only person who could put themselves first was the queen.


[[ True False False  True  True  True  True  True  True False False  True    True  True  True  True  True  True  True  True  True  True  True  True   False False  True  True  True  True False False False  True  True  True   False False False  True  True  True  True  True  True  True False False    True  True  True False False  True]  [ True False False  True  True  True  True  True  True  True  True  True    True False False  True  True  True False False  True  True False False   False False False False  True  True False False False  True  True False   False False False False  True  True  True False False False False False   False False False False False False]]   assuming the outcome of bw_np = numpy.asarray(bw) is a list of lists althought i don't see commas, no commas between elements within sublists either?  What i tried:  for element in bw_np:     for sub in element:         sub = sub*1         print(sub) print(bw_np)

Alright, I'm toying around with converting a PIL image object back and forth to a numpy array so I can do some faster pixel by pixel transformations than PIL's PixelAccess object would allow.  I've figured out how to place the pixel information in a useful 3D numpy array by way of:  pic = Image.open("foo.jpg") pix = numpy.array(pic.getdata()).reshape(pic.size[0], pic.size[1], 3)   But I can't seem to figure out how to load it back into the PIL object after I've done all my awesome transforms.  I'm aware of the putdata() method, but can't quite seem to get it to behave.


Let $\Bbb R$ be a field of all real numbers. Prove that $x+1$ is not a unit in $\Bbb R[x]$. Attempts: Suppose that $x+1$ is a unit in $\Bbb R[x]$. Then, there is exists $g(x) \in \Bbb R[x]$ such that $(x+1)g(x) = 1_R$. Now, we have \begin{equation*} deg(x+1) + deg(g(x)) = deg((x+1)g(x)) = deg(1_R) = 0 \end{equation*} Thus, we have \begin{align*} deg(x+1) + deg(g(x)) &= 0 \\ 1 + deg(g(x)) &= 0 \\ deg(g(x)) &= -1 \end{align*} which is a contradiction since $deg(f(x))$ must be non-negative integers for all $f(x) \in \Bbb R[x]$. Hence, $x+1$ is not a unit in $\Bbb R[x]$. Is the above true?

I'm currently studying Polynomial Rings, but I can't figure out why they are Rings, not Fields. In the definition of a Field, a Set builds a Commutative Group with Addition and Multiplication. This implies an inverse multiple for every Element in the Set.   The book doesn't elaborate on this, however. I don't understand why a Polynomial Ring couldn't have an inverse multiplicative for every element (at least in the Whole numbers, and it's already given that it has a neutral element). Could somebody please explain why this can't be so?


I scaled an object up in Object mode, but when I start the game engine it returns to a much smaller size. This occurs when the object is a Soft Body, when I set it back to Static or to Rigid Body for physics it scales properly in the engine.  I have tried clicking the "Apply Transformation" button in Rigid Body Tools under the Physic tab in the object toolbar but it doesn't have a noticeable effect. (There isn't a Soft Body tools that I can find).  Is there a way to have scaling work for a soft body or do I need to go back and create a new larger mesh?

I'm learning to use the game engine and I don't know why a mesh change its shape when I press P key.  This happened when I subdivided the red mesh. I subdivided it because I want the ball collide the red wall but I don't want a rigid wall, I want a soft wall.      Here is the file:  (The ball moves with left and right arrows)  Thank you!


If $f : D(0,1) \rightarrow \mathbb{C}$ is a function, $f^2$ is holomorphic, and $f^3$ is holomorphic, then prove that $f$ is holomorphic.   MY ATTEMPT SO FAR:  If $f^3$ is holomorphic, then we can say that $\frac{\partial}{\partial z}(f^3)$ must be holomorphic. Since the chain-rule for differentiation still applies with complex-valued functions, we can say that  $$\frac{\partial}{\partial z}(f^3) = 3f^2\left(\frac{\partial f}{\partial z}\right) \implies 3f^2\left(\frac{\partial f}{\partial z}\right) \textrm{ is holomorphic}$$  Now it may be unclear whether this implies that $\frac{\partial f}{\partial z}$ is holomorphic even knowing that $f^2$ is holomorphic. Certainly the product of two holomorphic functions must be holomorphic, but the case in which one is holomorphic and the other isn't but the product of those two function is holomorphic isn't as clear, so it will be shown.  Suppose we have two functions, $g$ and $h$. Suppose $g$ is holomorphic on some open subset $\Omega \subset \mathbb{C}$. Now suppose their product, defined as $\eta = g\cdot h$, is holomorphic. This means that $\eta \cdot (1/g)$ is holomorphic except at those points in $\Omega$ where $g$ is zero. Thus, $h$ must be also holomorphic at all points except those in which $g$ is zero, so $h$ is at least meromorphic.  Using that, we can see that $\frac{\partial f}{\partial z}$ must be at least meromorphic, being holomorphic at all points with no guarantee as to whether it has singularities at those points where $f^2$ is zero.  And that's where I'm stuck. I know that $\frac{\partial}{\partial z}(f^3)$ and $3f^2$ are related, but as long as the possibility that $\frac{\partial f}{\partial z}$ blows up at those points where $f^2\rightarrow 0 $ has to be considered, I'll stay confused.  Is my approach alright, or should I completely change what I'm doing? Have I gone wrong anywhere? Should I be more explicit anywhere? Could you give me a small minor hint as to which direction I should go?

Suppose $f$ is a continuous complex valued function on a domain $\Omega$. Suppose $f^2$ and $f^3$ are holomorphic in $\Omega$. Show that $f$ is also holomorphic in $\Omega$.   Assume $f=u+iv$. I see that if $u,v$ are in $C^1$ then $f^2$ is holomorphic can imply $f$ is holomorphic considering Cauchy-Riemann equations. But I don't know how to get $u,v$ are in $C^1$ by the adding condition $f^3$ is holomorphic. (I can't get $u,v$ from some combinations of real and imaginary part of $f^2$ and $f^3$). Do someone know how to do this?


I have written a function which sums columns together (if there is a built in for this, that would also be good to know) and another which calls that function and replaces the sum with a different value if it is zero or null. When trying to call the second function I get the following error:   ERROR:  function enc_sum_columns(numeric[]) does not exist LINE 1: SELECT            enc_sum_columns(summed_values::numeric[]) HINT:  No function matches the given name and argument types. You might need to add explicit type casts....   The sum columns function is as follows:  create or replace function enc_sum_columns(VARIADIC cols_to_sum numeric[], OUT total numeric) RETURNS numeric AS $BODY$ BEGIN  SELECT INTO total SUM(cols_to_sum[i])    FROM generate_subscripts(cols_to_sum, 1) g(i); END;   $BODY$   LANGUAGE plpgsql    And the function that calls it:  CREATE OR REPLACE FUNCTION public.enc_sum_with_choice_for_zero(     IN replacer numeric,     VARIADIC summed_values numeric[],     OUT total numeric)   RETURNS numeric AS $BODY$  BEGIN    SELECT INTO total enc_sum_columns(summed_values::numeric[]);    IF total=0 OR total IS NULL THEN    total = replacer;    END IF;  END; $BODY$   LANGUAGE plpgsql VOLATILE   And an example of calling the function :  SELECT cov_s_fib, cov_s_cop, enc_sum_with_choice_for_zero(500::numeric, cov_s_fib::numeric, cov_s_cop::numeric) from test_dynamo_with_geom1   Here is some expected output from the query above:  |---------------------|------------------|------------------| |     cov_s_fib       |     cov_s_cop    |      total       | |---------------------|------------------|------------------| |          1          |         3        |          4       | |---------------------|------------------|------------------| |          0          |         0        |          500     | |---------------------|------------------|------------------| |                     |                  |          500     | |---------------------|------------------|------------------| |          0          |                  |          500     | |---------------------|------------------|------------------| |                     |        1         |          1       | |---------------------|------------------|------------------|   Can I not pass a variadic varaible to another function like that? Did I just mess up something syntactically? Originally, I had the code in enc_sum_columns inside of enc_sum_with_choice_for_zero and it worked fine.

I am trying to make a case-insensitive version of json_extract_path_text(), using the citext module.  I would like this to be a simple wrapper around the built-in function, the only difference being that it accepts citext as the first parameter instead of json. I want this to be a straight pass-through to the native implementation, just with a type conversion beforehand. Here's what I have so far:  create extension citext;  create or replace function json_extract_path_text ( string citext, variadic params text[]) RETURNS text IMMUTABLE AS $$     BEGIN         SELECT json_extract_path_text(string::json, params);     END; $$ LANGUAGE 'plpgsql';   This doesn't work properly, however, because of the type mis-match:   ERROR:  function json_extract_path_text(json, text[]) does not exist LINE 1: SELECT json_extract_path_text(string::json, params)                ^ HINT:  No function matches the given name and argument types. You might need to add explicit type casts. QUERY:  SELECT json_extract_path_text(string::json, params) CONTEXT:  PL/pgSQL function json_extract_path_text(citext,text[]) line 3 at SQL statement    I've tried hacking around a solution using dynamic string construction and EXECUTE, but this is a real hassle and I feel like there must be a cleaner way to pass VARIADIC params through to the inner function. I can't see any obvious way to do so, however. How can I accomplish that?


I am not even sure where to start with this one. I understand for something to be a limit then that means if we have a sequence $\{a_n\}$ of irrational numbers then for any number $a$ in the reals, the $|a_n - a| < \epsilon$ for $\epsilon > 0$. But how would you show that any number fulfils this statement?

Show that every irrational number in $\mathbb{R}$ is the limit of a   sequence of rational numbers. Every rational number in $\mathbb{R}$ is   the limit of a sequence of irrational numbers.   How can I prove this?


It starts off with an alien abduction, not sure but might be the parents of the protagonist. I remember the main character being maybe 16 years old as he is riding a motor cycle and playing Football (american). There are other protagonist that each fly in a separate spaceship that can assemble to one big one. They have a big robot that is stored under water. I believe it is red and white but not sure. I remember it had a Typhoon attack. Can anyone identify this?  EDIT: to add some more information, I watched it on VHS, not sure the release date but guessing before 1990. I'm guessing it is from america. The characters are all white I believe.   There were one girl and 4 boys as main characters. they were wearing different colors. The protagonist was wearing red and I think the leader of the gang was blue. A scene: the protagonist was playing football but suddenly he left the court and drove off in a motorcycle, think he got a vision or something that made him leave.  Another scene/plot: I remember the protagonist leaving the rest of the gang to go and do something by himself but got scolded by the leader since they can't fight as well with only 4. Can't remember a ton about the aliens, but I think they had big green buildings that was a half sphere sticking out of the ground and had a green beam they used to attack with.

I'm trying to find an anime movie I watched when I was younger; I believe I first watched it in 90/91. The story revolved around the recruitment and training of a group that would pilot a mecha that was similar to Voltron in that each pilot controlled a portion of the mecha that would merge into a bigger mecha. Points that I remember:   Started on Earth Program was government funded One of the pilots was related to the creator of the program, I think a female Mecha had chain weapon and a sword that was summoned from it's superhero-like chest icon. Killing blow was an m or w shape Ended with father/creator of mecha? being kidnapped by the aliens and used as human shield to deter attack on alien vessel


Today I have a big problem; long story short, I installed Ubuntu in dual boot a long tine ago and I wanted to delete Ubuntu and I did so but incorectly, I might think, by reformating the partitions that were allocated to Ubuntu in Disk Management software provided by Windows (I deleted everything that was not related to NTFSC). However, I left this partition empty without expanding the Windows partition because I wasn't able to. Because I didnt know what ai was doing because I followed a random tutorial on the internet, I restarted my computer and I got : error: no such partition. Entering rescue mode... grub rescue> I already tried to get rid of it by tring alot of techniques on internet like using liveUSB ubuntu console or windows repair cmd or directly in grub prompt.  I wonder if I can get rid of it and CONSERVE my windows 10 version with all my files.  Thanks in advance for your help and I hope somebody is going to response because I am very tired of this problem  Thank you, Dominic

After I deleted my Ubuntu partition, I rebooted my computer and I only get a prompt:   grub rescue >   The command ls lists   (hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)   I check them one by one:  ls (hd0,msdos5)/ ls (hd0,msdos1)/   But I cannot find the right partition.


I am trying to create a table in bash - I have collected all headings into a var - however when I print these strings enclosed in "'s are treated as new columns and not as one by the printf command When I pass the same values directly it works fine, but I get different behavior when I use $var instead. $ printf '%-20s' "some spaced words" other values; echo -e "\n" some spaced words   other               values  $ values='"some spaced words" other values' $ echo $values "some spaced words" other values $ printf '%-20s' $values; echo -e "\n" "some               spaced              words"              other               values   I'm clearly misunderstanding something about how my variable is different to < some string > and therefore results in the different behavior. How do I get the output that matches output 1 when using a variable? edit: I can see the var version has the quotes - is there a way I can pass quoted strings to printf as a variable?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


Would you say  "The different types of cars"  or  "The different types of car"?  In reality my doubt is about types of event/events but can be more confusing to explain what I mean.  I have many events of the different types.

When speaking precisely or technically, one would say that "Homo erectus and homo sapiens are two species of hominid" rather than "Homo erectus and homo sapiens are two species of hominids." The hominid here should be singular because we are speaking about instances of a single class ("class" being used here in its broader sense, not in the sense of taxonomic grouping).  Now let's consider more common parallel constructions replacing the word species with other words.      Tide and Wisk are two brands of detergent.       Tide and Wisk are two brands of detergents.      Cats and dogs are two types of pet you can buy at Pets-R-Us.       Cats and dogs are two types of pets you can buy at Pets-R-Us.   I feel that using the singular noun to specify the class is more grammatically correct, but sounds stilted in conversation. Almost everyone I hear making these constructions uses the plural form. What are your thoughts about singular vs. plural here?  Edit  Here's a more extreme example that may help clarify the issue. Consider the following sentence:     It was my first attempt at calming an angry crowd, and I just        stood there while people were hurling all kinds of insults at me.   Here I think the singular insult sounds strange, if not downright wrong.  Further Edit  I just noticed in A Treasury for Word Lovers (Morton S. Freeman, 1983) a section entitled "Types of Errors." This is a book about (American) English usage by an English professor and editor, which purports to be a "practical guide for serious writers and readers." I wish I could say this discovery satisfies the question, but in fact I now feel somewhat farther from the truth, if there is any single "truth" in this matter. But at least I don't have to worry about being wrong when using the plural form of the class in these constructions.


This happens in all questions on all Stack Exchange sites.   App Version: 1.0.85 Device Manufacturer: Motorola Device Model: Nexus 6 OS Version: 6.0.1 (2756745)

answer just didn't load when I opened the question for the first time.     Reloading(by dragging down) didn't do anything, but when going back to the previous view and opening the question again, the answer was visible. I wasn't able to reproduce this bug since, and because of that I don't know whether or not it has something to do with the text itself.   App Version: 1.0.85 Device Manufacturer: samsung Device Model: GT-I9505 OS Version: 4.2.2 (I9505XXUBMEA)


Let $A$ be ring and $\mathfrak{a}$ be an ideal of $A$. Then I was wondering whether $$\mathfrak{a}\otimes_AM \cong \mathfrak{a}M  $$ where $M$ is an $A$-module. Clearly the map $f: \mathfrak{a} \times M \to M$ defined by $f(x,y) = xy$ is surjective and bilinear so it extends to a surjective homomophism $f^{*}:\mathfrak{a}\otimes_AM \to \mathfrak{a}M$. But there is no natural inverse of $f^{*}$. It seems intuitive because $A\otimes_AM \cong M$.

Let $A$ be a commutative ring and $M$ an $A$-module. Let $I$ be any ideal of $A$.  We have an epimorphism $M \otimes_A I \rightarrow IM$. It seems to me that this is not in general an isomorphism.   Q1: Any counterexample?   If $M$ is flat, then $M \otimes_A I \cong IM$. However, flatness seems to be a too strong condition for this equality to be true for any ideal $I$. I am interested in finding a characterization of $M$ such that $M \otimes_A I \cong IM$ for any ideal $I$ of $A$.   Q2: Any suggestions?


$$R\textrm{ is a ring(multiplicative identity not assumed) such that }x^{3}=x \: \: \forall x\in R.\\ \textrm{Prove that }R\textrm{ is a commutative ring }.$$   I have been able to show that $6x=0$ for all $x$ in $R$. Can I get some hints on how to proceed?

Let $R$ be a ring, where $a^{3} = a$ for all $a\in R$. Prove that $R$ must be a commutative ring.


Let $a$ be a positive integer with factorization $a = p_1^{e_1} p_2^{e_2}...p_n^{e_n}$. Prove that the number of positive divisors of a is given by the product $(e_1 + 1)(e_2 + 1)...(e_n + 1)$. I know that from the fundamental theorem of arithmetics, that if $a\geq2$, then $a$ can be factored as a product of prime numbers. However, I'm not sure how I can use this knowledge to answer this question. Any help is appreciated.

I am reading a math book. It states the following rule:      For an integer $n$ greater than 1, let the prime factorization of $n$ be $$n=p^a_1p^b_2p^c_3...p^m_k$$    Here $a, b, c,..., m$ are nonnegative integers, and $p_1,p_1,...,p_k$ are prime numbers. Then the number of divisors of $n$ is: $$d(n)=(a+1)(b+1)(c+1)...(m+1)$$   I can use the rule to solve problems correctly, but I don't understand the rule. How to prove it?


Posts enter community wiki mode when... the post has been edited ten   (10) times by the original owner. -    Good users occasionally edit their posts to add new info, correct bad info, update the status, fix typos, etc. Many users make legit edits for legit reasons and end up getting their post locked into Community Wiki, ensuring they do no receive reputation for their improved post. A high edit count is more indicative of a user's editing habits than it is of the quality of the post. Can anything be changed to prevent the system from punishing users for improving their posts? Is there a better way to prevent gaming the system by edit-bumping posts?     Voting on a community wiki post (up or down) does not affect any   user's reputation.  -    This post is similar to , but there are a couple reasons this should not be closed as duplicate:   That question was from 2009, and can be considered localized in time Many upvotes were received since that was declined (now +60), begging the issue be reconsidered The problem hasn't been fixed!

I like to edit my answers. To clarify, illuminate, add examples, add links, point to new information as it crops up, etc.  It's highly irritating that my effort to improve my answer turns it into a Community Wiki.  Could anything be done to keep me from turning into a collective?


How can I prove this: In a Euclidean domain $R,$ we have that $aR + bR = \gcd(a, b)R$? Here are my thoughts: I know that if $d = \gcd(a, b),$ then it can be written as a linear combination of $a,b$ but I do not know how will this help me in the proof.

Let $D$ be a euclidean domain and $a, b \in D$. Show that $M = \{xa + yb \ \mid \ x, y \in D\} $ is an ideal of $D$. Find $d \in D$ such that $M = \langle d \rangle$ and prove your claim.   My effort: we can extend Bezout's identity to euclidean domains (I see nothing in the proof that can't be extended here) to find $\alpha, \beta \in D$ such that $d \doteq    \text{gcd } (a,b) = \alpha \cdot a + \beta \cdot b$. Then, given any $x \in D$, we have $x d = x\cdot (\alpha \cdot a + \beta \cdot b) = (x\alpha)a + (x \beta)b \in M$, therefore $\langle d \rangle \subset M$. Conversely, since $a = d m $ and $b = d n$ for some $m, n \in D$, given $xa + yb \in M$, we have $xa + yb = d(xm + yn) \in \langle d \rangle$, whence $M \subset \langle d \rangle$, and then $M = \langle d \rangle$.   Is this alright? I'm always wary of questions that are solved too easily (and I'm usually right for that, since my solutions are usually wrong in those cases), so I'd appreciate a second opinion/corrections.


I just want to turn Unity 3D off and use Unity 2D. I crunch alot of words and numbers, and when i try multitasking, Unity 3D is taking system resources that i need.

I  that there is now a 2D version of Unity built on . How do I install it, and once it's installed, how do I switch to it?


I want to prove the following identity for real sequences $\left(x_k\right)^n_{k=1}$ and $\left(y_k\right)^n_{k=1}$ by Induction. $$\left(\sum\limits_{k=1}^{n}x^2_k\right)\left(\sum\limits_{k=1}^{n}y^2_k\right)$$ $$=\left(\sum\limits_{k=1}^{n}x_k y_k\right)^2 +\tfrac{1}{2}\sum\limits_{k=1}^{n}\sum\limits_{l=1}^{n}\left(x_k y_l - x_l y_k\right)^2$$ I have started with n=1 and I know that the hypothesis is now that from n follows n+1: $\left(\sum\limits_{k=1}^{n+1}x^2_k\right)\left(\sum\limits_{k=1}^{n+1}y^2_k\right)$ $$=\left(\sum\limits_{k=1}^{n+1}x_k y_k\right)^2 +\tfrac{1}{2}\sum\limits_{k=1}^{n+1}\sum\limits_{l=1}^{n+1}\left(x_k y_l - x_l y_k\right)^2$$ But how do I get from this the left side to the right side now? I have tried to seperate them and I exchanged one part with the hypothesis. I ended up with: $\left(\sum\limits_{k=1}^{n}x_k y_k\right)^2 +\tfrac{1}{2}\sum\limits_{k=1}^{n}\sum\limits_{l=1}^{n}\left(x_k y_l - x_l y_k\right)^2 +y^2_{n+1}\left(\sum\limits_{k=1}^{n+1}x^2_k\right)+x^2_{n+1}\left(\sum\limits_{k=1}^{n+1}y^2_k\right)$ Alright, this question can be deleted as I have already found it on Stackexchange:

I need to prove Lagrange Identity for complex case, i.e. $$ \left( \sum_{i=1}^n|a_i|^2 \right)\left( \sum_{i=1}^n |b_i|^2 \right)-\left| \sum_{i=1}^na_ib_i \right|^2=\sum_{1\leq i<j\leq n}|\bar{a}_ib_j-\bar{a}_jb_i|^2 $$ The proof should use summation directly and without something like vectors or induction.


I am currently creating a program, that creates a Zip file of stuff. Now, I would like to add some automatically generated "info.txt" file containing info about the Zip. Now, I would probably just generate it as a String and would like to put it in the Zip. Unfortunately, I have not found any way of doing this, so I would really appreciate some help.

My application is receiving email through SMTP server. There are one or more attachments in the email and email attachment return as byte[] (using sun javamail api).  I am trying to zip the attachment files on the fly without writing them to disk first.  What is/are possible way to achieve this outcome?


How to upgrade from 14.04 LTS or 15.10 to 16.04 from terminal.

Question is about Ubuntu release process. Are migrations from n to n+1 releases expected?  Assuming we have server with installed Ubuntu 14.04 LTS. Will it be smoothly upgradable to Ubuntu 16.04 LTS via apt-get upgrade ?  Assumptions:   scope is software therefore we assume that given hardware is supported on both releases (upgrading from and to) that's why, always before upgrade you are asked to make backup to be able to revert in case of failure


The movie should be at least a decade-old, and perhaps even a TV-movie. In the end of the movie, the heroes launch the weapon in their ship, probably against their enemy ship, but unknowingly, their own ship direction was changed in the middle of the movie, so now it's launched against Earth.

Almost 10 years ago I saw an English sci-fi film on a Hungarian TV channel. The story was about a military mission started from Earth to an alien planet to destroy the whole race. The full story happened on the same starship (mainly the conversations and the mood of the film was interesting). The leaders of the mission has only one eye, because one of their eye was exchanged to a special monocular computer interface. This interface was used to unlock secret codes. On the way to the alien planet some type of malfunction happened, and also some soldier died. Step by step, more army men died, and near to the end of film just a few people remained. They felt the mission is in danger and tried to save the situation. Finally only one young solder remained alive who launched the nuclear bomb carried by the starship to destroy the planet where the ship arrived. Unfortunately the ship arrived at Earth, because one alien lived with them on the ship and she reversed the ship at the middle of their travel. This enemy alien looked like a normal man, because the aliens made surgical operations on one of their female specimens, and converted her to a human appearance. Does anybody know the title of this film?


Here's the class containing the templated objects:  class ResourceManager {     public:         ResourceManager(DebugMenu& debugMenu);      private:         ResourceHolder<sf::Texture, Textures::Id>           m_textureHolder;         ResourceHolder<sf::Font, Fonts::Id>                 m_fontHolder;         ResourceHolder<sf::SoundBuffer, SoundEffect::Id>    m_soundBuffer; };   And ResourceHolder.hpp (cut down significantly):  template <typename Resource, typename Identifier>     class ResourceHolder     {     public:         ResourceHolder(DebugMenu& debugMenu);      private:         DebugMenu* m_debugMenuContext;     };   Now what I'm trying to do is use an initializer list to pass the DebugMenu reference to all of the ResourceHolders (because they need it for the DebugMenu context). Like so:  ResourceManager::ResourceManager(DebugMenu& debugMenu) :     m_textureHolder(ResourceHolder<sf::Texture, Textures::Id>(debugMenu)),     m_fontHolder(ResourceHolder<sf::Font, Fonts::Id>(debugMenu)),     m_soundBuffer(ResourceHolder<sf::SoundBuffer, SoundEffect::Id>(debugMenu)) {}   But I'm getting an error for each initialization:  Undefined symbols for architecture x86_64:   "Shock::ResourceHolder<sf::SoundBuffer, Shock::SoundEffect::Id>::ResourceHolder(Shock::DebugMenu&)", referenced from:       Shock::ResourceManager::ResourceManager(Shock::DebugMenu&) in ResourceManager.o   "Shock::ResourceHolder<sf::Font, Shock::Fonts::Id>::ResourceHolder(Shock::DebugMenu&)", referenced from:       Shock::ResourceManager::ResourceManager(Shock::DebugMenu&) in ResourceManager.o   "Shock::ResourceHolder<sf::Texture, Shock::Textures::Id>::ResourceHolder(Shock::DebugMenu&)", referenced from:       Shock::ResourceManager::ResourceManager(Shock::DebugMenu&) in ResourceManager.o ld: symbol(s) not found for architecture x86_64   I'm at a bit of a loss what the problem could be, so any help would be greatly appreciated. Thanks.

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I am about to use a motor driver in a project (MDDS30 by Cytron) and I was going to power it using a 12v 11.5a PSU. I discovered that the manufacturer warns against using a PSU, and that it might destroy the driver if the motor is driven via an external force, as it would generate electricity that can kill the driver if it builds up and is not able to go in to a battery of some sort. I was considering having to use a lead acid accumulator in parallel with the PSU (I don't know if this is particularly safe or possible without adding circuitry?), but that is not ideal for several reasons in this application, mainly that the system should die if one unplugs the PSU...  So my question is this: Can I simply connect some large capacitor in parallel with the PSU instead of using a battery? And if that is so, what capacity and voltage rating should I opt for? it is not very likely that the motor would be rotated by hand, but I do not like to gamble on it being the case!  Perhaps any other solution I have not considered? We have too little time to consider a different, less particular, driver at this point.  Thanks for any input  To update the question with some more information: The drivers operating range is 7-35V, my system is purely 12V, and other components includes a PLC. If a higher voltage than 12v is fed back into the system from the motors (like commenter glen_geek mentions) it might cause the PLC to become unstable.

I have a 30A 5-30V Single Brushed DC motor driver that will be used with a 12V 30A gear motor.  I have a MegaWatt 36 Amp 12 Volt 13.8V DC Regulated Power Supply that I wanted to use for the driver pwr source. But, I just realized the driver docs say to ALWAYS use a battery as a power source if an inductive load is used.  The docs say that a battery must be used in parallel with the power supply to protect the driver against possible flowback when the motor is stopped.   My question is: can I use a 12V car battery, and simply wire the power supply and motor driver to it, then set pwr supply output to 13.5V? The pwr supply would always remain ON.


I have over two thousand photos on my Google drive. I would like to download them so I can print them. How can I do this quickly without clicking on each individual photo?

I was sent about 500 Google Drive picture files and need a way to download them. The URLs send me to the Google Drive for each individual picture. Is there a way to download them without having to go to each page and hitting download manually?  I have tried to convert the links to the following: http://drive.google.com/uc?export=view&id=, but can't seem to get a Download manager to download it [GetRight].


From an evolutionary perspective, why would anyone ever be sexually exited by small children who could not possibly have started puberty?  Is it a confusion between some combination of sexual and non-sexual systems?  Is it a evolutionary imperfection?  Or is Darwinian thinking not necessarily applicable to human behaviour?

If a trait would be advantageous to an organism then why hasn't it evolved yet?  Conversely, if a trait is not advantageous or mildly disadvantageous, why does it exist?  In other words why does evolution not make the organism more "perfect"?    This is a general question that would be applicable for any kind of trait. Please keep the answers precise and scientific.   Read this meta post for more information:


Basically, I have a list with the following words   ['ask', 'not', 'what', 'your', 'country', 'can', 'do', 'for', 'you', 'ask', 'what', 'you', 'can', 'do', 'for', 'your', 'country']    (this was the example given to me by my teacher and it is pretty good for testing).  I want to figure out how to remove any duplicates and print out the new list without said duplicates, so the output should be   ['ask', 'not', 'what', 'your', 'country', 'can', 'do', 'for', 'you']    After initially trying to use the set(), I managed to remove the duplicates, but it just prints out the sentence in a random order, which is quite bothersome.   Here is my code:  sentence = input('Please enter a sentence. No punctuation may be included: enter code here').lower().split() print('This is your sentence:', sentence) no_duplicates = list(set(sentence)) print('This is your sentence without duplicates', no_duplicates)   By the way, incase you didn't notice, I'm still quite a newb to coding so try and keep your answers simple so that I may understand what you're saying.

Is there a built-in that removes duplicates from list in Python, whilst preserving order? I know that I can use a set to remove duplicates, but that destroys the original order. I also know that I can roll my own like this:  def uniq(input):   output = []   for x in input:     if x not in output:       output.append(x)   return output   (Thanks to  for that .)  But I'd like to avail myself of a built-in or a more Pythonic idiom if possible.  Related question:


Let $A$ be the set of all those points of plane $\mathbb{R} ^2$ in which both coordinates are rational or both are irrational. Is $A$ path connected?

Is the set of points in the plane whose coordinates are either both irrational, or both rational connected?


Let $G$ a group and its order is $255$.   Prove that $G$ is cyclic.   I easily demonstrated that the group has only one $17$-Sylow subgroup $P$ that is normal in $G$ and it's cyclic since it is of a prime order. Then $G/P$ is also cyclic since a group of order $15$ is cyclic. Then $G$ can be seen as $G=P(G/P)$ since the orders are coprime and then $G$ is cyclic. Is it correct?

There was previous task was same but with $N = 185$. And I prove it by showing that number of Sylow subgroups is 1 for every prime $p\mid N$. But there I have some options $N_5 \in \{1, 51\}$, $N_{17} = 1$, $N_3 \in \{1, 85\}$.  I've tried to get contradiction from $N_5 = 51$ or $N_3=85$, but I didn't manage to do it  I understand that it's impossible to have $N_5 = 51$ and $N_3=85$ at the same time.


I'm working on a WPF application.   On the server, there are many-many threads / tasks that throw actions that the UI is registered to.  The listeners are invoked on the same thread in which the actions were raised, so in the listeners in the UI, when I want to update UI elements I need to connect to the UI thread via Application.Current.Dispatcher.BeginInvoke(action)   or Application.Current.Dispatcher.Invoke(action).  When lots of threads raise those actions, there are lots of calls to the Application.Current.Dispatcher.Invoke(action) (I use Invoke for now), sometimes in the range of a few milliseconds.   After a while, if I put a breakpoint before  Application.Current.Dispatcher.Invoke  and a breakpoint inside the action itself, there might be several seconds, even more than 5, for connecting to the UI thread Dispatcher, and for the actual action to actually start executing.  On the other hand, why would Application.Current.Dispatcher.BeginInvoke(action) solve my problem?  I mean, we have only one UI thread, so the BeginInvoke method will just put those many operations in a queue, and it will still take a lot of time for action X to happen. I don't think this will make any action that is supposed to run on the UI thread, start faster (when the UI thread is busy). Am I right?  My purpose is:  private void UpdateScreen(){                Application.Current.Dispatcher.Invoke(() =>                 {                     OnPropertyChanged(() => Time);                     OnPropertyChanged(() => TimeFormatted);                     OnPropertyChanged(() => SliderText);                 });}   I want the action to start executing the rows  OnPropertyChanged(() => Time);                     OnPropertyChanged(() => TimeFormatted);                     OnPropertyChanged(() => SliderText);   as soon as possible when I get to the method UpdateScreen()  Why would BeginInvoke be better than Invoke, if it's actually even better?

Just wondering what the difference between BeginInvoke() and Invoke() are?   Mainly what each one would be used for.  EDIT: What is the difference between creating a threading object and calling invoke on that and just calling BeginInvoke() on a delegate? or are they the same thing?


We're scheduling a lot of similar events, so the start time is almost always 8:30AM and the end time is almost always 5:30PM (not necessarily on the same day). Is there any way that we can set the defaults for these through JavaScript? It doesn't necessarily have to be JS, we just can't use workflows to solve this problem because we do occasionally have events that need to happen at other times. A solution editing the NewForm.aspx would work as well if anyone has that. OOTB would be even better.  It looks like this () was written for SP2010. I used Firebug to inspect the labels for my time fields. They aren't actually "label" tags, they are "nobr" tags and do not have "for" attributes, so it appears that this solution is trying to access elements that SharePoint is no longer using.   I would just use the ID columns of the time boxes themselves, but they are some kind of generated code and and I'm worried that they won't always be the same. I have shown the generated code for the Start Time select box:  <select id="ctl00_ctl41_g_05eee1e1_a7d0_4b5e_9eb1_dc1e566ce47e_ctl00_ctl05_ctl00_ctl00_ctl00_ctl04_ctl00_ctl00_DateTimeField_DateTimeFieldDateHours" dir="ltr" name="ctl00$ctl41$g_05eee1e1_a7d0_4b5e_9eb1_dc1e566ce47e$ctl00$ctl05$ctl00$ctl00$ctl00$ctl04$ctl00$ctl00$DateTimeField$DateTimeFieldDateHours">     <option value="12 AM">12 AM</option>     <option value="1 AM">1 AM</option>     <option value="2 AM">2 AM</option>     ...     <option value="11 AM">11 AM</option>     <option value="12 PM" selected="selected">12 PM</option>     <option value="1 PM">1 PM</option>     ...     <option value="10 PM">10 PM</option>     <option value="11 PM">11 PM</option> </select>   I need a way to set this that will always work and I suppose that if we know that the ID will always be the horrendously long string shown above, then I can just hard code that and get the element by its ID, but I don't know if it will be. Any advice?   Also, if it is important, I am using the modal window (and need to continue to do so).  EDIT: This question was flagged as a duplicate. In order to argue why this should not be the case, I would like to first point out, that the link I referenced above, is the same link as the answer to the question this one was claimed to be a duplicate of. Furthermore, I covered why I don't believe the solutions work. Yes, it is essentially the same goal, but the previous question was in the context of SharePoint 2010 and this one is in the context of SharePoint 2013 and I believe that makes them different because the answers for SharePoint 2010 don't appear to work for 2013. Also, the answers to the other question specifically exclude modal dialogues which are required in this question.

We are using a SharePoint team calendar for vacation form approvals. The default values for new events Start Time and End Time defaults to the next full hour, example 5:00 PM to 6:00 PM, when entering a new item at 4:44 PM.  Is it possible to set the default value for the start time to 8:00 AM and end time to 5:00 PM, but still keep the current, today's date?   We are using SharePoint 2010. I was able to find , but it does not provide the solution I was hoping for + doesn't work for modal windows.   Any help is appreciated.


It's basically in the title.   When viewing SE sites through a browser, there's always a link to the help section easily accessible.  Could such a link be added to the iOS app? I would suggest above "About" on the main menu.

Can the Stack Exchange developers add an option to access the site-specific Help Center via the iOS app?  My use case is when I read a question that I think is off-topic, and want to double-check that the wording from the site's Help supports that position, having the Help Center available would be nice.


What is the fastest way to connect two MacBooks? In my case I want to connect an MacBook Air (2011) with a Retina MacBookPro and use Screen Sharing.  Options I'm thinking of:   Thunderbolt/Ethernet and connecting both MacBooks directly? something else?

When using Migration Assistant to move users, files, and folders from an old Mac to a new one, you have a few different choices, depending on the Macs involved. Presuming that both Macs have appropriate ports, which ports should be used in a real-world situation? Please do not provide quotations of theoretical port speeds; I'm looking for real-world experiences as to what will get the job done faster.  Port choices:   FireWire 400 in target disk mode FireWire 400 to 800 in target disk mode FireWire 800 in target disk mode 100 Megabit Ethernet to Gigabit Ethernet in the OS Gigabit Ethernet to Gigabit Ethernet in the OS Thunderbolt cable in target disk mode


Is there a way to detect if a computer running Windows 7 was in sleep mode at a certain hour?

I'm trying to work out if my computer has actually fallen asleep, I have set it to fall asleep, but it restarts so quickly, I cannot tell if it was actually having zzzzs or not.  What logs are there to tell me when and if my PC fell asleep?


Evaluate the following limit:  $$L=\lim_{x\to 0} \frac{(1+x)^{1/x}-e+\frac{ex}{2}}{x^2}$$  Using $\ln(1+x)=x-x^2/2+x^3/3-\cdots$  I got $(1+x)^{1/x}=e^{1-x/2+x^2/3-\cdots}$  Could some tell me how to proceed further?

$$\lim_{x\rightarrow 0}\frac{(1+x)^{1/x}-e+\frac{ex}{2}}{x^2}=\,?$$   by directly substituting $x=0$ i got $\infty$ by using L-H's rule, i got $-1/8$   the given options are  $a)\frac{24e}{11}$    $b)\frac{11e}{24}$    $c)\frac{e}{11}$    $d)\frac{e}{24}$    may be the question would be  $$\lim_{x\rightarrow 0}\frac{(1+x)^{1/x}-e+\frac{ex}{2}}{x^2}=\,?$$


Are the loops and sound effects that are found in Garageband royalty free?   Specifically, can I use them in my game that I am developing for the iOS App Store whether I sell the App or make it free?

Let's say I used some Apple Loops in a 5 min contest video that's being sold to the contest host (So he can show a reference for this years contest). Might be uploaded on youtube + their site..  I have two apple loops and one of my own samples playing on and off, but the Apple Loops have more playtime and they're at a low volume when people speak and such which is for the most part of the video. They fade out come in again etc.  These two audio files (Apple Loops) including my own, still in the original form/format from Apple and I have only mixed them and arranged in one track.  Other than that, no further self compositions were added. And if it makes any difference my own sample is played in the middle, so one Apple Loop in the beginning section and one at the end section.    Is this to repackage them as music beds (Illegal)? Or is the "soundtrack" original (Am I cleared)?


What's a word that describes a useful metaphorical precept? "Money is time" might be an example of a _______. For some reason I am associating these (wrong) words with this one: allegory, syllogy, anecdote—so maybe it is similar to these. "Analogy" might be the closest synonym I have thought of so far, similarly "analogue" almost works. Bruce Lee's "be water" isn't an instruction to literally become water, but a metaphor to encourage flexibility and adaptability. If I said "I am water" I would be using a _________. Somehow I associate this word with sages and wise masters in the mountain. Like _______s could be used for expressing comprehensions about the Dao. "There is no spoon" kind of resonance.

Dictionary definitions of all three are very similar, typically something like:     a pithy observation which contains a general truth   But the Wikipedia entries for each are quite different.  Are these words largely interchangeable synonyms?  In the Wikipedia entry for adage, for example, a proverb is defined as an adage produced from folk wisdom, whereas an aphorism has "not necessarily gained credit through long use, but is distinguished by particular depth or good style".


If I'm watching a video in Adobe Flasher Player, say on Youtube, the player steals all focus after I clicked on it. That is, all the regular keyboard shortcuts of my browser - like Ctrlt to open new tab - are blocked.  To get the browser back into focus I could of course click somewhere outside of Adobe Flasher Player - but how can I bring Adobe Flasher Player out of focus by means of keyboard only?

I often cycle through my Firefox tabs using Ctrl+Tab and Ctrl+Shift+Tab. But whenever it reaches a tab that is running a Flash (or similar) plugin, Ctrl+Tab and Ctrl+Shift+Tab won't work anymore, because Flash has the focus and overwrites the general keybindings. I have to stop and click outside of the Flash app to continue the cycling.  Basically, I hate that Flash hijacks the keyboard focus. I never use it anyway, i.e. I never use the keyboard to control certain elements within the Flash app. Can I turn it off, meaning, can I tell Flash not to overwrite Firefox' keyboard bindings?


If you're playing a race with the special power "Diplomat" during the first round, are you allowed to declare peace with a player that has not yet entered the game?

Tonight I gained Diplomatic Sorcerers, two of the other 3 players were in decline so had no active race.  A reading of the rules implied to us that the Diplomatic power could not be used against those two players as they had no active race.


I have had some struggles understanding Python's built-in functions and methods. From what I understand, functions return information about something whereas methods change something. Is this correct? Also not clear to me is why some functions and methods require parameters while others do not. Is this requiring-parameter quality specific to either functions or methods? Finally, why do some of these built-in functions/parameters simply state their name followed by parameters (eg sorted(list)) while others (eg list.sort()) use a period in their syntax?

Can someone provide a simple explanation of methods vs. functions in OOP context?


Today I updated from 13.04 to 13.10. Then sudo apt-get autoremove removed all 32bit packages.  How to get them back? How do I install ia32-libs again?  This is what I get if I try to install them back :  output$ sudo apt-get install ia32-libs Reading package lists... Done Building dependency tree        Reading state information... Done Package ia32-libs is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it:   lib32z1 lib32ncurses5 lib32bz2-1.0  E: Package 'ia32-libs' has no installation candidate

The ia32-libs package is no longer present in Ubuntu 12.04 repositories for a 64bit system. Are there any available replacement packages available for download?


I'm having trouble with part of a build I have to do for an alarm system circuit.  The Boolean code is I = M.(A + B + C + D + E). The +s are ORs, . is AND, and I'm using 2-input OR gates and 2-input AND gates.  When M, the master switch, is on, and any of the sensors A,B,C,D or E are triggered, then the alarm will go off i.e. LED lights up.  I need to latch the output signal once the alarm has been triggered and the latched condition should require a cycle of the master switch to reset the alarm i.e. LED stays lit until reset.  I have to do this using 1 OR and 1 AND gate.  I can't use an SR-latch.  All I know is that I need to loop the AND and OR gate to get feedback/memory so the alarm/LED will stay on until reset, at which point reset LED will light up.  Not sure how to do this.  Here's a pic of the circuit I've built so far.    As I said I'm not sure what way to connect the looped AND and OR gate to get the desired result.  I'd really appreciate some help as it's driving me bananas at this point..  ps I got some help on this forum recently as regards latching and since then I've been playing around a lot with the ciruit but I genuinely can't get it to work.

I'm having trouble with part of a build I have to do. I've built this circuit: \$I = A\bullet(B + C + D + E + F)\$  The \$+\$ is OR, \$\bullet\$ is AND, and I'm using 2-input OR gates.  The output signal is for an alarm.  I need a latched output - I need to derive a simple logic circuit using 1 OR and 1 AND logic gate, that could be added to the alarm output signal.  It should latch the alarm output signal once the alarm has been triggered, and the latched condition should require a cycle of the master switch to reset the alarm.  I googled for answers but couldn't find any... e.g. A site I love for Digital Electronics and Circuit Theory is   If someone could tell me what I need to do, or point me in the right direction that'd be great.


A friend of mine has the following problem.  She booked a flight from Finland to Denmark she discovered now (she is supposed to fly tomorrow) that her passport is expired and for some reasons she does not have her ID card with her. She only have a driving licence.  Is it still possible for her to take the flight?   Any help will be very appreciated!

If one takes a direct flight from one Schengen member state to another, what's the minimum sufficient ID that needs to be provided to board the flight?


I have a list of bytes that are represented in string format, for example, when I print the list in Python3.3 I get the following output:  DATA =  ['FF', 'FF', 'FF', 'FF']   I would like to convert these into bytes, for example 0xFF,0xFF,0xFF,0xFF. I have tried the bytearray() function but this returns an error.  I'm guessing that I am missing something simple here, but I have looked around SO and Google and have so far had no luck  Thanks!

I have a long sequence of hex digits in a string, such as      000000000000484240FA063DE5D0B744ADBED63A81FAEA390000C8428640A43D5005BD44   only much longer, several kilobytes.  Is there a builtin way to convert this to a bytes object in python 2.6/3?


For global safely, is it safe to to use htmlspecialchars or striptags when user POST or GET in php ?  for example, htmlspecialchars any post and get that sent by request and save that to the database

Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML tags?