I have a NTFS drive that I was editing on my Mac.  I have Paragon 9 that allows me to edit NTFS.  When I was moving or deleting a folder with two files in it, something got messed up and I cannot delete the files.  When I try to do it from Terminal, I get   rm:1.m4v: Input/ouput error rm:2.m4v: Operation not permitted  rm:MyDir: Directory not empty   On my Windows 8 VM on the same machine, if I try to just delete the folder or the individual items, I get Item Not Found.  Could not find this item, verify the item's location and try again.    If I dir from that directory, I get  <DIR> . <DIR .. The parameter is incorrect. (Heart Symbol`) 1.m4v 2.m4v 1 File(s) 0 bytes 3 Dir(s)   If I try del or rmdir /s I get the system cannot find the file specified.

I have a song that Windows can't play because there is a question mark in the name of the file.  "Where Have All the Cowboys Gone?.ogg" // as an example   So I try to rename it and Windows complains whether I try it in Explorer or from command prompt.  Error I get when trying to copy, rename, or move is:     The Filename, directory name, or volume label syntax is incorrect   Is there a Windows way to force a rename in this case?   Update  I'll keep an eye on this question, but after 13 answers and many attempts (aside form 3rd party solutions) it seems that Windows can't do this (or at least my windows can't, no short names). So I'm accepting the answer which was my original solution anyway of using Linux. It would be nice to see Windows handle this somehow, so don't stop just because I've accepted this answer, the question still stands!


I created a content type in Drupal programmatically with the following code:  function reservation_system_node_info() {   $items['add_item'] = array(     'name' => t('Add a new item'),     'type' => 'add_item',     'base' => 'node_content',     'has_title' => '1',     'title_label' => t('Name'),     'help' => t('Please fill in all fields.'),   ); }   Now I want to add some fields into this content type, but with no luck. I hope someone can help me with this. I tried to use the system_create_instance() function from Drupal. The code I used:  function reservation_system_create_instance() {   $instance = array(     'field_name' => 'price_item',     'label' => 'Price',     'entity_type' => 'node',     'bundle' => 'add_item',   );  field_create_instance($instance); }   Should I use an another function to create fields in a content type or do I mis something?

Say I have this field, "map_description". I know I would this function to define the field:   $field = array(   'field_name' => 'map_description',   'cardinality' => 1,   'type' => 'text', ); field_create_field($field);   And I have this code which I'm not sure what it does but I'm told that I'll need it:   $instance = array(     'field_name' => 'map_description',     'label' => 'The map description.',     'bundle' => 'my_content_type',     'entity_type' => 'node',     'widget' => array(     'type' => 'text_textfield',  );  field_create_instance($instance)   Those two code bits are both in my install hook and run when I install the module. But while the fields are in fact created, I have to manually assign them to the content type via "manage fields", is there a way to have the fields automatically assigned to the content type?


Let $A$ be a nonsingular $n \times n$ matrix, $\|\cdot\|$ be any natural norm, and $K_{p}(A)=$ $\|A\|{p}\left\|A^{-1}\right\|{p} .$ Let $\lambda_{1}$ be the smallest and $\lambda_{n}$ be the largest eigenvalues of the matrix $A^{t} A$ (b) Show that $K_{2}(A)=\sqrt{\frac{\lambda_{n}}{\lambda_{1}}}$. (Hint: One should use the $\|A\|=\sqrt{\rho\left(A^{t} A\right)}=\sqrt{\rho\left(A A^{t}\right)}$ relation) For part $(b)$, it seems minimal eigenvalue of matrix $A$ will be the largest eigenvalue of the inverse of matrix $A$, so we have to use this idea but could not understand formally why square roots are needed for $K_{2}(A)$ and how spectral radius is necessary for this part?!

Let $A$ be a nonsingular $n \times n$ matrix, $\|\cdot\|$ be any natural norm, and $K_{p}(A)=$ $\|A\|_{p}\left\|A^{-1}\right\|_{p} .$ Let $\lambda_{1}$ be the smallest and $\lambda_{n}$ be the largest eigenvalues of the matrix $A^{t} A$ (b) Show that $K_{2}(A)=\sqrt{\frac{\lambda_{n}}{\lambda_{1}}}$. (Hint: One should use the $\|A\|=\sqrt{\rho\left(A^{t} A\right)}=\sqrt{\rho\left(A A^{t}\right)}$ relation) For part $(b)$, it seems minimal eigenvalue of matrix $A$ will be the largest eigenvalue of the inverse of matrix $A$, so we have to use this idea but could not understand formally why square roots are needed for $K_{2}(A)$ and how spectral radius is necessary for this part?!


Every time I go to the Companions place and when Farkas is there, he is always following me around and I'm automatically focused to him as if he's talking to me. And when I cancel the talk, 3 seconds later I focus to him again, and again. I have to fast travel away from him for him to stop. I did add him as my follower repeatedly in order to increase my skills and get my money back, but now I see that that may be the source of this bug.

I was doing a quest for the companions. When I entered Jorrvaskr, Farkas pulled out his sword and began to talk to me. Every time I would try to leave the conversation he would just follow me and try to talk to me again. This lead to me paralyzing Farkas and running away.   By the time I got to the gates of Whiterun he had already gotten up, ran to me and started another conversation. I quickly made it to the gates and exited, he followed me through the gates but I whirlwind sprinted to Shadowmere then attempted to fast travel - which game me the "Can not fast travel when guards are pursuing you" message even though no guards were following me.   I knew Farkas wasn't far behind so I quickly jumped on a carriage and I traveled to the nearest hold which was Dawnstar. Now I can't leave Dawnstar because the same message appears. I have tried to pay off my debt to the Dawnstar guards but it didn't fix the problem. How can I resolve this issue?


I have a Contacts.arc file which took from a nokia phone as a back-up of contacts.Now my mobile is lost and i want to see some numbers.Is there any application to open .arc file in ubuntu?. I searched in google but didn't get any answer.


I accidentally gave my name and address to a scammer. What can I do? Is that bad? What can they do with that information?

Updated question because old one was embarassing: I saw a spam email from "PayPal" and I didn't realize that it was a phishing attempt. I gave the phishing site my name, telephone number, and email. What could he do with them?  Old question: Well, I saw a spam email, but I didn't realize that it's really a scam at first. I gave him my telephone number, address, and name. What would he do with them? Could he ruin ALL of my reputation with it?


The energy stored in a charged capacitor of capacitance $C$ with $V$ voltage across it is: $$U= \frac 12 CV^2$$ Whereas the work done in charging the capacitor is: $$W= CV^2$$ This means that $(1/2)CV^2$ amount of energy gets dissipated somewhere else. I learnt somewhere that this is dissipated as heat. But an ideal circuit having just a capacitor with a battery (without internal resistance) provides no resistance. So:  How and where does half of the work done in charging a capacitor gets dissipated?

For a simple circuit with a battery supplying a voltage $V$ to a capacitor, let us assume that the charge on the capacitor is $Q$. Now, the work done by the battery or the energy supplied is given by the relation:  $$W=QV$$  But the energy stored in the capacitor is given by:  $$U = \tfrac12 QV$$  The value of $Q$ as well as that of $V$ should be the same in both the equations.  Now my question is, where is the other half of the energy that the battery supplied?


I am writing my project work in LaTeX, but I am facing certain difficulties to write the sign (it is similar to hash sign, but not clearly).   Please help me to write this:

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


I have normal elements where my jQuery code is working as expected.

   jQuery:  $(document).ready(function() {     $('.entry').click(function () {           console.log("A");     }); });   A gets logged in the console as expected. Then I dynamically create span elements with jQuery and append.      But dynamically created spans don't log anything.

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


I noticed that there are a bunch of closed questions which have a lot of people voting on them, and answering them.   I don't understand it, if SO is all about the community monitoring the site then why do the questions the community is interested in get closed? Most of the questions of that type are the "What book should I read?" questions (I might be wrong, there might be some other type of questions I haven't encountered yet) for example  or . Or  one with a really huge activity. It is obvious that there are people interested in the answers.   Why doesn't SO change the policy?   Why are those questions still get closed?

I notice a really worrying trend of some really popular questions being closed and eventually deleted. Some of them became legends already, like this one  ? Yes, it does not fit the format ideally, but what is point of obeying the letter of the law to such extent that it becomes ridiculous? Ok, closing is fine if community leaders became so pedantic, but why go so far as to even delete it? At this point it looks like burning old pictures just because you don't like them.  Update: Summary  For now I heard only two clear arguments:   Those questions pollute search results.  Those questions don't play well with enforcing question and answer standards.   Both of that statements are easily verifiable and to my experience are just false.


I'm working in closed network at the moment. To obtain access to some work related sites I should ask administrator to add some records in firewall. f.e. I need an access to *microsoft.com/* via http && https. Is it enough to open *stackoverflow.com/* via http && https to access SO? Or I should include some other urls into request?

I work behind an really annoying firewall, and I just want the net admin to add all the SE websites to the whitelist. Right now I've lost access to Stack Overflow's authentication, but not Meta's... so I have to come here before I log in there.  It's driving me nuts. Basically I just want to add an exclusion rule for all SE domains; not only the website domains, but also the content domains such as gravatar.com, quantserve.com, the domain that holds static content, etc...


I would like to ask if anyone would help me to find a general formula for the sum of m members of the following series. \begin{equation}        \sum_{n=1}^{m} n^n = 1^1+2^2+\cdots + m^m \end{equation}  Thank you in advance.

Is there a way of finding a formula for $\sum\limits_{k=1}^n k^k$? Maybe I'm missing something really obvious, but I've looked around a bit on the Internet and I haven't been able to find anything.  So, what I'm looking for is a formula in closed form to generate the sequence $1,5,32,288,3413,\dots$


I have seen the uncountability of the real numbers proved in various places as follows:  • Any real number in $[0,1]$ can be expressed as some possibly infinite binary decimal $0.r_1r_2r_3\ldots$.  • Let each such string correspond to the subset of the naturals which contains $i \in \Bbb{N}$ iff $r_i=1$.  • Clearly, this forms a bijection between $[0,1] \subset \Bbb{R}$ and $P(\Bbb{N})$, and so we have that $[0,1]$ cannot be in one-to-one correspondence with $\Bbb{N}$ by Cantor's Theorem, and neither can its superset $\Bbb{R}$.  However, it seems to be that a similar argument could also be made for the natural numbers as follows:  • Any natural number can be expressed as some binary string $\ldots r_3r_2r_1$.  • Let each such string correspond to the subset of the naturals which contains $i \in \Bbb{N}$ iff $r_i=1$.  • Clearly, this forms a bijection between $\Bbb{N}$ and $P(\Bbb{N})$ -- a contradiction by Cantor's Theorem.  I assume there must be something innately wrong with my argument, but surely then the first argument is flawed as well?

In my understanding of Cantor's diagonal argument, we start by representing each of a set of real numbers as an infinite bit string.  My question is: why can't we begin by representing each natural number as an infinite bit string? So that 0 = 00000000000..., 9 = 1001000000..., 255 = 111111110000000...., and so on.  If we could, then the diagonal argument would imply that there is a natural number not in the natural numbers, which is a contradiction.


I would like to know a way to time between two points in a program. In my situation I will ask the user 10 questions and after display the time it took for them to answer the question (example code below). How would i do this through something like import time ?  Example code:  timer.start question1 = input("What is your favorite game ?") timer.end print(timer.time)   ^ The timer.x thing is going to be replaced with your suggestions.

What is the module/method used to get the current time?


I browsed through the question history for a while but could not find something helpful for my problem. Sorry, in case I missed a fitting case.  I use document class scrartcl for writing my PhD thesis. I want my sections to start directly after the previous text ended, i.e. I want to prevent them from starting automatically on a new page. How do I do this?  Alternatively, is there another document class that you would recommend?  I am still at beginner level of LaTeX, so I would appreciate a simple solution ;)    UPDATE:  Wow. Thx for the quick responses! And yes, I do use \include. Sorry, I was not aware that this can cause "special effects"...So, can I do something to prevent this from happening?  @egreg: Thx. I will give the "scrbook" a shot. Although, it will not solve my \inlcude-problem, I guess?  @wasteofspace: No, I am not using \chapter as "section".    UPDATE2:  @Joseph: Because I am new to this and have not known better. I got a template from a collegue and this was its documentclass. I will try the one recommended by egreg.

There are two different commands to incorporate another file into the source of some document, \input and \include. When should I use one or the other? What are the differences between them? Are there more things like them to be aware of?


Why is it that we have a closed set of four functions, connected by Legendre transforms, in thermodynamics but nobody ever mentions but two of the corresponding functions in mechanics?  I've read that the Lagrangian L(q, q') corresponds to the tangent bundle of the configuration space in differential geometry, while the Hamiltonian H(p, q) corresponds to the cotangent bundle. If we call the mystery functions in mechanics X(p, p') and Y(p', q'), what do they correspond to in differential geometry?  Note that is order to get an exact one-to-one correspondence with the thermodynamic functions, with all of the plus and minus signs coming out the same, it is necessary to re-define the Lagrangian as L=V-T, instead of the conventianal L=T-V.

There are 4 main functions in mechanics. $L(q,\dot{q},t)$, $H(p,q,t)$, $K(\dot{p},\dot{q},t)$, $G(p,\dot{p},t)$. First two are Lagrangian and Hamiltonian. Second two are some kind of analogical to first two, but we don't use them. Every where they write that using them can cause problems. But why?


I am trying to derive ELM going through the basics , please help me out here :   $$f = x^Tx$$ $$g = Ax-b $$   The constraint is $Ax-b = 0$  I calculated $J' = f'+\lambda^T g'$ which is $2x+(\lambda^T A)^T = 0 $ and $Ax-b=0$ . I dont know what to do next please help me out .

How can you prove that the normal equations: $(X^TX)\beta = X^TY$ have one or more solutions without the assumption that X is invertible?  My only guess is that it has something to do with generalized inverse, but I am totally lost.


I am an undergraduate pursuing mathematics and computer science in the research university at U.S.  Inspired from the applications of algebra to math and statistics, I have been trying to find a suitable project in the mathematics with supervision from a faculty member, or a reading course in some topics of the pure mathematics.  I have been sending emails to professors at the math department for either a reading course or a project (regardless of the difficulty) I can pursue, but they are either not interested or ignoring my emails and corresponding followup reminders.  When I visited one of faculties during her office hour, she told me that she have been ignoring my emails since she is not interested in my proposal of research idea (I felt sad for a while as I hope she just informed me she is not available).    The general outline is that I approach professors doing research similar to my interest, and ask them if they have any available project.  If they do not have projects, then I ask them if they are interested in hearing about my own ideas.  I am started to feel anxious about it as I really like to work with professors in the mathematics (my interests are not really in the domain of CS, but more or less the pure mathematics and its applications in theories of CS); I am interested in their research, but they are not interested. I understand the busy schedules of professors, so I am curious if there us any way to approach them to acquire the opportunities of project or reading course. So far, none of the professors at the department is interested or available...

Dear Academic SE advisers,  I am a college sophomore in US with double majors in mathematics and microbiology. My algorithmic biology research got me passionate about the number theory and analysis, and I have been pursuing a mathematics major starting on this Spring semester. I have been independently self-studying the number theory textbooks written by Niven/Zuckerman/Montgomery, Apostol, and Ireland/Rosen on this semester. As this semester progressed, I discovered that I am more interested in the pure mathematics than applied aspects (computational biology, cryptography, etc.). I want to pursue a career as analytic number theorist and prove the Collatz conjecture and Erdos-Straus conjecture.   I have been thinking about doing the number-theory research on my university (research university; huge mathematics department). I have been self-studying the NT by myself and also regularly attending the professional and graduate seminars on number theory but I did not do any pure mathematics research as an undergraduate. Should I visit NT professors in my university and ask them about if I can do undergraduate research under them? If research is not possible (perhaps due to my lacking maturity), should I request of doing independent reading under them and later proceed with the research? How should I ask them? What should I address? If even independent reading is not desirable to them, what should I ask to them or do in my own?   As for my mathematical background, I have been taking Calculus II (computational) and discrete mathematics. I will be taking calculus III (vector calc.) on Summer, followed by Analysis I, Probability, Theoretical Linear Algebra on Fall 2015. As for my self-studying on this semester, I have been studying NT textbooks (mentioned above), proof methodologies, and basic linear algebra.   Thank you very much for your time, and I look forward to your advice!  Sincerely,  PK


I'm using a function to dynamically generate output for PS1. There are a couple statements that check if node and package.json exist, and if git and .git folder exist to display node version or the git branch. If none exist it just outputs the User$.  The problem is when user goes into another folder where none of the conditions are met the prompt is not updating. It's like conditions are cached or smth  function displayPS1() {   MESSAGE="";   GRAY_BACK="\[\e[100;97m\]";   GREEN_BACK="\[\e[100;42m\]";   GREEN_FORE="\[\e[32;1m\]";   CYAN_BACK="\[\e[100;46m\]";   CYAN_FORE="\[\e[36;1m\]";   RESET="\[\e[0m\]";    if hash node 2>/dev/null && [ -e package.json ]; then     NODE='$(node -v | sed "s/\(v[0-9]*\)\(\.[0-9]*\.[0-9]*\)/\1/g")';     MESSAGE="${GRAY_BACK} node ${GREEN_BACK} $NODE ${RESET} User${GREEN_FORE}$ ${RESET}";   elif hash git 2>/dev/null && [ -d .git ]; then     BRANCH='$(cat .git/HEAD | sed "s/ref:[[:space:]]refs\/heads\///")';     MESSAGE="${GRAY_BACK} git ${CYAN_BACK} $BRANCH ${RESET} User${CYAN_FORE}$ ${RESET}";   else     MESSAGE="User${CYAN_FORE}$ ${RESET}";   fi    echo "$MESSAGE"; } export PS1=$(displayPS1);

Why when I enter this command the prompt changes to my directory?  PS1='$(pwd)'   I am using single quotes, which means no interpolation , a.k.a echo '$(pwd)' ——→ $(pwd)  Furthermore, say that we clarified why this works... why is it functioning differently from PS1=$(pwd) ? (no quotes at all)  By different I mean that if I use the quotes then the prompt will keep changing to my current directory as I navigate through the terminal. But if I don't use quotes, then the prompt will always remain the directory that I was in when I first entered the command PS1=$(pwd)  why?


I have an input field on my website which uses pattern matching in the HTML It needs to have - Lowercase a-z (not upper) - All numbers (0-9) - Allows underscores (_) but NOT spaces - Minimum of 4 characters with a max of 12. - Does not allow special characters such as @, #, $, %, ^, * etc.  Right now I have pattern="(?=.*[a-z0-9_]).{4,12}" The problem seems to be that it does allow special characters.

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


We know that in $\mathbb Q[x]$ that two cyclotomic polynomials $\Phi_n(x),\Phi_m(x)$ are relatively prime when $m\neq n$. This means that there are integer polynomials $a(x),b(x)$ and a positive integer $D$ such that:  $$a(x)\Phi_n(x)+b(x)\Phi_m(x)=D$$  The smallest such $D$ can be thought of as some kind of integer $GCD$ of the polynomials. I'm wondering if there is a good general formula for this?  Lets write $\langle m,n\rangle$ to be this $D$.  If $m=1$ then $$\langle 1,n\rangle=\Phi_n(1)=\begin{cases}p&n=p^k\\1&\text{otherwise}\end{cases}$$  If $m,n>1$ and $\gcd(m,n)=1$ then we easily get that $\langle m,n\rangle = 1$, by the same argument that $\gcd(x^n-1,x^m-1)=x^{\gcd(m,n)}-1$, since the proof of that is entirely in $\mathbb Z[x]$.  When $m=p,n=2p$ with $p$ prime, you get $\langle m,n\rangle = 2$, since we get $\Phi_{p}(x)(1-x)+\Phi_{2p}(x)(1+x)=2$.    A related question is, given distinct integers $m,n$, what is the smallest $D$ such that for all integers $k$:  $$\gcd(\Phi_m(k),\Phi_n(k))\mid D$$  In general, this $D\mid\langle m,n\rangle$ but is not necessarily equal. For example, when $m=p,n=2p$ where $p$ is an odd prime, then $\Phi_m(k)$ is never even, so $D=1$ when $\langle m,n\rangle = 2$.

Since Cyclotomic polynomials are irreducible over $\mathbb{Q}$, $\phi_n(x)$, $\phi_m(x)$ are coprime as polynomials in $\mathbb{Z}[x]$.   Working over $\mathbb{Q}$, $(\phi_n(x)$, $\phi_m(x))=(1)$. This implies that $(\phi_n(x), \phi_m(x))=(c)$ for some $c \in \mathbb{N}$ when this ideal is considered in $\mathbb{Z}[X]$. Can this $c$ be evaluated as a function of $n,m$? What can be said about $f(x) = gcd(\phi_n(x),\phi_m(x))$, when the polynomials are considered as scalars, i.e. evaluated at some $x$? $\forall x: f(x) | c$ from question 1, but can something stronger be said? More concretely, what is the image of $f$?   EDIT:  This  by Apostol, provided in the comments to Greg's answer, gives a pretty good answer, which Greg guessed.   It basically calculates the resultant of 2 cyclotomic polynomials, which gives a number that is divisible by the optimal constant $c=(\phi_n(x), \phi_m(x))$, and it is either 1 (when $\frac{n}{m}$ is not a prime power) or a power of a prime ($p^{\phi(m)}$ when $\frac{n}{m}$ is a power of $p$).  When it is $1$ (the common case), we have a full answer for both questions. When it is a prime power, we only have an upper bound for the multiplicity ($\phi(m)$, when $m|n$).  This  gives some weaker result but it is simpler.


Can Markdown formatting be added to chat descriptions?  Sometimes bold text would be nice, to highlight something in the description.

Greetings guardians of the unicorns,  I noticed that markdown links don't render as expected in the room info.  It's only a small thing but thought I would bring it to your attention.  UPDATE  In response to comments: Raw URLs do link; however, the [description](url) syntax doesn't work


I am building a 18W tube amplifier based on this . I found a  for a similar amp.  my problem is that there is low plate voltage on all of the tubes (by plate I mean pin 3): when I measure the pins without the tubes it's around 120V and with the tubes it drops to ~17V. there is clearly something wrong. After rectification I can measure ~300V on the (+) of the bridge rectifier.  I am concerned about that 220K resistor, which is (in the layout) next to the rectifying diodes. would it make a difference if I remove it? because i cannot see it on the schematic.  note: I have a power transformer without center tap, which is rectified using a bridge rectifier as discussed in

I am trying to build a 18w amplifier based on  however my  doesn't have a center tap on the secondary winding  Is it possible to use this power transformer for this project?  I also tried it using a solid state rectifier (the one with 4 pins: - AC AC +) connecting the ac to the transformer the (-) to ground and the (+) to the standby switch (please see the schema), although I could measure the correct voltage on the (+), there was no current going on the grids of the tubes, not even on the filtering capacitors.  or maybe the problem is somewhere else in the circuit? appreciate your help


We should have the ability to un-upvote comments that we had previously voted on, within a reasonable timeframe.  Sometimes my hand slips and I accidentally upvote something, or I blindly upvote Jon Skeet's comments out of habit.

As mentioned on :     For something that can be done so   easily by accident, there should be   the ability to undo mistakes.   I know that I have clicked several times on a comment up-vote without actually wanting to.  I would suggest being able to cancel the up-vote (maybe only for a couple of minutes or even less than a minute, no problem, as long as I can undo a miss-click).


import java.lang.reflect.Field;  public class ReflectGetFields {     public void modeString() throws IllegalArgumentException, IllegalAccessException, ClassNotFoundException{         ReflectionPoint rp = new ReflectionPoint(1,2);         Field[] fields = rp.getClass().getFields();         System.out.println(fields);         for (int i = 0; i < fields.length; i++) {             if(fields[i].get(rp)==Class.forName("java.lang.String"));             {                 String sss = (String) fields[i].get(rp);                 StringBuilder strb = new StringBuilder(sss);                 for (int a=0;i<strb.length();i++) {                     if (strb.charAt(a)=='b') {                         strb.setCharAt(a, 'a');                     }                 }             }          }          System.out.println(rp.toString());     }       public static void main(String[] args) throws IllegalArgumentException, IllegalAccessException, ClassNotFoundException {         ReflectGetFields rgf = new ReflectGetFields();         rgf.modeString();     } }   Eclipse says :  Exception in thread "main" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String     at com.github.user3301.Reflection.ReflectGetFields.modeString(ReflectGetFields.java:11)     at com.github.user3301.Reflection.ReflectGetFields.main(ReflectGetFields.java:36)   I just don't know where did I do wrong as fields[i].get(rp) returns a field in the class and there is a if statement to check if it is a String type, so why it cannot be cast into a String type?

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


I have two files: one which is the dictionary, and the other one corresponds to the list of words that appear in a transcription. I need to output the words out of vocabulary words. This is:  dict.txt you  she apple banana strawberry eat  transcript.txt you strawberry and  banana <silence> for  breakfast   So, my desired output would look like this:  and for breakfast <silence>   Is there any command output such words that are not found in the dictionary? thanks in advance!

Is there any tool that can get lines which file A contains, but file B doesn't? I could make a little simple script with, e.g, perl, but if something like that already exists, I'll save my time from now on.


I often pipe commands to less in order to read through the output (e.g. compiler errors).  MyCommand | less   This is great because it makes trawling through large amounts of output easy, but when I exit less the output is gone. How can I make the output still visible after quitting less?  This question differs from  because that question relates to output to a text file via tee, which, as far as I know, doesn't provide a facility to split output between less and stdout.

Okay. If I wanted to redirect the output of a program to a file, I'd do something like this  prog > file   If I wanted to redirect both stdout and stderr to that file, then I'd do  prog > file 2>&1   This is all well and good if you want the output to go to the file. But what if you want the output to go to the file and yet still go to stdout/stderr? So, the output is saved in the file, but you can still see it on the console as the program is running. Is there a way to do that? And if so, how?


Suppose $X_1, X_2, ..., X_n$ are i.i.d.r.v., where $X_i>0$ and $EX_i=\mu$, $Var(X_i)=\sigma^2$. Find $E\left(\frac{X_1+X_2+...+X_m}{X_1+X_2+...+X_n}\right)$, if $m<n$.  Any ideas how to even start this problem?

Let $X_1, \ldots, X_n$ be i.i.d. random variables with expectation $a$ and variance $\sigma^2$, taking only positive values. Let $m < n$. Find the expectiation of $\displaystyle\frac{X_1 + \cdots + X_m}{X_1 + \cdots + X_n}$.   My attemps to solve this probles are rather straightforward. Denote $X = X_1 + \cdots + X_m$ and $Y = X_{m+1} + \dots + X_n$. So, $X$ has the expectation $ma$ and the variance $m\sigma^2$. And $Y$ has the expectation $(n-m)a$ and variance $(n-m)\sigma^2$. And also $X$ and $Y$ are independent. So we can compute the expectation by the definition $\mathbb{E}\displaystyle\frac{X}{X+Y} = \int\limits_{\Omega^2}\frac{X(\omega_1)}{X(\omega_1) + Y(\omega_2)}\mathbb{P}(d\omega_1)\mathbb{P}(d\omega_2)$. But we do not know the distribution, so we do not have chance to calculate it.  I would be glad to any help or ideas!


We are having a very infrequent beep occur in the house.  It lasts about one second and then stops for a long time, about once an hour or so.  I can't tell what direction it is coming from but we have checked all the smoke and carbon monoxide detectors.  We can hear it pretty clearly from the living room and dining room.

I know this sounds like a silly question and it may be closed before it may get a single answer but there is something strange in my house which beeps infrequently. I tried to troubleshoot the sound but no luck. I thought may be its coming from the living room but there is nothing special in the living room which may make a beep sound.  Can someone point me what should i look for to figure out what is making this sound?


I am trying to code a simple macro which based on a condition either calls break or continue in the loop in which it is called. Below is the code:  #include <iostream>  #define BC_IF_EVEN(BC) if(i % 2 == 0) BC  using namespace std;  int main() {     int i = 0;     while(i++ < 30) {             if(i < 15)                     BC_IF_EVEN(continue);             else                     BC_IF_EVEN(break);              cout << i << " ";     }     cout << endl; }   The output that I am looking for is: 1 3 5 7 9 11 13 15, but the above code outputs: 1 3 5 7 9 11 13 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 because the else condition in main() gets applied to the if condition in the BC_IF_EVEN macro.  A simple fix is to put scope braces for the if condition in main(), but I do not want to enforce that because the user should be allowed to code in regular way.  N.B. I cannot put a do { .. } while(false) loop in the macro (which is a standard trick to allow semicolons after macro calls in conditionals because the break and continue sent via BC get applied to this inner loop.  Is there an easy way to get the required output without modifying the main() function?

In many C/C++ macros I'm seeing the code of the macro wrapped in what seems like a meaningless do while loop.  Here are examples.  #define FOO(X) do { f(X); g(X); } while (0) #define FOO(X) if (1) { f(X); g(X); } else   I can't see what the do while is doing.  Why not just write this without it?  #define FOO(X) f(X); g(X)


I have created a class named Titles and i have an attribute in it called 'name', which is a String.   class Title{    String name;    Title(String name){        this.name = name; }   I am looking for words that fit my puprose in a textfile and then I create an object of type Title with this word as an argument, like this (titles is a List containing all the created objects):  while(in.hasNextLine()) {                        line = in.nextLine();                        Matcher m = libPattern.matcher(line);                        while(m.find()) {                                String token = m.group(1);                 Title newTitle = new Title(token);                                       if(!titles.contains(newTtile)) {                                         titles.add(newTitle);                                        System.out.println(newTitle.getName());                 }              }   I have overrided the equals and hashCode methods with the standard way:  @Override public boolean equals(Object o) {     if(o == null)         return false;     if(o == this)         return true;     if(!(o instanceof Title))         return false;     Title t = (Title) o;     return t.getName() == this.getName(); }  @Override public int hashCode() {     return this.getName().hashCode(); }   Now my problem is that although I check if the titles List already contains a Title object with the same name, it always returns false, so I get Title objects with the same name many times in my List. I have debugged this in all the ways I could think of and I couldn't solve it. If i replace token with, let's say token = "TitleName" , then create Title(token), add it in the List and then do the check, it understands that it already exists. I tried the following:  Title titleObj = new Title("titleName"); titles.add(title); if(titles.contains(titleObj))     System.out.println("true");   and it does return true. So I guess the cause of the problem is the line  String token = m.group(1);   but i can't find the solution. Could anyone help?


When I try to sign in with my Apple ID via the App Store, it seems it is not connecting. I tried to put a different password and it notified me that it was wrong, but with the correct one it only seems to work, but then i'm not getting in.  More specifically, when I put in my correct password, it doesn’t error out (like if I put in an incorrect password), instead the login window just disappears.  In iTunes and Books I can sign in and sign out whenever I like, so I really can't see where the problem is.  Any suggestions?

I have an iMac with Mac OS X 10.8 (Mountain Lion). When I open the Mac App store, and try to download an App, it asks me for the login. When I enter my Apple ID's email and password and click login, the button become gray for a moment, and then asks me for the credentials again. There is no error message displayed. The email and passwords are correct, since if I try an incorrect password it tells me that it is wrong.


I'm having trouble finding wolves. I saw a question written a few years ago that had a "protip" stating to set out some torches in a forest biome, kill all the bad guys, and wolves would be found in about 10 minutes. This didn't work for me. Neither has wandering around aimlessly holding a bone. I've heard that wolves are less likely to spawn in 1.8? Anyone have any other tips? I really want a pack of tamed wolves for my base. I've searched birch forests, forests, taiga, mega taiga...no luck!

Wolves? What wolves? I have only spotted ONE wolf in playing minecraft for the past two weeks!  Can anyone tell me where I can find one? Is there some sort of biome they prefer? Are the spawning rules for wolves any different from regular critters?


I try to solve it by Mathematical Induction. However I don't know how to prove that $(k+1)!>(k+1)^3$

Prove by induction: Find a, and prove the postulate by mathematical induction.  $$\text{For all}~ n > a,~ n! > n^3$$  Where ! refers to factorial.  So far I've done a bit of it, I'll skip right to the inductive statement and assume that $k! > k^3$, then try to prove $(k+1)! > (k+1)^3$  Inductive statement: $(n+1)! > (n+1)^3$  $(n+1)^3= n^3 + 3n^2 + 3n + 1 < n! + 3n^2 + 3n + 1$ (By Induction Hypothesis)  ...But now I'm stuck. Does anyone know where to go next?


I am in need of a cheap DC motor that spins at a very low speed, preferably around 10-15rpm. As I am new to electrical engineering, I am not quite sure what to do. The only things I know of are expensive high torque slow motors, which I do not need. The only other idea I had was to make a circuit comprising of only a fast motor, battery, and potentiometer to slow down the motor. Would this work? Would I be able to get a over 1000 rpm motor down to 10rpm? Any feedback is appreciated. Thanks

I am trying to find a motor to use to spin a cardboard wheel to drop balls through a hole. I want this to happen pretty slowly, around 10rpm. It also needs almost no torque, as it is spinning cardboard. However, when trying to find a motor, all I can find is extremely fast motors with low torque  or slow motors with high torque. Both options are expensive. Does a very low cost, DC, low speed, low torque motor even exist? Thanks


The word I'm seeking is a word used to describe the feeling you get when confronted with the immensity of nature and how little we are. It's what you get when you stand on the beach, watching the ocean when a storm is coming, or looking at the stars at night in the open, it's not fear, though it has some of that, it's a lot of mixed emotions: awe, fear, contemplation, admiration, etc.  It's not a word I made up, I read it a long while ago on a grammar group and now I need it, but I can't remember it.   And it's not a common word neither, it's very specific, it's the name of that mixed feelings you get in the situations I described, neither positive nor negative, a mix of both.   Someone mentioned ¨sonder¨ on the comments, and it's quite near that, but sonder means realizing your problems are minuscule compared to the Universe, which is not the same  And I apologize for not being clear enough prior, English is not my native tongue.

A man sits on a bench considering his woeful burden. He looks up at the stars and compares the distance from here to his house and here to the furthest visible star Deneb. Suddenly his problems seems pitifully faint and untroubling. He laughs and relaxes in his seat, staring at the ducks.     Look again at that dot. That's here, that's home, that's us. On it everyone you love, everyone you know, everyone you ever heard of, every human being who ever was, lived out their lives. The aggregate of our joy and suffering, thousands of confident religions, ideologies and economic doctrines, every hunter and forager, every hero and coward, every creator and destroyer of civilization, every king and peasant, every young couple in love, every mother and father, hopeful child, inventor and explorer, every teacher of morals, every corrupt politician, every "superstar," every "supreme leader," every saint and sinner in the history of our species lived there—on a mote of dust suspended in a sunbeam.   ~Carl Sagan      I really believe that if the political leaders of the world could see their planet from a distance of 100,000 miles their outlook could be fundamentally changed. That all-important border would be invisible, that noisy argument silenced. The tiny globe would continue to turn, serenely ignoring its subdivisions, presenting a unified façade that would cry out for unified understanding, for homogeneous treatment. The earth must become as it appears: blue and white, not capitalist or Communist; blue and white, not rich or poor; blue and white, not envious or envied. ~Michael Collins, astronaut   I'm looking for a noun or verb that describes this positive enlightening experience.


I have a C# MVC 5 web application which I have created a model that contains categories and then I used the automatically created controller and views via MVC 5 Controller with views, using Entity Framework.   I have several other controls that need a list of those categories.  The list of categories is needed at least once per page but sometimes multiple times.  Instead of doing multiple database calls, I just read the information into a list, like this:  var categoryQuery = from d in db.Categories                     orderby d.Name                     where d.Visible == true                     select d; List<Category> categoryList = new List<Category>(); categoryList.AddRange(categoryQuery);   Is there somewhere in my controller that I can put this code so that it is called only once but then I can use the list multiple times?  Edit:  Editing to provide a better example.  In my _Layout.cshtml page, I call an HTML action which returns a partial view to display the category list:  @Html.Action("Menu", "Categories", new { DropdownMenuTitle = "Categories" })   Then on my Index.cshtml page, in the same controller, I do another database call to get a list of the categories which I create a SelectList and then a DropDownList on the page.  How do I do this without the two database calls?

I have read lots of information about page caching and partial page caching in a MVC application. However, I would like to know how you would cache data.  In my scenario I will be using LINQ to Entities (entity framework). On the first call to GetNames (or whatever the method is) I want to grab the data from the database. I want to save the results in cache and on the second call to use the cached version if it exists.  Can anyone show an example of how this would work, where this should be implemented (model?) and if it would work.  I have seen this done in traditional ASP.NET apps , typically for very static data.


We are able to add/remove elements to List using add()/remove() methods without creating another list which looks similar to StringBuilder append. Because of this I think List is mutable.   Can anyone confirm my understanding is correct?   If it is wrong please explain the code below:  List<String> strList = new ArrayList<String>(); strList.add("abc"); strList.add("xyz");

This could be the dumbest question ever asked but I think it is quite confusing for a Java newbie.    Can somebody clarify what is meant by immutable?  Why is a String immutable? What are the advantages/disadvantages of the immutable objects? Why should a mutable object such as StringBuilder be preferred over String and vice-verse?   A nice example (in Java) will be really appreciated.


I have a list of symbols and abbreviations. Please see my code below, at the end of this question.  This code works, but I would like to have my symbols/abbreviations with a LOCATION. By this I mean, to take one of the symbols in the text and mention it for the first time with the appropriate page in the document where it was used and so on...   \chapter*{List of Symbols} \begin{abbrv} \item[$\textbf{A}$]          a square matrix \item[$\textbf{z}$]           a vector \end{abbrv} \chapter*{List of Abbreviations}  \begin{abbrv} \item[CPU]                   Central Processing Unit \item[NYC]                   The New York City \end{abbrv}     Any help will be appreciated.

I'm using the glossaries package. I have an acronym (eg. API) that should be explained in the Glossary. It should be linked to the Glossary at occurrence but should be written out at first occurrence. How can I do that?  Explanation: I want something like that:  This is a test of Application Programming Interface (API). And this is the second occurrence of API.  Acronyms API Application Programming Interface Glossary API An Application Programming Interface (API) is a particular set of rules and specifications that a software program can follow to access and make use of the services and resources provided by another particular software program that implements that API


Question is pretty straight forward-- how do I make an edit that is actually helpful? How do I know when a post should be edited?

I'm getting pretty close to the reputation where I can start to edit others' posts, and I'm wondering what the etiquette for when (and when not) to do so. I figure that I should edit in the following circumstances:  Grammatical or spelling errors. Clarification where the meaning is not changed. For instance if the title does not describe the question very well. Where the user has made a very minor mistake that doesn't justify a full post to clarify. To add related resources or links that will help someone answer the post, or provide context  Before the commenting feature was added, I noticed that some moderators edit posts in order to insert a reply or extension to the post. I feel this isn't good etiquette (but I could be wrong) because I don't know what to do with their changes when I come to re-edit or respond. I also feel that I should be very careful not to change the meaning of any question or answer, even if that meaning is misguided. What other rules would be best practice?  Signatures and fluff are discouraged and are fair game to be removed.  See, for example, this post by  and this post by  and also see .  Also see Jeff Atwood's response in the comments to


In the beamer manual on pg 64 they introduce the following suggestion on how to insert a horizontal navigation bar  \insertsectionnavigationhorizontal{.5\textwidth}{\hskip0pt plus1filll}{}   They introduce a variable, plus1filll, but I can't find information on where this comes from anywhere. I'd like to know: Is it a built-in LaTeX command or introduced by beamer? What does it do?

I had a question about dynamic vspaces () and there was a hint I should use a stretchable glue. Searching with Google didn't give me a helpful answer.  I would be glad, if someone can explain it and give me a simple example to understand how it works.


Lets say I have a block of code like this:  while condition; do   {    command 1    command 2    command 3   } done   Does pushing the block of code between the curly braces to background  like this { code } & results in parallelization. Is there any improvement in performance by doing this for CPU intensive code blocks.

Lets say I have a loop in Bash:  for foo in `some-command` do    do-something $foo done   do-something is cpu bound and I have a nice shiny 4 core processor. I'd like to be able to run up to 4 do-something's at once.  The naive approach seems to be:  for foo in `some-command` do    do-something $foo & done   This will run all do-somethings at once, but there are a couple downsides, mainly that do-something may also have some significant I/O which performing all at once might slow down a bit. The other problem is that this code block returns immediately, so no way to do other work when all the do-somethings are finished.  How would you write this loop so there are always X do-somethings running at once?


I'm writing a paper in English and need to include a few characters in Korean in the body and title.  I've read several other posts and managed to get the Hangul to show up inside the body, but I can't get them to show up inside the title.  I am using pdflatex and have all of the necessary fonts installed.  Here's the minimum working example that shows the characters appearing in the body but not in the title on my system:  \documentclass[11pt]{article}  \usepackage[utf8x]{inputenc} \usepackage[thai,english]{babel} \addto\extrasthaicjk{\fontencoding{C90}\selectfont}  \makeatletter \@namedef{opt@inputenc.sty}{utf8} \makeatother \usepackage{CJKutf8}  \newenvironment{Korean}{%   \CJKfamily{mj}}{}  \title{   Character does not show up here:    \begin{CJK}{UTF8}{mj}\begin{Korean}시험\end{Korean}\end{CJK} }  \begin{document} \maketitle  It works here  \begin{CJK}{UTF8}{mj}\begin{Korean}시험\end{Korean}\end{CJK}      \end{document}   I don't see any errors about the title, so I'm stuck on what to do.  This is my first time including foreign script characters in a LaTeX, so any help would be much appreciated.  Thanks!

I've been unable to find a concise answer anywhere else on the web. Since its only a few words, albeit crucial ones, that are in Korean I don't want to have to muck around with HLaTex or deviate from pdfLaTeX that I'm using at the moment.


I have a problem with Ubuntu mounting windows partitions. When I turn on the computer, Ubuntu is not mounting my windows partition (sda3). It gives this error message:  Unable to access "Main memory"

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


Is the function $$f(x)= {\sin x \over x}$$ Uniformly continuous over $R$  How do i approach this ? I need some hints.

Determine whether the function$$f(x)={\sin x \over x}$$is uniformly continuous in $\mathbb{R}$.  I am using the definition that for $\epsilon>0$ there exists $\delta>0$ such that $|f(x)-f(y)|<\epsilon$ whenever $|x-y|<\delta$.


Is there a way to do a "batch uninstall" where you select the 30 or so programs that you want uninstalled, and it opens all of there uninstallers at once, and lets you do it that way? If not, is there a way to queue them?

Just been working on a new laptop today (Acer) and it was pre-installed with all sorts of crapware. Mostly games and "backup utilities" and McAfee. I had to manually uninstall about 30 apps via Vista's Programs and Features  So it got me wondering is there any way of mass uninstalling or queuing an app to be uninstalled? Through Vista/XP you need to wait for Install Shield or whatever to close before beginning to uninstall the next app. Took way more time than it should have.  Just another one of those Windows annoyances! Any help appreciated as I often need to do this when I come across a slow machine that's just been clogged with a bunch of useless apps


I am making an app to save a name and using a Spinner control, but it keeps giving me a Null Pointer Exception.    It says:  Attempt to invoke interface method 'android.content.SharedPreferences$Editor android.content.SharedPreferences$Editor.putInt(java.lang.String, int)' on a null object reference  at com.example.shubham.theroster.MainActivity.onItemSelected   Here is the MainActivity.java  public class MainActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener {     EditText editText;     SharedPreferences prefs;     SharedPreferences.Editor editor;     CheckBox box1, box2;     Spinner spinner;     int spinnerData;      @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         prefs = getSharedPreferences("settings", MODE_PRIVATE);         editText = (EditText) findViewById(R.id.editText);         box1 = (CheckBox) findViewById(R.id.checkBox);         box2 = (CheckBox) findViewById(R.id.checkBox2);         spinner = (Spinner) findViewById(R.id.spinner);         spinner.setOnItemSelectedListener(this);         spinnerElement();         loadDataPreference();     }      public void save(View v) {         editor = prefs.edit();         // 1.  Name         editor.putString("name", editText.getText().toString());         //2. checkbox         if (box1.isChecked()) {             // steady=true;             editor.putString("status", "Not Steady");         } else if (box2.isChecked()) {             //notSteady=true;             editor.putString("status", "Steady");         }         /*CheckBox cb = (CheckBox) findViewById(checkBox);         boolean bCheckBox = cb.isChecked();         editor.putInt("", bCheckBox ? 1 : 0);*/         editor.commit();         Toast.makeText(this, "Saved", Toast.LENGTH_SHORT).show();     }      public void loadDataPreference() {         String str = prefs.getString("name", "");         editText.setText(str);         String status = prefs.getString("status", "");         if (status.equals("Steady")) {             box2.setChecked(true);         } else {             box1.setChecked(true);         }         Toast.makeText(MainActivity.this, status, Toast.LENGTH_LONG).show();         spinner.setSelection(prefs.getInt("spinnerStatus", 0));     }      @Override     public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {         editor.putInt("spinnerStatus", position);          Toast.makeText(MainActivity.this, parent.getItemAtPosition(position).toString(), Toast.LENGTH_LONG).show();     }      @Override     public void onNothingSelected(AdapterView<?> parent) {     }      public void spinnerElement() {         ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,                 R.array.color_arrays, android.R.layout.simple_spinner_item);         adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);         spinner.setAdapter(adapter);     } }

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


I am travelling from Doha to Manila via qatar airways. Can I bring 2 baggage weighing in total 30kg (which is the allowed baggage) plus the 7kg handy carry or I can only bring one baggage weighing 30kg plus hand carry 7kg? If I like to bring extra one baggage how much do I need to pay?

Can I pre-purchase more luggage allowance on Qatar Airways flights?  I am traveling with Qatar Airways from Stockholm, Sweden (ARN) to Bangkok, Thailand (BKK) and I will be carrying one additional bag beyond the carry-on and standard check-in bag.   Am I able to pre-purchase allowance for this additional bag or is it always counted as excess luggage according to the fee list on their website?  And if so are there different rules for different routes (i.e transatlantic fares or such)?


I want to share the same vector between derived classes and access the string as individuals. I get an error with unresolved externals. What is going wrong. Is there any other way of sharing a vector between classes without static methods.  #include <iostream> #include <vector> #include <string> using namespace std; class base { public:   static vector<string> v1;    void set(string val);    vector<string> getval(); };  void base::set(string val) {    v1.push_back(val); }  vector<string> base::getval() {   return v1; }   class derived :public base { public:   void vec(); };  void derived::vec() {   string b = "sfd";   derived d;   d.set(b); }  class derive2:public base { public:   void vec2(); };  void derive2::vec2() {   derive2 f;   vector<string> a(100);   a = f.getval(); }  int main() {   derived a;   a.vec();   derive2 b;   b.vec2();   a.vec();   b.vec2();   return 0; }   How to get the vector in a derived class

Very simply put:  I have a class that consists mostly of static public members, so I can group similar functions together that still have to be called from other classes/functions.  Anyway, I have defined two static unsigned char variables in my class public scope, when I try to modify these values in the same class' constructor, I am getting an "unresolved external symbol" error at compilation.  class test  { public:     static unsigned char X;     static unsigned char Y;      ...      test(); };  test::test()  {     X = 1;     Y = 2; }   I'm new to C++ so go easy on me. Why can't I do this?


My husband and I are British nationals living in Israel with student and spouse visas. Our visas expire on 3rd December 2014, and we have been unable to get an appointment to renew them before January 2015.  We want to go home for Christmas to UK  and return to Israel in January, at which time our resident visas will have expired.  Are we likely to be able to re-enter Israel on the normal 90 day tourist visa exemption, and then renew our other visas or is that going to cause problems with us coming back into Israel?

My multiple entry student visa was issued on June 25th, 2012 and expires on June 24th, 2013.  I entered Israel on August 26th, 2012.  I am planning to leave Israel on June 13th (to Poland) and return approximately a month later in order to take my return flight home to the United States (I am a U.S. citizen); staying in Israel no longer than a week.  Will I be able to re enter Israel in order to do so?


I am trying to run a java program inside a screen session at boot, I am using the following cron, but after reboot screen -ls shows no active screen sessions.  @reboot /usr/bin/screen -dmS myservice "java -jar /home/david/myservice/MyService-0.0.1-SNAPSHOT.jar"   Any idea what I am doing wrong?  EDIT:  I did change it to the following and the screen does start at boot now.  @reboot /usr/bin/screen -dmS myservice && "java -jar /home/david/myservice/MyService-0.0.1-SNAPSHOT.jar"   I added && before starting the java command and not the screen does start at boot. But the program is still not running.  but the program is not running when I attach to the screen. after attaching to the screen all I see is a dollar sign.

This is a  about using cron & crontab.   You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question.  The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below.  This addresses the cron system with the crontab highlighted.


Suppose you use a spell like steel wind strike which allows you to target up to five different creatures and at the end of the spell you are allowed to teleport into 5ft of any of those targets. Now you have either just four targets or you want to end up besides an ally for any given reason. Would you technically be able to teleport up to him, choose to not attack or miss on purpose and then teleport back to him? Or rather choose him as the last target. I mean I would allow it, but I am curious on why I could be wrong on this one.

For example, if one wanted to trigger the benefit of the Mobile feat, wherein you can move away from a creature you made an attack against without provoking an opportunity attack, can you choose to miss the attack on purpose?  The mechanical benefit of this over taking the Disengage action would be that you can use the rest of your attacks from the Extra Attack feature, or still use TWF's bonus action, or potentially save an "on next hit" ability or effect for a different non-adjacent creature on the same turn without taking an attack of opportunity from, or damaging, the currently adjacent creature.


When I heat water in my electric kettle the noisy turbulence gets louder and louder as the water nears boiling. Shortly before the kettle turns itself off (presumably when it detects the temperature limit) the noise subsides.  Why?  This might be physics - or just  delay in the feedback system.

Water in my electric kettle makes the most noise sixty to ninety seconds before the water comes to a full boil. I have been fooled many times by the noisy kettle, only to discover that the water was not yet hot enough for tea. The kettle is only at a full boil after the noise has subsided.    I have noticed the same phenomenon with many other kettles, including conventional kettles on kitchen ranges; it is not a peculiarity of this electric kettle.  Why does the boiling become quieter as the water reaches full boil?


I have a pointer declared in my header file witch i am initializing in my constructor to point towards and array. However I cant seem to get it to point towards the array as a whole instead i only see the first value in the debugger. Is there anyway to make it show everything or do i have to acces it in the blind.  I am using Visual Studio 2013  .h  class myClass{     public:         myClass();         ~MyClass();     private:         double* categories; }   };  .cpp  double array[5] = {0,1,2,3,4};  categories = new double[5] categories = array;   What confuses me is when i do it all in .cpp i can see everything just fine :/  double g[2] = { 9, 8 }; double(*j)[2] = &g;

If you have a statically allocated array, the Visual Studio debugger can easily display all of the array elements.  However, if you have an array allocated dynamically and pointed to by a pointer, it will only display the first element of the array when you click the + to expand it.  Is there an easy way to tell the debugger, show me this data as an array of type Foo and size X?


I didn't quite understand how to fix these stuff from other posts. Can someone help me?  W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


What's the proof of $\sum_{k=0}^{n}\binom{n}{k}\cdot 2^k = 3^n$?

I need help proving that $$\sum_{r=0}^n\binom{n}{r}2^r=3^n$$  I'm thinking this should use the idea that $\binom{n}{r}=\binom{n}{n-r}$ but I'm not sure how to proceed with it.  Thanks in advance!


I have a points layer with a frequency field indicating a population at that point. There is also a field indicating the broader area by which I need to analysis broken down into. I am expecting the points to be mostly grouped in a number of clusters. I need a way of determining how many clusters there are, probably by density, and to return a point for the centre of each.  I've made a heatmap in the display section of the points layer by setting a radius and weighting by the frequency field and in this created three clusters in my trial area, that look right, but I don't see how to get a coordinate for them. Any suggestions of what tool(s) to look at.      is basically the same, but as none of the answers explain how I can do weighted cluster analysis in QGIS.  I don't know postGIS or R, and the plugin manageR that was cited no longer seems to exist.

I have a vector dataset of rural broadband data-points (how fast, etc.) and I'd like to explore if there are clusters of points with similar characteristics, and to plot polygons encompassing them.   For example, I may have 45,000 points in a single PostGIS dataset distributed over a landscape.  I want to identify clusters which lay within x km of each other and where the speed is below y kbps, and to produce convex hulls for each qualifying cluster.   Is there a simple way of doing this in QGIS, for example?


The sentence is— "Her and James' life shouldn't be a topic of discussion for them." I believe that it should be she and James' and not her James'. Which version of the sentence is correct? Please help me out, thank you.

Which of the following sentences contains the grammatically correct bolded section:  "He affected me and my friend's day." or "He affected my and my friend's day."  It seems clear to me that the first sentence clearly sounds the best, but I was always told that you should be able to isolate the sentence to just one of the objects, i.e. remove my friend from the sentence, and when I do that, only the second sentence makes sense.  What is the correct grammar to use here?


Well I am a graduate Physics student. I am going to have Electrodynamics in next semester. I am confused between choice of book to follow. I want something advanced than Griffith but less advanced than Jackson. I hit upon two choices. One is Classical electromagnetism by Jerrold Franklin and another one is Electromagnetism a problem solving approach by Markus Zahn. Please suggest which one I should use.

What books are recommended for an advanced undergraduate course in electrodynamics?


Is there a way to stop python from creating .pyc files, already in the shebang (or magic number if you will) of the Python script?  Not working:  #!/usr/bin/env python -B

Can I run the python interpreter without generating the compiled .pyc files?


I just updated my iMac to Mojave, and am still trying to setup my preferences.  I tried dark mode, but did not like it (half of me apps seem to ignore it anyway).  I switched to light mode, but this too has problems. The File Save dialog shows a list of Directories and existing files, but the latter are very light grey, almost indistinguishable from the background.    I have searched the Preferences menu, but can't seem to find any setting to set normal contrast levels like in High Sierra.

I want to click on file to inherit the name for the file being saved. I can't read file names in the dialog box because the color is too faint. This is the same question as   That question does not have an answer but I don't have enough points to interact there so I have to post a new question.    Edited to add screen shots I tried to calibrate the monitor which no effect and did not change the readability of "unavailable" file names. I have added screenshots of previous operating systems to compare: Please tell me how Mojave is not to blame here:


I have a problem - I want to store values from standard input line to an int but am unsure how to convert to an int:  string line; int value; getline(cin,line); istringstream ss(line); while (ss>>line) {     if (ss.eof()==false) {         // stores non ints in strings     }     else {         value=line; //ERROR     } }   I have tried to convert this using standard documentation material but I am going nowhere. What am I doing wrong?

What's the C++ way of parsing a string (given as char *) into an int? Robust and clear error handling is a plus (instead of ).


I was reading  of David Z about meaning of "Quantum" that this question came in mind:  If light is quantized (i.e. is a integer multiples of some unit $\hbar c/k$), are other kinds of energy quantized too?  I think all kinds of energy should be quantized because they can convert to each other and if one of them is quantized, all other kinds must be so. Is this correct?  If that is correct, then what is a quantum of kinetic or potential or internal energy of a body with mass $m$? E.g. is kinetic energy of a translating body ($K=\frac 12mv^2$) a integer multiples of some unit?

In the  for quantum mechanics, the first postulate states that a quantum state is a vector in a separable Hilbert space. It means it is assumed the Hilbert space has a basis with at most infinite countable elements (cardinality). In other words, it states that the energy of an arbitrary system is discrete. Is it always true? If not, can you make an specific example in nature that its eigen-energies are uncountable?


For a very technical site documenting code, sharing code snippets, and documentation, I have been told that using dark fonts on light backgrounds is recommended for people being able to read the information clearly as possible.  While, for my eyes and designing skills, dark backgrounds and light text works way better for me. A few clients have said that that does not work at all for the type of site which I have created.   Which would work better for a technical site: dark backgrounds with light colour fonts or light backgrounds with dark fonts?

I am using   (dark background with light text) in my application.    My question is, what are the negative and positive aspects of this color scheme and why this color scheme is not widely used?


I just want to know if this equation for the mass defect is correct  $$\Delta m = Z * m_p + Z * m_e + N* m_n - A $$  where    Z- Atomic number A- Mass number N- number of neutrons $m_p$- mass of the proton $m_n$- mass of the neutron $m_e$- mass of the electron   I came up with another formula also $$ΔM=[(Z(m_p)+N(m_n))−(M)]$$ where $m$ is the observed mass  Which one is correct and what is the difference between both these equations?

I'm a web developer and I have to change an online course. The course teaches Advanced Nuclear Theory. In the 'Mass Defect and Binding Energy' chapter, it has this formula:  $$\Delta M = Z(m_p) + N(m_n) - \frac{A}{Z}(M).$$  In the formula above, the letter 'p' and 'n' are written in subscript, and for the 'AZM' part, the letter A (written in superscript) is above the letter Z (which is in subscript). Above this equation, this is written  1/1(p) + 1/0(n) -> 2/1(D)  mass of proton = 1.007272 u mass of neutron = 1.008665 u mass of deuterium nuclear = 2.013553 u   . Below the equation which I wrote above (delta M = Z(mp) + N(mn) - A/Z(M)), the worker / user is asked to fill in the blank:  ∆M = __ x __ + __ x __ - __  B.E. of nucleaus = 931.5 x __ MeV  When the neutron and proton combine, the nuclear force pulling them together does __ MeV of work.   Now, can anyone tell me what the correct answers are to the blanks? I'm just a web developer and I have to write a program which checks that the user filled in the correct answers, but I do not know the correct answers. I have some knowledge of physics and I'm guessing mp = mass of proton, mn = mass of neutron and then M = mass of deuterium nucleus, but what about the other blanks?


Here is what I want to prove     $\Sigma$ a set of sentences such that there are arbitrarily large finite models in which $\Sigma$ is true. Prove that $\Sigma$ is true in some infinite model.   Here is my attempt:  Let $A$ be the domain of model $\mathfrak{A}$. Let $|A|=n$ be the size of $\mathfrak{A}$. If $n=0$, then $A=\emptyset$ and we have no variable assignment to talk about. Given $n$, consider sentence $\mathcal{T}$ such that          \begin{align*}    &\mathcal{T}:=\forall x_1\forall x_2\dots\forall x_n(\wedge_{j=1}^{n}\wedge_{i=1}^{n}(x_i\neq x_j))\text{ }\text{ when $n>1$}\\    &\mathcal{T}:=\forall x_1 x_1=x_1\text{ }\text{ when $n=1$}   \end{align*}         where $\wedge_{j=1}^{n+1}\wedge_{i=1}^{n}(x_i\neq x_j)=(x_1\neq x_2)\wedge (x_1\neq x_3)\wedge\dots\wedge (x_1\neq x_{n})\wedge (x_2\neq x_1)\wedge\dots$  If $n=1$, then any model with a smaller size is empty. And for any model with at least size $n$, since $x_1=x_1$ is true under any variable assignments, hence $\mathcal{T}$ is true in these models.  For $n>1$, if size of $\mathfrak{B}$ is less than $n$, then there must be at least one pair of identical elements in $\{b_1,\dots, b_{n}\}\subseteq B$ by Pigeonhole principle. Hence for any variable assignment $s$, if $s'\equiv s$ except $s'(x_i)=b_i$ $\forall 1\leq i\leq n$, then $s'(x_{i})=b_i= b_j=s'(x_{j})$ for some $1\leq i\neq j\leq n$. Hence $\mathcal{T}$ is never true in these model. If size of $\mathfrak{B}$ is at least $n$, then we can choose $\{b_1,\dots, b_{n}\}\subseteq B$ be pairwise distinct so that for any variable assignment $s$, if $s'\equiv s$ except $s'(x_i)=b_i$ $\forall 1\leq i\leq n$, then $s'(x_{i})=b_i\neq b_j=s'(x_{j})$ for all $1\leq i\neq j\leq n$, i.e. $\mathcal{T}$ is true under $s$ in $\mathfrak{B}$.   Now for each $n$, we get a sentence $\mathcal{T}$ that is true in all and only those models that have size $\geq n$. Let $\Sigma$ be a set of $\mathcal{T}$ for all $n$. Hence any finite subset of $\Sigma$ is true under some infinite model, so satisfiable. By Compactness, we know if every finite subset of a set of sentences is satisfiable then, the whole set is satisfiable, so we done.  My questions: Since $\Sigma$ is true under some arbitrarily large finite models, so I assume that for each $n$, every sentence in it is true in all model with size greater than $n$. However, I specifically choose my sentences to construct the $\Sigma$ instead of consider case in general. So am I wrong? And what will be a sentence look like in general such that given $n$, it is true in all and only those models that have size $\geq n$. Thanks in advance.  ==============update======================  Thanks @Asaf Karagila for pointing out the mistakes on the quantifier. $\mathcal{T}$ should be $\exists x_1\exists x_2\dots\exists x_n(\wedge_{j=1}^{n}\wedge_{i=1}^{n}(x_i\neq x_j))\text{ }\text{ when $n>1$}$. And the rest follow. And as mentioned by @Alex Kruckman, my question is a duplicate of a question asked by @MrTopology. I follow his idea to finish the problem in general case  Now for each $n$, we get a sentence $\mathcal{T}$ that is true in all and only those models that have size $\geq n$. Let $\Sigma^*$ be collection of  $\mathcal{T}$ for all $n$. Hence $\Sigma^*$ is true in infinite model. Let $\overline{\Sigma}=\Sigma^*\bigcup\Sigma$. As $\Sigma$ is a set of sentences such that there are arbitrarily large finite models in which it is true, any finite subset of $\overline{\Sigma}$ is true under some finite model, so satisfiable. By Compactness, we know if every finite subset of a set of sentences is satisfiable then, the whole set is satisfiable, so $\overline{\Sigma}$ satisfiable. Since $\Sigma^*$ is true only in some infinite model under construction, hence $\overline{\Sigma}$ is true in some infinite model, then so is $\Sigma$

Let $\Sigma$ be a set of theorems, such that for every $\varphi\in\Sigma$ exists an arbitrarily large (<--- edited) finite model $\mathcal{M}$, with $\mathcal{M}\models\varphi$. Show: It exists an infinite modell $\mathcal{M}$ with $\mathcal{M}\models\varphi$ for every $\varphi\in\Sigma$.  Hello, I want to proof this statement, and might need some help. I think the compactness theorem is needed. My idea ist the following: I want to extend $\Sigma$, such that it has an infinite carrier set $M$ and conclude that for the resulting model $\mathcal{M}=(M,\dotso )\quad\mathcal{M}\models\varphi$ by using the compactness theorem. The actuall proof seems to be trivial: Let $\Sigma':=\Sigma\cup\{v_i\neq v_j: i\neq j\}$. By assumption every finite $\overline{\Sigma}\subset\Sigma$ is satisfiable. Therefor $\Sigma'$ is satisfiable by the compactness theorem and has obviously an infinite carrier set, since we added an infinite amount of variables. My thoughts do not need that $\Sigma$ contains theorems (hence formulas without free variables) and not general formulas. Am I mistaken with my proof? Thanks in advance for your comments.


On digikey site program memory for  is shown as 32KB (16K x 16). in ATMEGA328P  program memory is 32KB but what does (16K x 16) mean?  Other Examples are :   16K x 8 64 x 16 64K x 8 1K x 16

This is a beginner question here. When choosing memory ICs, one of the options is the memory size/configurations. I understand the size part, but what does the "16Kx9" mean? It seems the same memory size is usually available in different configurations. I attached a screenshot from Digikey as an example.


I need to retrieve "My Number" from AddressBook but I can't find out how to do so. When accessing the contacts in AddressBook, I managed to get all the contacts but I don't know how to get the "My Number". I know it's accessible as for instance on my phone, it is categorised under my first and last name and therefore I manage to take it from there. But I would like the standardised way to access the "My Number".  Thank you infinitely for your help,

Is there any way to get own phone number by standard APIs from iPhone SDK?


I am having a problem with my sd card installation. After inserting sd card in my phone, still its showing "insert sd card". Can anyone help me out with this problem?

My Samsung Galaxy Admire phone is saying that an SD card isn't found when the SD card is inside the phone: it shows "Please insert SD Card".  What could be wrong?


This question relates back to separating the Tor Browser from Firefox in the Unity launcher (I assume it applies to other DE's as well). The original question is .  As part of my proposed solution I created a .desktop file that uses a different icon and runs the Tor Browser as a separate process from firefox.   It seems that in Unity the only way to create separate entries in the launcher/dash is by using separate .desktop files (which makes sense) and putting them in ~./local/share/applications or /usr/share/applications.  However, the problem is that, according to , .desktop files can't/are-not-intended to be run from within a shell, but rather the DE (or something) parses and executes the file and ties it to a particular icon, comment, etc. I want to somehow emulate THAT, whatever the DE does to interpret a .desktop. Something like:  $ app-launcher --run-desktop '/path/to/desktop.desktop'   I assume things like Gnome-Do or Synapse use something conceptually similar to my made up command above. So how can I replicate that in a script?  P.D. The best I have been able to come up with is to use xte to literally simulate pressing the Super key, typing "Tor Browser" and pressing Enter, as I sit and watch the dash open on its own, "Tor Browser" sluggishly type itself in and finally open the app, all while I gently sob at the horror I have created... There has got to be a better way.  : )  EDIT: Though this question is related to the question: , it is not a duplicate. The other question establishes (as I described in my 4th paragraph) that there is no way to run .desktop files DIRECTLY from a terminal and keep separate entries in the Unity launcher, either due to a bug in xdg-open or simply because that is not what they were designed for. Acknowledging that fact, this question asks for a different method for executing .desktop files from a terminal, by using the same (or similar) method the Unity Dash, Gnome-Do or Synapse uses.

From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder.   If I open that folder in nautilus, I can run these applications just by double clicking its associated file, e.g. double-clicking firefox.desktop runs Firefox. However, I can't find a way to do the same thing via terminal.   If I do gnome-open foo.desktop it simply opens foo.desktop as a text file. If I make it executable and then run it in bash it simply fails (which is expected, it's clearly not bash script). EDIT: Doing exec /fullpath/foo.desktop gives me a Permission denied message, even if I change ownership to myself. If I make executable and do the same command, the terminal tab I'm using simply closes (I'm guessing it crashes). Finally, if I do sudo exec /fullpath/foo.desktop, I get an error reporting sudo: exec: command not found.  That's my question, how can I run a foo.desktop file from the terminal?


It is often considered a punishment to send thieves, rapists, bastards etc. to the Wall for serving in the Night's Watch. Also there is a list of rules to follow like not fathering children, etc. Apart from that there is a danger of ranging in the wild (e.g. wilding attacks, the Others, other creatures, etc.). In spite of this there are some people who deliberately take the Black.   My question is: What are, if any, the positive benefits of joining the Night's Watch?   (Other than getting away from a society that treats you unfairly if you are a bastard)

Is the wall a bad or a good place to be? Some people are sent there as punishment, others go because they want to (Jon Snow), others to get away from harm (Arya).  If I am not completely correct, it is because I have only started watching the series recently, and it is a bit confusing!  Please also correct me if I am wrong with any facts!


This question has been asked a lot but,i didn't find a single answer that could help me I run Ubuntu 19.10 from a 64GB USB2.0 pendrive.  I have distributed the partitions as such :  home : 49GB snap : 2GB  root : 10GB   Today when i checked the disk manager i found out that i had used up 86.5% of root partition. What i want to do now is allocate 10GB of home partition to root one .So,the new partitions will be as follows :   home : 39GB snap : 2GB  root : 20GB   But,when i open Gparted/Disks ,select the partition and then click on the resize option,i receive the :   Error unmounting/dev/sdb6: target is busy (udisks-error-quark, 14) I am not aware of which information to hide. So,in the screenshot provided ,i have censored some parts  What i tried to do before asking this question :  I restarted the computer and took note that no other file was open before trying to resize the partition .  If you want any other information to solve my problem. Do let me know.

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


I would like to know if Teemo use Blind, then does Darius' Ultimate get blocked?

How do blind effects such as Teemo's blinding dart and Heimer's grenade work in League of Legends? For example, does it work against an enhanced auto-attack such as Nasus' siphoning strike?


Motivation  I often need to reinstall different operating systems on different computers. Instead of having to download the OS from the NET each time, I would like to save it on the USB. Then I could plug the USB stick into PC, boot from USB (with the help of BIOS settings), and install the OS. It would also help me to quickly reinstall my own OS, if something gets corrupted (that has already happened to me).  At boot time I want to have an option of selecting which OS to load from USB, just as I have an option of selecting which OS to load from disc.  The reason why I want to have everything in one place is because I have a nice tiny USB stick, which has 32 GB of storage, and which can be easily carried in my wallet.  What's done so far  I succeeded installing a single OS into Kingston Data Traveler 32GB USB stick. After changing the boot order in BIOS settings, everything works.  Now I want to try install multiple OSes using another Windows program called YUMI.  My BIOS boot order is: USB FDD, USB HDD, USB CDROM, HDD1, Ubuntu, Windows, [rest]. When I use YUMI to make a multi OS USB and try to install the same OS as before (just one OS so far but using YUMI program now), the problem occurs. The BIOS no longer recognizes that the USB stick contains OS, and therefore prevents from booting into it. What happens is that the standard boot menu appears with Linux and Windows available, and nothing more, just as it would appear without any USB stick connected.  One of the 2 possible reasons I believe this could happen is:    Kingston Data Traveler USB does not have an option to contain multiple OSes. The OS is stored in the USB using the wrong format: some path to the OS directory is missing, or whatever.    Questions  Is it possible to have multiple OS'es on Kingston Data Traveler? Do you think the problem could be one of the 2 above? How to solve it?

I own 4 different computers which I often shuffle the primary OS's around on.  I specifically use Windows 7 Enterprise (work laptop) Windows 7 Ultimate (my primary desktop) Windows XP (my old laptop) and the Ubuntu distro of Linux (media center).  So, here's the plan, I just got a shiny new 16 GB USB key.  I want to put all 4 of these OS Images onto the key, and then be able to boot from that key, and select which operating system I want to install on the system.  I know how to make a bootable USB key, that's easy for me, but I looked around a little and didn't find any software utilities that can help me composite these operating system images into a multi-bootable installer selection, does anyone have any ideas? I'm sure I could probably do something with bootcamp, but I don't really have any experience there, so before I jumped into something like that I wanted to know if the SU community had any better ideas.  I'd like to point out, I'm also more than happy to listen to advice from the community on better ways to achieve this same, or similar effects!  Another thing I'd like to achieve is fully automated installation (especially if there is an easy way I can select profiles, this is system A's profile, it gets this system name, and has these users, etc.)  One last thought, I know there are many tools that can tweak the installer ISO's to embed the Product Key into a Windows OS Image.  What are some of the best tools for this?


Below is a sample of a spreadsheet I have (fig 1). It has been exported from an asset tracking system and provides me a list of information about the hardware we have.  Each asset "area" uses the same format (Name/Asset/Date/Model/Serial) before repeating and I need to get them into columns rather than rows (see fig 2) for entry into a new spreadsheet.  I'm in the process of writing a macro using my Razer keyboard software (involving a lot of copying, moving between workbooks, and pasting) but does Excel actually do that itself?

How do I transpose data in columns to rows?    If the data is:  Joe   some city   some state   Bob   no city   no state     and I use Paste Special » Transpose, I get    Joe some city some state Bob no city no state     What I want is:    Joe some city some state   Bob no city no state     I do not know VBA.


I have a new Samsung Galaxy A40 and would like to use a Linux-based alternative to Android. Reasons: Privacy/security, hackability, moving away from Google.  1.) Can I install an alternative OS even though my device is not explicitly supported? If not, what are the limiting factors? Does each device require a specific set of drivers (e.g. graphics, audio, peripherals)?  2.) Are there any good OS options? Is anyone using Ubuntu Touch? The OS should be safe, stable and user-friendly. Also, using standard device functions and installing/sideloading APKs of standard apps (e.g. WhatsApp/Telegram/KakaoTalk) should be straightforward with no extensive workarounds required.  PS.: I have no experience as a mobile developer.    I'm linking a  from Unix SE and trying to restate the question. According to this table    attempting to install an alternative OS causes even most basic hardware functionalities (touch, battery, calls) to stop working. This is unsettling, as installing Linux on my Windows machine does not disable my display, keyboard, network card etc. Why am I getting "locked out" of my own device? What exactly is the problem, are components and device manufacturers keeping their drivers under wraps? What makes "porting" so difficult and necessary in the first place?

I would like to port Ubuntu Touch to a device that is currently not supported. What are the requirements for doing this and where do I begin?


I work in a business where most people run on PowerPoint and wouldn't know what to do with an Excel sheet if it bit them. I need to regularly update a spreadsheet and put it into PowerPoint, but it takes up about 7 slides, requiring me to manually choose the slide breaks and moving things onto the following slide.  I feel that there must be a way to put a single table in PowerPoint (2007) and have it stretch over several slides automatically, but I can't figure out how. This question was previously asked but the answer does not cover the actual question:        Does anyone know how to do this?

I have a table in Excel which is too long for one PowerPoint slide. So I would like to split it over 2 or 3 slides, but have the header on each of the slides. What is the easiest way to accomplish that? I am using Excel and PowerPoint 2007.


I'm looking for a book that I read several times in the early 80s and I'd like to try to find to give to my own children.  I can't remember the title or author but I can give a description of the prologue.  The opening panels detail a spaceship traveling on a collision course with earth with and astronauts dead hand on the controls.  The ship (crash?) lands on earth in the mid to late 20th century.  The aliens are essentially 12 foot tall humans with much hardier bodies and long lifespans.  After careful examination of the aliens and their ship a series of books is found whereupon there is a great effort to decipher the writing.  A young linguist becomes fascinated with the task and becomes obsessed with cracking the code and he spends the majority of his life trying to solve the riddle.  After a lifetime of work he has his eureka moment as an old man and the rest of the book is the "translation" of the chronicle that was found in the spaceship.  The book was a large-format hard cover graphic novel (comic book panels really but it was a single book) with a spaceship traveling through space.

When I was a kid I had a book that I loved, as I think about it I'm pretty sure it would be characterized as a graphic novel although I was unfamiliar with that term at the time. It was a large hardcover comic book but a full-length story, probably a few hundred pages long.  This would have been about 25-30 years ago.  I recall a little about the plot: It starts with a spaceship crashing somewhere, I remember one of the first panels had the phrase that the ship "yawed wildly". I always remembered that because I had to look up the word "yawed".   The rest of the story is told in flashback form, with the rise of an empire, and I'm pretty sure there's a guy who's a slave or otherwise in the lower strata of society who rises to be the ruler of the world or something like that.    I thought that the title had the word "titan" or "empire" in it (Empire of the Titans, or Rise of the Titans, or something similar), but Google searches have been unfruitful.


The placeholder text is masked from the right end and the bracket is missing too:    Zoomed in:

On the  page, in the Tags textbox, the placeholder width is set to 19px, so a part of the placeholder text is truncated.


For example, someone managed to make a basketball half court shot but it was him trying a thousand times not because he is that good. "Lucky" could be used as the word but I wonder if theres any word that emphasises on the great quality of the achievement, with negative connotation or an undertone of it being something that only happens once in a lifetime and shows the person doing it is not really that impressive.

I've read , but none of them are what I am looking for. I once read a book that used a word to describe an event that has happened in the past, but the odds were so astronomical that it will likely never happen a second time. The context I read these words in were the creation of the first life on earth (without any theological ideas). Basically, the text said that the scenario for the creation of the first living organism happened on a planet where conditions were just right by complete chance, and that the odds of this were so astronomical that it would likely never happen again anywhere in the universe over any length of time.  Sample sentence: "The creation of the first organisms was incredibly unlikely, the event can be called a _________ event, or an event that will likely never happen again."   I can't pretend to understand the validity of the claims by the text, but the words they used to describe these events were quite clever (and scientific sounding) that it would make a fun hyperbole.  I thought it was something along the lines of singularity event, but that doesn't sound quite right.


I'm using an Canon 1200d. Lighting up the focus points clearly shows that the focus points are shifted slightly to the down vertically.   I've not had any problems with the focusing system.

I recently saw that the red lights on some of the focus points are blurred.  The lights in this picture are lights shown during the selection of focus points.  As you can see the lights in the lower parts are blurred.  This blurring was not there earlier.  This is a Canon EOS 600D with no lens attached.


I am developing a software using VB .NET in a computer running Windows 7 32-bit OS.   The software contains those lines of code as shown below:  Dim cn As New OleDbConnection  cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & fileNameStr & ";Jet OLEDB:Database Password=xxxxxx"  cn.Open()   The codes above open a Microsoft Access file (extension: mdb), which is protected by a password.   In my computer (32 bit Windows 7), the codes work fine.   However, when I test this software in other computers (64 bit Windows 7), I got the error message as shown below:   I have tried to install another driver called "Microsoft Access Database Engine 2010 Redistributable" in those computers getting the error message, however it does not solve the problem.   Can you suggest where my mistakes are and how to resolve them?  Thank you.

I have a Visual Studio 2008 solution with two projects (a Word-Template project and a VB.Net console application for testing).  Both projects reference a database project which opens a connection to an MS-Access 2007 database file and have references to System.Data.OleDb.  In the database project I have a function which retrieves a data table as follows   private class AdminDatabase    ' stores the connection string which is set in the New() method    dim strAdminConnection as string     public sub New()    ...    adminName = dlgopen.FileName    conAdminDB = New OleDbConnection    conAdminDB.ConnectionString = "Data Source='" + adminName + "';" + _        "Provider=Microsoft.ACE.OLEDB.12.0"     ' store the connection string in strAdminConnection    strAdminConnection = conAdminDB.ConnectionString.ToString()    My.Settings.SetUserOverride("AdminConnectionString", strAdminConnection)    ...    End Sub     ' retrieves data from the database    Public Function getDataTable(ByVal sqlStatement As String) As DataTable         Dim ds As New DataSet         Dim dt As New DataTable         Dim da As New OleDbDataAdapter         Dim localCon As New OleDbConnection           localCon.ConnectionString = strAdminConnection          Using localCon             Dim command As OleDbCommand = localCon.CreateCommand()             command.CommandText = sqlStatement             localCon.Open()             da.SelectCommand = command             da.Fill(dt)             getDataTable = dt         End Using      End Function End Class   When I call this function from my Word 2007 Template project everything works fine; no errors. But when I run it from the console application it throws the following exception     ex = {"The 'Microsoft.ACE.OLEDB.12.0'   provider is not registered on the   local machine."}   Both projects have the same reference and the console application did work when I first wrote it (a while ago) but now it has stopped work.  I must be missing something but I don't know what.  Any ideas?