TeXstudio Compile: Error: Could not start the command: pdflatex.exe

I'm trying write a report in LaTeX but TeXstudio won't let me. All I have is this:  \documentclass[a4paper,11pt]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{graphicx}  \title{----} \author{---\\By: ----}  \begin{document}  \maketitle \paragraph{1} \paragraph{2}  \subparagraph{Red}$\\$ \includegraphics{Red} \subparagraph{Blue}$\\$ \includegraphics{Blue}  \end{document}   But when I click F1 to compile, TeXstudio spits this message:  Error: Could not start the command: pdflatex.exe -synctex=1 -interaction=nonstopmode "Prelab1".tex   What is the problem? Why can't I compile?   P.S: Ever since I switched from Ubuntu back to windows, writing LaTeX documents has been a massive pain T.T. What is the best LaTeX editor that won't give me a problem every single second?


Given this preamble, what font would be used?

Given the following code sample, what font would LaTeX actually use? I've looked in various places, but the help on fonts seems too cunning to be understood. This is definitely a different question from some of the other suggested questions that TeX.SE suggests.   \documentclass[12pt]{report}  \usepackage{amsmath,amssymb,latexsym} \usepackage{sectsty} \allsectionsfont{\rmfamily} \usepackage{lmodern} \usepackage{enumerate} \usepackage[active]{srcltx} \usepackage[mathscr]{eucal} \usepackage{cancel} \usepackage{graphicx}


Java NullPointerException while using array

Why do I get a NullPointerException, when I try to execute the method "temperaturEingeben"? I hope you can understand my code because it´s in German.  public class Temperaturanzeige{                                      private int[] temperatur;                                         public Temperaturanzeige(){                                          int[] temperatur=new int[24];                                    for(int i=0; i<temperatur.length;i++){                               temperatur[i]=-100;         }      }      public void temperaturEingeben(int tempNeu,int tageszeit){         temperatur[tageszeit]=tempNeu;     }  }   Thanks for your answer!


How do we find who used Dedicated Admin Connection

Is there any way to find who used Dedicated Admin Connection?   Not active connection but the previous one which is already closed?


Unable to insert into table after creating an After insert trigger

I have two tables  Table one: default_sellers_commissions  have:  id value - INT   Table two:  marketplace_saleperpartner  have:  id userID commission - INT default '0.00' commission_id   what I need is after insert a new row in table marketplace_saleperpartner update the marketplace_saleperpartner.commission value with value from default_sellers_commissions.value where the marketplace_saleperpartner.commission_id = default_sellers_commissions.id   So I create a trigger :   CREATE TRIGGER `marketplacedefaultcommission` AFTER INSERT ON `marketplace_saleperpartner` FOR EACH ROW UPDATE marketplace_saleperpartner SET `marketplace_saleperpartner`.`commision` = `default_sellers_commissions`.`value` WHERE `marketplace_saleperpartner`.`comm_id` = `default_sellers_commissions`.`id` AND `marketplace_saleperpartner`.`commision`='0.00';   P.S: for some reason I need the  marketplace_saleperpartner.commision to insert for the first time with value='0.00'  now I am getting this error while trying to insert a new row into table marketplace_saleperpartner   MySql Error: Can't update table in stored function/trigger because it is already used by statement which invoked this stored function/trigger   Any help please ?


A field extension that is a finitely generated algebra is an algebraic extension

Given a field $F$ and a field extension $K$ such that $K$ is a finitely generated $F$-algebra, show that $K$ is algebraic over $F$.  I think the result should follow by induction on the cardinality of a minimal generating set for $K$ as an $F$-algebra, but I haven't been able to proceed with that line of argument. I am guessing one needs to use some results about integral extensions, but I am not sure.


What is the largest wavelength of electromagnetic radiation that can produce quantum effects that we can detect? Radio, microwave?  What are the constraints to measure photons of larger wavelengths?  Edit: I'm not looking for radiation you can measure with an antenna. But measured with an system that may measure a single photon at a time.


Here I am considering the original zeta function (not the extended one)$$\zeta(s)=\sum_{n=1}^\infty \frac{1}{n^s}$$ When Re(s)>1, the Zeta function converges, and if Re(s)<1 it diverges.  Here is my question. What happens when Re(s)=1?   I know it diverges when s=1, but does it converge otherwise?


I am trying to export a model from modo to blender and the polygons are coming in with a weird look. I am exporting out of Modo as a FBX & OBJ and I get the same result with both. The polygons appear to be the correct shape but there is odd tearing look on the polygons any idea whats going on here?


I tried using Boot-Repair-Disk.  It said to reference:  and after the boot repair failed to correct the problem ...  I've used Ubuntu on this computer since 16.04 came out without any problems until 12-13-2019 when it seemed to freeze up and when I rebooted it wouldn't.  I've tried installing from my 16.04 disks, and from an 18.04.3 flash drive.  I was getting booted to grub rescue, but since then it's always been to the blinking cursor.


Cleaning unused Material Slots in Blender 2.80 Beta

In Blender 2.80, I've deleted a material and have empty material slots on my objects. I want to clean this up.  I have this bit of code:  def clean_mat_slots(self):     bpy.ops.object.select_all(action='DESELECT')      for ob in bpy.data.objects:        if ob.type != 'MESH':            continue         ob.select_set(state=True)        bpy.context.view_layer.objects.active = ob         # Delete all material slots in bounds object        for i in range(len(ob.material_slots)):            print("mat slot:", i)            ob.active_material_index = i - 1            bpy.ops.object.material_slot_remove()   But it does not clean up the slots as I expect. There are no errors reported when I run the code.   Any ideas?


The recurrence relation for Derangement is as follows:  Let $D_n$ denote the number of derangements of a set $\{1,2,3,\ldots,n\}$. Then,  $$D_n=(n-1)D_{n-1}+(n-1)D_{n-2}.$$  Can someone give an intuitive explanation on how we come to find this result?


Why only 2 derivatives in classical mechanics?

The title conveys my true question, but for the sake of clarity I will now rephrase it in a more mathematical flavor using the Hamiltonian formalism of classical mechanics and the terminology of differential geometry, including  and the  $d$.  Consider a physical system with configuration space $M$, a manifold. Its phase space is the cotangent bundle $T^*M$, consisting of (position, momenta) pairs. There is a  $\theta$ on $T^*M$ turning it into a symplectic manifold $(T^*M,-d\theta)$. Any function $H\colon T^*M\to \mathbb R$ may be regarded as a Hamiltonian. From $H$, the dynamics are given by the flow lines of the  $X_H$, defined to be the unique vector field satisfying $ dH(Y)=d\theta(Y,X_H) $ for all vector fields $Y$ on $M$. Moreover, the action is simply $S=\theta(X_H)$.  Since the dynamics are given by a vector field on the cotangent bundle, only two derivatives can appear in the ; since any classical system can be put in the Hamiltonian formalism, it appears that the equations of motion of any classical system can involve only the first two derivatives (equivalently, $F=ma$ where $F$ is a function of position and velocity).  However, there seems to be no mathematical reason for this limitation; certainly one can write down equations involving $3$ or more derivatives - so what makes them unable to appear in the laws of a classical system?  Phrased more mathematically, instead of starting with $T^*M$ (which can be thought of as the space of first order Taylor expansions to functions on $M$) we can start with the  $J^r(M)$, where $J^0(M)=M$ and $J^1(M)=T^*M$ and in general $J^r(M)$ consists of the $r^{th}$ order Taylor expansions to functions on $M$. For any $r\geq 1$, the jet manifold $J^r(M)$ carries a tautological $1$-form $\theta$ which is defined in a similar way as the tautological $1$-form on $T^*M$; in local coordinates $\bigl(p^{(0)},p^{(1)},\ldots,p^{(r)}\bigr)$ which describe curves $f\colon \mathbb R\to M$ with Taylor expansion $$ f(t)=p^{(0)}+tp^{(1)}+\cdots+t^rp^{(r)}+O\bigl(p^{(r+1)}\bigr), $$ the tautological $1$-form on $J^r(M)$ is given by $$ \theta\bigl(p^{(0)},p^{(1)},\ldots,p^{(r)}\bigr)=p^{(1)}_i dp^{(0)\ i}+\cdots+p^{(r)}_i dp^{(r-1)\ i}. $$ Exactly as before, we get a symplectic manifold $\bigl(J^r(M),-d\theta\bigr)$. Any function $H\colon J^r(M)\to\mathbb R$ may be thought of as a Hamiltonian, giving rise to a Hamiltonian vector field $X_H$ on $J^r(M)$ and thus to dynamics of a physical system.  Question.  Why does classical mechanics stop at $r=1$ and have no need for higher order terms in the Taylor expansion? Alternatively, are there physical systems in which higher order derivatives do arise and thus require some modification (e.g. the one given above) to the Hamiltonian formalism?


I want to generate a narrow pulse of very small duration. How can I implement it using PWL function. Or is there any other method for this.


As we all know, immediate actions are just like swift actions, but can be performed outside of one's turn.     However, unlike a swift action, an immediate action can be performed at any time - even if it's not your turn.   However, it is still unclear if one can use an immediate action during someone else's action.  For example:  A monster swings at a conjurer.    Can conjurer abrupt jaunt outside monster's reach right after the attack was rolled, thus wasting an attack?  What about right after the damage was rolled, but not yet applied?  What about casting celerity and baleful transposition on yourself and monster's ally so the monster would hit his ally, given high enough attack roll?   Let's complicate a bit with a complex, full-round action on a monster's side.    Can one use immediate action in between attacks in full attack? What about after movement part of a charge?


I can't see videos in Chromium in Ubuntu 16.04. How can I fix that?  http://www.quizover.com/oer/course/adaptive-submodularity-a-new-approach-to-by-daniel-videolectures     jalal@klein:~$ dpkg-query -s adobe-flashplugin dpkg-query: package 'adobe-flashplugin' is not installed and no information is available Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. jalal@klein:~$ sudo apt-get install  adobe-flashplugin [sudo] password for jalal:  Reading package lists... Done Building dependency tree        Reading state information... Done Package adobe-flashplugin is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'adobe-flashplugin' has no installation candidate   I installed this: sudo apt-get install browser-plugin-freshplayer-pepperflash YouTube videos play with no sound. Please suggest fixes.  UPDATE: I added these, updated and installed flash but I can't hear video voices still:  $ sudo vi /etc/apt/sources.list       48 deb http://archive.canonical.com/ubuntu xenial partner      49 deb-src http://archive.canonical.com/ubuntu xenial partner  $ sudo apt-get update $ sudo apt-get install adobe-flashplugin


i have jar file which contains file with main method. I am running that main class with batch file (as some parameters are being set over there) I want to remote debug the program from eclipse. I am not getting how to proceed ?


Need of describing the term acceleration

What is the need of acceleration when we have velocity As I think velocity as 1m/s means 1m covered in 1s and 1m/s^2 means 1m covered in 1s per 1s this statement creates confusion when it comes to acceleration hence please tell the real purpose of acceleration?


Modern ice-age/plans for weapon hidden in genome

I read this book in the mid-nineties, probably written in the 80s or 90s.  It’s set in the near future, where the world has experienced a sudden glaciation.  Most of the United States and Europe is now covered with ice.  Civilization has collapsed for the most part. The protagonist is a drifter with strange-colored eyes (yellow, I think).  Because of his weird eyes, he’s never really fit in anywhere.  He moves from place to place just trying to survive, but somehow he discovers that the new ice-age did not occur naturally.  It was engineered by extraterrestrials, to make their work easier.  They’re looking for the plans for a super-weapon - a weapon that can cause any star to go nova.  A rival group of aliens hid the plans for this weapon by encoding the information in the human genome millions of years ago.  The marker to identify humans who carry this gene is - you guessed it - yellow-colored eyes.


I have an empty file (only zeroes are in it) of size 9,0KB and I need to write another file (with size 1,1KB) to it, but the first file must not lose its size or the rest of its contents. So if the whole file is 00000000000000... now, I need to write second file in it and leave the zeroes as they are. I have tried to use dd, but I haven't succeed - file resizes.  dd if=out/one.img of=out/go.img   Does anybody know how can I do it?


Is it possible to query uncommitted data of a different session?

For interactive debugging purposes I'm wondering whether it's possible to query the data another session has currently put into the database but not yet committed.  Say I have an my application open in a debugger and when I'm stopped in a certain breakpoint I would like to check interactively what the session of the app "is seeing" via simple queries from SQLDeveloper (or sqlplus).  Is this possible with Oracle XE? (As it is for debugging, there's no DBA or security constraints.)


The status remained "awaiting for reviewer selection" after 5 months since re-submission

Anyone give me some advice: I have made a major revision after receiving one very positive feedback and one very negative feedback for my manuscript. Then I revised and resubmitted. It is almost 5 months since resubmission. The status is remained “Awaiting Reviewer Selection” since then. I have emailed the editor several times, but I still have not received the feedback. Have anyone had this experience and please give me an advice. Thanks!


When proving the law of reflection using huygens construction I do not understand why a tangent is drawn to the semi-circle (i.e the line CD)


I want to know how EXACTLY the WPA password gets encrypted  I have been searching through and I was able to catch:   The actual password is converted to some hash Salting is applied to the hash The operation is not reversible The hash comes with the 4-way handshake   So what kind of hash is it converted? like, SHA1? MD5? and how the salting process is done? like, is the SSID appended to the password before the hashing operation?  Or maybe I have some misunderstanding here?


Connect existing SQLite database android project in Eclipse

I created an android project in Android Eclipse and I want to connect to the database I've created in SQLite Manager.  The database will be saved locally. It is basically a read only only app, there are no create delete update actions done by the user. My queries will be a lot of select queries. I have my data base made and want to import it into android project. What are the steps? I have my model classes created. What else do I need in order to have to connected? Do I store the SQLite file in the assets folder etc?   I have the database made in the firefox addon SQLite Manager!


How to move titles in TOC due to special numbering?

I need special numbering for an article: (e.g. Part 1 should be numbered J4.1, the section below should be J4.1.1).  I did this with:  \renewcommand{\thepart}{J4.\arabic{part}} \setcounter{part}{0} \renewcommand{\thesection}{J4.\arabic{part}.\arabic{section}} \setcounter{section}{0}   The numbering works quite well, but now the position of the titles in the TOC is wrong. Also I get a warning message: Overfull \hbox (14.58316pt too wide) detected.    I tried using tocloft and setting the numwidth, but that didn't change anything.  Here is the complete code:  \documentclass[final]{article}  \usepackage[a4paper,left=25mm,right=25mm,top=2cm,bottom=2cm]{geometry}  \renewcommand{\thepart}{J4.\arabic{part}} \setcounter{part}{0} \renewcommand{\thesection}{J4.\arabic{part}.\arabic{section}} \setcounter{section}{0}  \begin{document}  \tableofcontents  \part{Part 1} \section{Section 1} \section{Section 2} \subsection{Sub 1 asasdasd} \subsection{Sub 2 sdlkfjls} \subsection{Sub 3 ksdfjhj} \end{document}   Do you have any ideas? Thx!


Rounding problems with calculate numbers in Javascript

I've got the following problem when i'm counting in javascript.  var processAmount = parseFloat(166.98) - parseFloat(61.58);   The result is: 105.39999999999999  Doesnt matter if I use parseFloat() or not.  How can I solve this?


Extension on my one of previous questions about each element in a sequence being coprime.

So my previous question states that: We are given the sequence $𝑘_{n}= 6^{({2}^n)} + 1$. We must prove that the elements of this sequence are pairwise co-prime, i.e prove that if m ≠ n then $𝑔𝑐𝑑(𝑘_{m},𝑘_{n}) = 1$.  I previously proved that $k_n | k_{n+1} - 2$  Then using answers I got on my previous question I was able to show that if $p | k_n$ then it follows that $p | k_{n+1} -2$. Using this I could say that that if $p|k_{n+1}$ then $p|(k_{n+1} - (k_{n+1} -2)$. This means the only prime that could divide $k_n$ and $k_{n+1}$ is $2$, however all the terms in the sequence are odd so therefore $gcd(k_n,k_{n+1})=1$.  This therefore proves that every pair of numbers in the sequence are coprime however I'm struggling to extend it to show every element is coprime so I need to show $gcd(k_m,k_n)=1$.   All help is very much appreciated as always cheers.


I would like to know which is stronger filter_var or mysqli_real_escape_string.  To be more specific.  Option1:  //Course Title $ctitle = trim($_POST['courseTitle']); $clean_ctitle = filter_var($ctitle, FILTER_SANITIZE_STRING);   Option2:  //Course Title $ctitle = trim($_POST['courseTitle']); $clean_ctitle = mysqli_real_escape_string($con, $ctitle);   I also know about prepared statements but I want to filter the data coming in before hand. If there is an alternative, let me know.


Can a magus with a high BAB cast two spells or attack and cast, with their full attack action?

Suppose you are a level 10 Magus or something similar. (Something with a decent BAB progression and spellcasting abilities) When you hit +6/+1, can you cast a spell, then attack, vice-versa, or simply case two spells? Everywhere I look I can't get a clear answer.


Check if multiple directories exist with bash script

I have a file with a list of directories and I need to find out if they actually exist on the system. It's quite a large list so I'd like to figure out how to automate the check.  The file is formatted with each directory on a new line:  /usr/bin /usr/sbin /bin /sbin   Any suggestions? Thanks!


AppleScript: alias reference is not changing after renaming a folder

I'm new to AppleScript and after doing:  set folder_name to "New_Folder" tell application "Finder" to make new folder at desktop set my_folder to result as alias tell application "Finder" to set the name of my_folder to folder_name get my_folder   I get: alias "/Users/frank/Desktop/untitled folder"  I thought alias was dynamic, why my_folder reference is not changing after renaming the folder?  i.e. alias "/Users/frank/Desktop/New_Folder" How can I accomplish that?


How to install Firefox developer edition separately from Firefox stable in Ubuntu?

There are many instructions in Internet how to replace stable version of Firefox in Ubuntu to Firefox developer edition. But many users want to have both versions of Firefox at the same time.  Did anybody know ppa or other method to install Firefox Developer edition as separate deb package, named not "firefox", but something like "firefox-developer-edition" or "firefox-aurora", for keep current stable version of Firefox unchanged?   is examples how to replace current stable Firefox version by Developer edition, but I want to have both versions installed on system at the same time. So deb package for Firefox Developer Edition must have another name, different that "firefox".


What is this flat organism? It is around 1 cm long. I find them in places which aren't cleaned often. Location is India. Are they harmful or poisonous? Edit: I've found that this is a duplicate question of .


I wrote the code that pulls all the links on a web page. I check with Arraylist to prevent the same link from appearing. But I get stackoverflow error if there are too many links on the site. I keep links in Arraylist for later use. How do I avoid this stackoverflow error? Could the cause of the problem be arraylist?    static ArrayList<String> linkleriTut = new ArrayList();      public void linkleriCek(String url, String taramaTuru) throws IOException{    try {       Document doc = Jsoup.connect(url).get();       Elements linkler = doc.select("a[href]");       for (Element link : linkler) {          if (!linkleriTut.contains(link.attr("abs:href"))) {             linkleriTut.add(link.attr("abs:href"));          }       }    } } catch (Exception e) { } if (taramaTuru.equals("Detaylı Tarama")) {    while (k < linkleriTut.size()) {       k++;       linkleriCek(linkleriTut.get(k), taramaTuru);    } }


Can we separate out privileges from reputation?

My question revolves around the fact that reputation is an ambiguous term that doesn't allow for things like: infamous people with correct answers.  I understand that we want to keep things civil, however, we are also creating a huge disincentive to getting those people who know things to share things without sparing their "reputation".  This would allow for the posting of questions or answers that should be taken down by moderators anyway, without using reputation dings or downvotes on answers as a mechanism to prevent future ability to participate in comments and answers.  If I consistently answer questions that get novel viewpoints on stackoverflow, who cares that they're wrong?  The argument, as the Greeks used it, often proves more useful than the initially "wrong" viewpoint.  In any case, the downvotes will show people's opinion on anyone else's "truth", and the viewer decides which answer has more veracity.  Isn't that the point: surface as many potential answers, rank and stack them by upvotes, while rewarding EVERYONE that was involved, regardless of whether we agree with their answers?  If I answer 100 questions on python, and only one garners an upvote, but that ONE answer unlocked understanding that outweighs the other 99 misses, isn't this BETTER than what we have now?  As it stands, you are tying correctness to political correctness, which I don't care about when I want just the correct part of any answer.  If reputation is just a number, aren't we making a pre-optimization that weeds out avenues we initially think are wrong, but lead to rightness?  And, as a forum, don't we want argument by definition?  Stack exchange has become a place where ad hominem attacks of 'tone policing' are rampant, IMO, and this is BY DESIGN.  But stating this makes people discount the entire truth in my question, and THAT is the problem.  Look past my views, and look at my logic.    I desire a feature that separates out reputation from the privileges of participation.  I should be able to logically show that an answer is wrong, regardless of whether my "tone" is liked.  And that fact is being neglected in the entirety of this supposed "forum of forums".    To put yet another way: As my reputation is too low, I can't even make a feature request and instead have to use my superior logic to backdoor it through the form of a valid question.  This then begs the question: why do you lock feature-requests away from everyone, when everyone can just vote on the best ideas? Not just ideas from people you like?!?


Is every complex (smooth) manifold a scheme?

The question in the title doesn't quite make sense. I was always wondering if the scheme is the generalization of manifold. The precise statement should be like following:  If $X$ is a complex (smooth)manifold, is there a scheme $Y$ over $\mathbb{C}$ such that the corresponding analytic space $Y^{an}$ isomorphic to $X$?  I guess if $X$ is projective, then this is Chow's theorem. And I doubt the question has an affirmative answer if $X$ is non-compact (I guess that $X: y-e^x=0$ in $\mathbb{C}^2$ might be an example, but I do not know how to show this).  Edit 1:  There are also example (as @hunter pointed out) of a complex torus but not an abelian variety shows that a compact manifold might not be a variety, however, is it possible to be a scheme ?(according to Hartshorne, the category of varieties is a subcategory of quasi-projective, integral, separated scheme. But could there be some non-quasiprojective scheme($Y$ has to be integral, separated in our case according to GAGA, I guess) )?  Edit 2: Another question I think of is: is (Artin) Stack a generalization of manifold? I really want to know if manifold could be think of some subcategory of some category of with "algebraic objects".


What are the differences among Cave Story versions?

What are the critical differences between the various releases of Cave Story (PC, WiiWare, DSiWare, 3DS)? In particular, I already have a copy (of Cave Story+) on Steam from the Humble Indie Bundle 4, but the 3DS release sounds like the most intriguing—is the 3DS remake worth the $30 if I already own a version?


Linux permission denied when make log message into file

sudo date > output.txt bash: output.txt: Permission denied   I want to write log message into file, but the permission denied even I add prefix sudo, But when I tried after making output.txt file and changing permission to 755, It works well.   How can I write log meesage without making file and changing permission?   simply like sudo date > output.txt --chmod 755 ?


When I attempt to install packages through sudo apt-get install, no matter what I try to install, it returns a 111: Connection Refused error.  The web browser appears to work, but not sudo apt-get install. I attempted to install Ruby, PHP, and open-shift RHC tools, and I also attempted to use Synaptic to update/install packages, and I was unable to.  I get errors similar to the following, every time:  W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main          /liby/libyaml  > /libyaml-0-2_0.1.4-3ubuntu3.1_i386.deb Could not connect to 155.238.4.87:8080 (155.238.4.87). - connect (111: Connection refused)   I am using Ubuntu 14.04.1 LTS.  I connect to my adsl router via wireless, and am running an image that i got from my university running on vmware, using Windows 10. The university used a proxy but I edited it out in the M2 setting file and edited firefox to auto detect proxy to get my internet working  Please can someone help me figure out how to fix this?


"Show n more comments" does not disappear if not logged in

I've noticed that since a few days (weeks?), the "Show n more comments" link at the bottom of the comment chain does not disappear after clicking. The comments are correctly loaded, the link just doesn't disappear (and upon click, a new network request is initiated again).  This happens on every site in the Stack Exchange network when you're not logged in for the website.  To verify this bug, just open an incognito window and pick a post with lots of comments.


How to disk copy with unreadable sectors?

I want to clone a whole disk bytewise, something like  dd if=/dev/$SRC of=/dev/$DST bs=65536 count=$count   There are better tools for the job, which understand the file system (Windows) and work faster (I don't care), but they fail because of unreadable sectors on the old source disk.  There's actually a single invalid block I have to skip. So I thought about using dd multiple times like  dd if=/dev/$SRC of=/dev/$DST bs=65536 count=... dd if=/dev/zero of=/dev/$DST bs=65536 count=... skip=... seek=... dd if=/dev/$SRC of=/dev/$DST bs=65536 count=... skip=... seek=...   with replacing the broken sector data by zeros. Is this a valid approach? I found this  which confuses me.


FormValidator doesn't validate selects with options changed via ajax callback

I have a custom form with 2 select fields, first (Country Select) has an ajax callback which when is triggered the options from second (Country Currency) callback are changed. Options are replaced in select list but on  submit or selecting another country the validation is not passed.  The error I get is on line #362 in FormValidator.php     An illegal choice has been detected. Please contact the site administrator.     elseif (!isset($options[$elements['#value']])) {     $form_state->setError($elements, $this->t('An illegal choice has been detected. Please contact the site administrator.'));     $this->logger->error('Illegal choice %choice in %name element.', array('%choice' => $elements['#value'], '%name' => empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title']));   }   Current options were changed but select is still keeping the value from previous options and \Drupal\Core\Form performRequiredValidation() method throws above error.  Any ideas how to fix/avoid this are welcome.


ApplySymbologyFromLayer_management sets polygon outlines to default

I'm struggling with an issue which I think is a bug in arcpy.  I am using AddSymbologyFromLayer_management to apply the symbology from a reference layerfile (yes, an actual layerFILE, not a layer within the .mxd) to a newly created polygon shapefile which is displayed as a layer.  This works fine, even when I change what the field the symbology shall be based on. However, when I also change the class breaks (I use GRADUATED_COLORS here), the outlines, which are set to "No color" in the reference layerfile, are set back to default, which means some kind of grey with 0.4pt width.  This behaviour only occurs when I change the class breaks via code, if I keep them as they are, everything is fine.  This is what I basically do within the code:  # get reference layer ref_lyr_file = os.path.join(workspace, 'styles', 'graduated_colors_reference_style.lyr') # get newly created layer new_lyr = arcpy.mapping.ListLayers(mxd, lyr, mapDF)[0] # import symbology from reference layer-file arcpy.ApplySymbologyFromLayer_management(new_lyr, ref_lyr_file) # set value field new_lyr.symbology.valueField = draw_param_dict[draw_parameter] # reclassify values new_lyr.symbology.reclassify() breaks = new_lyr.symbology.classBreakValues # round values nicely as new class breaks lenMin = len(str(int(breaks[1]))) new_breaks = [int((round(b / (10 ** lenMin), 2)) * (10 ** lenMin)) for b in breaks] # update map document new_lyr.symbology.classBreakValues = new_breaks arcpy.RefreshTOC() arcpy.RefreshActiveView()   How I create the new breaks is not important, so you can skip this section. The thing is: the polygon outlines are set back to the default color ONLY AFTER applying new class break values.  Does anyone know how to get around this?


How to break a standard action on a visualforce page?

In my vf page, there is a save button that of standard vf command button. A JS confirm will popup when someone click this button. Now, if user has chosen cancel, I want to cancel the action of save. So how can I do it?


I bought this bike like an hour and a half ago for $60 and I cant find the exact model. I am not really a bike guy so I'd appreciate some help :)


Why is there an "electric" potential drop across the resistor?

An electric potential difference is created when two charges are separated. In a capacitor, there is a clear accumulation of opposite charges on the two separated plates, therefore work has to be done in moving an unit charge from one plate to another, against the electric field.   But, , a potential difference is created in a resistor due to the heat produced by the collision and increased lattice vibrations. So there is an energy loss across the resistor, yes, but how does this energy loss due to heat create an electric potential difference. In other words, do electrons accumulate on one or both sides of the resistor? If not, why should we do electric work in moving from one end of the resistor to another. If the difference in energy is not due to electric work, then that's not electric potential, is it?


C# unary operator precedence and unexpected result

I've just started with C#. I was reading about operator precedence and there was a part about precedence of unary operator. I've tried to imagine the situation where I can see such stuff. And for example:  int a = 5; a = -a++;   Example is stupid but still... "Unaries" are right-associative. I expected a result of -6 but it's -5. I understand that "++" returns first then increments. But WHAT it increments if not "a"? Why "a" is not affected?  Thanks =]


How to migrate SQL2014 to Azure SQL in short time (scripting)?

Context: The new application is ready to be used (Azure SQL). The old application is still used (MS SQL 2014). The switch from the old to the new is to be done during one night. The size of data is not extreme; however the old stored procedures have to be replaced by those that do not cause problems. Details of the situation: I need to transfer the data from the old SQL server to the new one quickly, in night time. It means to stop the old application, backup the fresh data from old SQL, restore the data on Azure SQL, install the new SQL functionality, launch the application. Migration during development of the new application: I have learned something about the SqlPackage.exe utility that is able to create new form of backup that can be restored at Azure SQL. However, one have to fix some SQL code in stored procedures to be allowed to create the new xxx.bacpac backup. To fix the above mentioned SQL code I did the old form of SQL backup, restored it to an auxiliary database on SQL 2014, fixed or removed the stored procedures and views (manually), and only then used the SqlPackage.exe for the cleaned database, copied the xxx.bacpac to Azure Windows Server, and restored the bacpac to Azure SQL server. That was acceptable during development; however, it is a lot of manual work for the migration, it could take more time than what is allowed, and (mainly) it could be error prone, and one cannot test the approach in advance. First approach to the scripted approach failed: The later idea was to use the SqlPackage.exe to export the bacpac only with named data tables. Reading the documentation, that should be possible. However, I did not find any way to exclude stored procedures, functions, and views. My batch files contains the lines like this: call "C:\Program Files\Microsoft SQL Server\150\DAC\bin\SqlPackage.exe"^   /Action:Export /SourceServerName:%source_server_name% /SourceDatabaseName:%source_database_name%^   /TargetFile:%target_file% /p:TableData=dbo.my_table1 /p:TableData=dbo.my_table2 ...   How the task should be done correctly? Is there any proven and recommended way how to do the migration of fresh data?


Can I play Blizzard games without my friends knowing I'm online?

Sometimes I want to play games without other people bugging me. In the Steam client it possible to appear offline to your friends while playing. Does the Blizzard game client offer this same functionality?  If not, is it possible to just hide the fact that I am in a game from my status?


Trying to match two date objects in JavaScript

I have following script   Script  $('#test1').click(function () {      // Here are the two dates to compare     var date1 = '29-10-2015';     var date2 = '29-12-2015';     var Targetvalue = parseFloat("1000000");     var dealjson = '[{"dealdate":"25-12-2015","cost":200000},{"dealdate":"25-11-2015","cost":200000}]';      // First we split the values to arrays date1[0] is the year, [1] the month and [2] the day     date1 = date1.split('-');     date2 = date2.split('-');      // Now we convert the array to a Date object, which has several helpful methods     date1 = new Date(date1[2], date1[1] - 1, date1[0]);     date2 = new Date(date2[2], date2[1] - 1, date2[0]);     var deals = JSON.parse(dealjson);     var achieved = 0;      while (date1 <= date2) {         var next_day = new Date(date1);         next_day.setDate(date1.getDate() + 1);         achieved = 0;         deals.forEach(function (deal) {             var dealDate = deal.dealdate;             dealDate = dealDate.split('-');             dealDate = new Date(dealDate[2], dealDate[1] - 1, dealDate[0]);              if (dealDate === date1) console.log("matched" + date);         });          date1 = next_day;     }  });   I am trying to log in the console if both the date in the loop matches the date from Json array dealjson  although I have two dates which falls in between the date1 and date 2 but still the match is not happening   if (dealDate === date1) console.log("matched" + date);   Here is the   Can any one help me out where is the mistake


We have a Ubuntu NAS sharing SMB and Netatalk with some Macs and I often use locate to find my files. Unfortunately since installing Netatalk it has written tons of .AppleDouble cache files to share with AFP faster (I assume) and my locate prints all of that information. I'm constantly using cp on files only to find I've copied a useless hidden file on accident.  I have been using locate -i filename | fgrep -v ".AppleDouble" | fgrep -v "._" to remove those hidden files, but I'd like to change my bashrc in such a way that this is more or less default.  What is the most effective way to exclude hidden files from what locate prints? With regex? Right now, I would write a script that passes an argument to locate and pipes to grep as shown, but if there's an easier way, please let me know.


"in Starbucks at the mall" OR "at Starbucks in the mall"

Which one is correct in terms of the combination of two locations.  You work in Starbucks at the mall You work at Starbucks in the mall You work in Starbucks in the mall You work at Starbucks at the mall  What is the rule behind the usage of at and in for this specific context?


Did both the Elder Wand AND Lily's protection protect Harry the second time?

In the Forbidden Forest, it was, as Dumbledore explained, Lily's protection -- which was in Harry AS WELL AS Voldemort -- that saved Harry from the Killing Curse. But was it also the fact that Voldemort used the Elder Wand -- whose true master was Harry at the time -- which led it to kill the only foreign thing in Harry; that is to say, the part of Voldemort's soul in Harry?


Confused as to why this:  sudo ps aux | grep -E '\/erts-[1-9]\d*(\.\d+)+\/bin\/beam'  Does not return a match for the beam.smp process of the form:   /opt/api_presence/erts-8.3/bin/beam.smp  All regex testers/validators confirm this returns the expected output given what was put in. At the very least you can test with /bin/beam.   In the comments, user muru has identified my issue.


If I have a split verb, such as "pick up" and I am a addressing a third person, I can say either:     I will pick Fred up at 11am.   Or:     I will pick up Fred at 11am.   For the second person, we have:     I will pick you up at 11am.   But it sounds wrong if I say:     I will pick up you at 11am.   What is my missing understanding here?    UPDATE:  My understanding from reading the  and the given answers, is that there is no strict rule about this at all, only a matter of style.  Thinking about it, I realised there is nothing wrong with the fourth example above, for example, if you wanted to give emphasis. Imagine saying the sentence and pointing your finger at the intended person:     I will pick up you at 11am.   It is no longer an awkward sentence, but becomes a highly emphatic one.


What is Uplay? Can I play Ubisoft games without it?

Heroes of Might and Magic VI seems to have installed a program called "Uplay", which it uses to launch (in addition to Steam, mind!)  What exactly is Uplay supposed to be? I notice that when I stop playing, it captchalogs the highlights of my past session (achievements earned, etc.) - which is kinda cool, but also kinda creepy and big-brotherish. Given that I value my privacy, is there anyway to play Uplay games without using Uplay?  Is this just Ubisoft's infamous "always-on" DRM?


Transit Visa for going out of Istanbul Airport travelling by Turkish Airlines

I'm a citizen of Bangladesh holding Bangladeshi Passport. I have a residence permit for both Finland and Sweden. I'll be traveling to Stockholm by Turkish Airlines which has a layover in Istanbul Airport. Do I need to take a visa to go outside of the airport for a short city tour?


Check if an element is visible on screen

I am using this plugin -  to check whether an element is visible on the viewport (to check if posts has been viewed or not).  But is it possible to have a callback of some sort so that instead of having a setTimeOut and checking the visibility of each and every post every time, fire a callback when the respective element is visible?   Or is there any other library I can use to do this?  I am talking about the visual viewport. (Not css visibility)


It was found on a roof in Jaipur, Rajasthan, North-Western India.


Is it possible to customize Windows 8.1 colors similarly to how it was since Win95 in the "Advanced Appearance Settings"?

For the first time since Windows 95, Windows 8/8.1 ceased to offer the "Advanced Appearance Settings", which enabled the following customizations:    That is a shame, not only because users lost customization power, but specifically because it made much more difficult for an user to set its own dark-theme version of the system.  Is there any way to change such colors in Windows 8.1? Notice that I am not talking about merely doing  and I also am not talking about patching the Windows to use customized 3rd party themes. I talking about a way for users to customize the colors of the windows in Windows 8.1 (trough registry, trough hidden options, trough a third party software that tries to recover such lost options, etc).  Thanks!


How to copy files into /usr/local/? (permission denied)

I'm still a little new to Ubuntu and was wondering how I can copy files, in this case Aptana Studio, to /usr/local/ without being denied.   Is there a way to do it in terminal? Or a way to allow myself permission?  I should add that I am using 10.10 Desktop edition, not server.


Smallest $m$ such that $C_n$ embeds into $S_m$

Let $C_n$ be the cyclic group of order $n$ and $S_m$ be the group of permutations of $m$ elements. It's not difficult to see that every $C_n$ embeds into $S_n$, but some groups also embed on smaller symmetric groups, e.g. $C_6$ also embeds into $S_5$. By Langrange's theorem, we also know that, if $p$ is prime, the smallest $m$ such that $C_p$ embeds into $S_m$ is $p$ itself. But what about the general case? Is there any way to determine, for each $n$, the smallest $m$ such that $C_n$ embeds into $S_m$?


Minimal system or minimal virtual machine on install?

I've been thinking a lot about this lately and haven't been able to find any good documentation online that explains this:  When installing Ubuntu Server, I can choose between Minimal system and Minimal virtual machine by hitting the F4 button at the install screen.  Why should I choose one over the other?


Bind click event for all children of dynamic div

Problem:  I'm interested to bind the click event of all children of a dynamically generated div.  Understandings:  Binding as of 1.7  $(staticAncestors).on(eventName, dynamicChild, function() {...  example: $('body').on('click','.myDiv', function() {...   Using * as selector binds to ALL ELEMENTS  $('.myDiv').on('click', '*', function() {...   Question:  How would I bind the * to a dynamically generated div?  've replicated my project in a .  NOTE: In Ahmad's jsfiddle (see the first answer), the child click events work WITH or WITHOUT the * included in the on click selector. In my jsfiddle, my example works fine (when the * isn) if you click the PARENT div, but clicking on CHILD elements (image and text title) does not. Now, add the * to my example, and nothing works...


This is the notion of a subcategory $\mathscr{D}$ of a given category $\mathscr{C}$ which I use: it consists of a subcollection of the collection of objects of $\mathscr{C}$ and a subcollection of the collection of morphisms of $\mathscr{D}$ such that:  1) if the morphism $f:x\longrightarrow y$ is in $\mathscr{D}$, then so are $x$ and $y$  2) if $f:x\longrightarrow y$ and $g:y\longrightarrow z$ are in $\mathscr{D}$, so is the composite $gf:x\longrightarrow z$  3) if $x$ is in $\mathscr{D}$, then so is the identity morphism $1_X$  Following this definition, the category of groups should be a subcategory of the category of sets. But I have just read on "Universal Algebra" (author Cohn) that: "...it [the category of groups] is not a subcategory [of sets] because distinct groups may have the same carrier."  So how can I decide if it is a subcategory or not?


What if I accidentally run command "chmod -R" on system directories (/, /etc, ...)

I accidently ran  sudo chmod 755 -R /   instead of  sudo chmod 755 -R ./   I stopped it after few seconds, but now there is some problems such as  sudo: must be setuid root   How can I revert permissions back?


Can I change from BIOS IDE mode to AHCI mode at any time?

Currently my Windows 7 computer is crashing during startup, after loading the AMD achix64s.sys driver, if I enable BIOS AHCI mode for the disks.  It boots fine with IDE mode.  Since I need my computer working, I am wondering if I can just use IDE mode for now, and later change to AHCI mode, when I figure out what is wrong.  Background: I was running RAID mode, which needed additional drivers to install/boot Windows.  But the MoBo RAID is flaky so I'm trying to switch to using a Windows mirrored volume instead - for that I expected to use AHCI mode.


Hello,    This question is about the Command Line Developer Tools that are usually installed with xcode-select --install and updated via a software update from the Mac App Store (at least until macOS 10.13). I use the developer toolchain on a daily basis and it has always worked and updated without issues.    Today I've updated my mac from High Sierra 10.13.6 to Mojave 10.14.1, and I've lost the ability to update the Developer Tools.    After the update I've executed a terminal command that relies on the developer tools being installed. It was a command to update , although I don't think that the specifics matter, as I believe that any task that tried to access the developer tools would have triggered the same error message.    The error was:   xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun       The phrasing was new (maybe), but I thought that it was caused by the usual need to re-install the Developer Tools after some macOS updates.    Later I tried to dig a bit deeper into the failure, and found out that:  $ ls -l /Library/Developer/CommandLineTools/usr/total 0drwxr-xr-x  3 root  admin  96  4 Nov 19:32 share$ which xcrun/usr/bin/xcrun$ xcode-select -p/Library/Developer/CommandLineTools    Still, as I normally do, I entered the command to install and update the Developer Tools in the terminal:  xcode-select --install    This started the usual procedure: modal window to confirm, then request to accept the license agreement, followed by a progress bar. Except that it failed very quickly with an unexpected error:     Can’t install the software because it is not currently available from the Software Update server.     I've tried several times, to no avail. It gets always stuck.    Sometimes, however, the failure causes the System Preferences to report a pending update:      If I open that preference panel it starts searching for updates, and it always finds nothing except the first time that it happened. The first time, it found this:          It literally suggested me to install the updates for macOS 10.11 and 10.13. I have no idea why.  I closed the preference without installing, and as I said it hasn't shown them again. There is also no update available in new Mac App Store.   Is this a known issue? Is there any way to resolve the problem?     Update  Of course I can download the Dev Tools for macOS 10.14 installer from .  Before installing them manually, though, I'm wondering if there is anything that's broken with the system.


I am just curious to know whether Physicists have given any measurable Entropy to the Universe? If yes then please tell me whether its value is increasing or decreasing overall?


Admin password of MariaDb doesn't seem to work

I've just installed MariaDb on a fresh Ubuntu Gnome and ran  afterwards where I set a decent admin password, removed the anonymous user etc.  Afterwards I realized some strange behavior regarding the admin password:   If I try to login from my normal user account using the command mysql -u root -p I always get an error: ERROR 1698 (28000): Access denied for user 'root'@'localhost' I'm pretty sure I entered the correct password which I set with  earlier... When I run the command from root using sudo mysql -u root -p, I always get access to the database, no matter which password I actually enter...   Is this normal behavior, am I doing anything wrong or have I somehow screwed up the installation?


I am trying to produce an nxn bmatrix that has both column and row headings. By following this  with amsmath package and the code below:   \begin{figure} \[\begin{bmatrix} a_{11}&a_{12}&\cdots &a_{1n} \\ a_{21}&a_{22}&\cdots &a_{2n} \\ \vdots & \vdots & \ddots & \vdots\\ a_{n1}&a_{n2}&\cdots &a_{nn} \end{bmatrix}\] \caption{Correlation Matrix}\label{fig:vulnmatrix} \end{figure}   I can  produce this:    However, I aim at producing a bmatrix with column and row headings like this:    So far I have researched and all the examples I have encountered do not have  headings. Can anyone suggest a solution for me?


How is the Abomination controlled without Hulk?

Maybe people reading the comic books can explain this better, but in the movie The Incredible Hulk (the one with Edward Norton), Abomination is the enemy of Hulk, and at the end Hulk defeats Abomination, but after that, they don't say anything about him, even in the Avengers.  After the fight between Hulk and the Abomination, Hulk escapes, and they don't say anything about controlling Abomination. So what happens with him?


Extending the question asked in  , we do instantiate an Interface while initialize it with implemented class.  My question is why in the first place, we are instantiate it with the Interface? Why can't I directly instantiate it with implemented class? For eg. :   Doc mydoc = new SimpleDoc();   Where Doc is interface and SimpleDoc is implementing it. What is the problem with      SimpleDoc mydoc = new SimpleDoc(); Where this will fail?


Replace multiple instance of word between identifier in javascript

I'm trying to replace every word between %% with a single word. Till now I tried this:  var string = "You chose %story% at %price%";  var rep = string.replace(/\%(.*)\%/g, "test");  console.log(rep);   but the result of rep is actually  "You chose test"   while I want  "You chose test at test"   How can I achieve this? I though about implementing a recursive function but it sound pretty slow especially with multiple words


How to override parent functions in child themes?

I've been reading around and trying to figure out how to do this, but for some reason I can't seem to override parent functions in my child theme.  I'm using TwentyTen as a parent - can anyone tell me why this function in my child theme isn't overriding the parent function please?  // Override read more link function osu_twentyten_continue_reading_link() {  return ' ' . __( 'Read on &rarr;', 'twentyten-child' ) . ''; } function osu_twentyten_auto_excerpt_more( $more ) {  return ' &hellip;' . osu_twentyten_continue_reading_link(); } remove_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' ); add_filter( 'excerpt_more', 'osu_twentyten_auto_excerpt_more' );   I thought you had to remove the filter/action etc. before re-adding it right?  Thanks,  osu


How to add programs and files within the linux ISO:

So I'm installing a version of Linux Mint. I would like to edit the programs and files that are included in the ISO, because there is not always internet access. For example,  a very specific wallpaper, as well as Mine-craft, and Java (there's more, but this is where I'm leaving this). If this is impossible, how would I make a similar changes with a Distro builder?


for detects the spaces in the file as multiple lines

I am now developing a script to copy some files from directory A to multiple directories B following some directives , the script is working fine , but when it comes to files with spaces on them , he just considers them as multiple files , for example:  my_super_cool_file_2007039904_11 (3rd copy).pdf   when the file is in this loop:  for i in $(find $parent -mindepth 1 -maxdepth 1 -type f|cut -c 11-);do echo "this is the file: $i"  done   it is considered as multiple files :    this is the file: my_super_cool_file_2007039904_11   this is the file: (3rd    this is the file: copy).pdf   i've tried replacing the space with \space using sed 's/ /\\ /g'  but it does not seem to solve my problem, for the loop it's 3 different files, i had also the same problem using ls, and i need to stick to use find


CPU completely occupied by strange programs with person names

Anyone knows why this happens and how to resolve it? they show up out of nowhere and stay until I kill each manually. some of these names change to something new too. I thought this might be because I left the root access open so I closed it later..


How to stop my machine asking for multiple passwords when I log in?

Ever since I changed my user account password, every time I log in to my machine I have to enter multiple passwords. First, I enter the new account password to actually log in. Once I'm at my desktop I get prompted to enter a few other passwords too. Namely the following:      My old password is required to successfully dismiss all of the above pop-ups. Is there some way of updating anything in my keychain that still uses the old password, to use the new password?  Any ideas what could have caused this? I can only imagine that the intended behaviour is for this update to happen automatically.


Is schengen visa required for two layovers in Germany

I am flying from Charlotte, NC to Bangalore, India via Lufthansa and have two connecting flights. I fly from Charlotte to Munich, Munich to Frankfurt and Frankfurt to Bangalore. The layover time in Munich is 40 minutes. I arrive and depart Munich at Terminal 2.   Do I need a transit visa to go from Munich and Frankfurt? I have an Indian passport and a United States Visa? and if not, would 40 minutes be sufficient?


When I run sudo gedit /path/to/some/random/file I get the following error    ** (gedit:6262): WARNING **: Command line `dbus-launch --autolaunch=7f8731869e1c690b8205727e0000000a --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed. Cannot open display:  Run 'gedit --help' to see a full list of available command line options.     Using gksudo doesn't help either which returns    Cannot open display:  Run 'gedit --help' to see a full list of available command line options.     Any help guys. I need to have this capability to open files in Gedit as root. I found this question with the same error but no solution     EDIT I found this post in . These are the instructions:     echo $DISPLAY # you'll be needing this value 3 lines below sudo -i # or "su -" on older Slackwares xauth merge ~alien/.Xauthority # use your own username here instead of "alien" export DISPLAY=:0.0 # use the value of DISPLAY you've seen 3 lines before     On coming to command #3, I got this error xauth:  file /root/.Xauthority does not exist    Maybe this new info can shed more light.


Crystals, Oscillators, and Resonators. What the difference?

I am trying to figure out the difference between crystals, oscillators, and resonators.  I'm starting to grasp it but I still have some questions.  From my understanding, an oscillator is built from a crystal and two capacitors.  What is a resonator then?  Is it a difference in terminology?  If an oscillator and a resonator are similar, why do these two items:      have two pins out and no ground.  Whereas this one     has three pins one of which is a ground?  Will any of these three devices work as an external clock for a microcontroller?  PS:  Bonus points for an explanation of how the capacitors help the crystal work properly. :)


Given $a,b \geq 0$ and $2 \leq p <  \infty$ prove that $(a^p + b^p)^{1/p} \leq (a^2 + b^2)^{1/2}$. I tried using the convex function $f(x) = x^p$ and then prove $a^p + b^p \leq (a^2 + b^2)^{p/2}$ but can't seem to make any real progress. Can someone help me?


How to drag a window from any point (maybe with shortcut)

Is there any setting or application that would let me drag a window without having to go to the window title bar?  Maybe some application may let me drag a window by holding FN (or other combination) and then dragging the window from any point.  Thanks!


How to change files creation time? (touch changes only modified time)

How to change files CREATION time? I tried to use 'touch' command but it changes only the last modified time - it does not change the first date - creation date. (After checking by 'stat' it still shows me the original file creation date)  Is there any option to do this?  thanks in advance


How to show that greatest common factor of $(m+n$ and $ m-n)\in\mathbb{N}$ is equal to $1$ or $2$?

We have $m,n \in \mathbb{N}$ and $gcd(m,n) = 1.$   How to prove that $gcd(m+n,m-n) = 1$ or $2$?


Does an interface in PHP actually do anything?

I have been struggling to understand what an interface actually does.  Following is a very clear example that should be clear to other beginners.  Could somone confirm (or not) that the interface does nothing?  It acts like an elaborate comment?  Moreover, if you used the same interface in two classes, you would have to define the functions and this might be un-DRY?  Or have I missed something?  <?php interface fax{    public function dial();    public function send();    public function recieve(); }  interface printer{    public function printBlack();    public function printColor();    public function printDraft();    public function kick(); }  class printerFax implements fax, printer{    public function dial(){ }    public function send(){ }    public function recieve(){ }    public function printBlack(){ }    public function printColor(){ }    public function printDraft(){ }    public function kick(){ }  }   $object = new printerFax;  ?>   Further thoughts, to be more specific: what does the interface actually do? I asked if it is a comment - many people imply that it is. I asked if it wasn't DRY.  I have since found this example.   .  I might add it is the only example I have found in hours of searching.  Thanks for your ready responses. If a beginner arrives here, please go to question 383947. The example is not in PHP but it shows the functionality. If anyone knows an example in PHP, I would be grateful.   This still seems undry though.  Functions get repeated where they wouldn't in procedural programming.


Finding online RPG players for a play-by-chat RPG Campaign?

I'm thinking of running a Pathfinder campaign for Skype (text only) and I don't have a group of players. How can I go about recruiting people for play-by-chat games instead of in-person? Are there any online sites in which you can look for people that are looking to play in an online play-by-chat RPG Campaign?


Is it true that $|\mathbb{R}|=2^\omega=\omega_1$?  Note that $\omega_1$ is the successor of $\omega$ and $2^\omega$ is |all functions from $\omega$ to 2|.


If Light is in part a Moving Magnetic Field. Why Doesn't it Generate Voltage When it Passes a Conductor?

The relative motion between a conductor and a magnetic field produces voltage. If light is, in part, a series of moving magnetic fields then one would expect to see voltage generated when, let's say, a ray of sunlight passes through a coil of copper wire. Why don't we see this?  Down Vote Risky Speculation: Could it be that light really isn't moving? That it is just disturbances in a field that is already present?


How to get a nameserver IP from Linux CLI?

When I connect to a wireless network from my laptop, Network Manager somehow requests a DNS nameserver IP from the router and writes it to /etc/resolv.conf.  How can I request a nameserver address from cli without changing /etc/resolv.conf, if I only know address of the gateway?


this is my code when i implement get item count 1 it shows non static method cannot be reference when i implement count 2 it show null pointer exception on return statement helpme to fix this      final int speedScroll = 1000;     final Handler handler = new Handler();     final Runnable runnable = new Runnable() {         int count = 0;         @Override         public void run() {             if(count == Adapter4.getItemCount2())                 count =0;             if(count < Adapter4.getItemCount2()){                 recyclerView4.smoothScrollToPosition(++count);                 handler.postDelayed(this,speedScroll);             }         }     };     handler.postDelayed(runnable,speedScroll); }   @Override public int getItemCount() {     return albumList.size(); } public static int getItemCount2() {      List<Album4> albumList=null;         return albumList.size(); }


I was cleaning out my spice cabinet and deep in the back I found two packages (e.g., six envelopes) of active dry Red Star yeast that expired in March 2009, 15 months ago as of writing this question.  With the thought that dry yeast is basically freeze-dried and should have a decent shelf life, I proofed one envelope in warm water with some sugar to see if it really "expires". It foamed right up, so it seems like the answer is, at least for one year after the marked date, no.  Although in this case, does "expired" really mean "less effective" or "will taste funny"?


I'm having a problem with the relative offset the array modifier creates for the added objects.    When I add the modifier, the relative offset is set to 1.0 in one direction and 0.0 in the other two. To me, this means that the object is being duplicated in only one direction. However, the new object appears to the upper right of the original, as if it had been moved by equal amounts in x- and y-direction. There is no displacement in z-direction.    When I enter a value into the upper box of the relative offset (x I assume?) and enter the same but negative value in the second box (y?), the object appears moved in x-direction only.   In another blender file I received from a friend the Array modifier on a very similar object behaves normally, moving the copies in only one direction.  Does anybody have an idea how to fix this problem?


Passing DOM elements to WebWorkers gets tricky since all references to the DOM are 'lost'. I need to check objects that are passed before the WebWorker's message is sent.  What is the fastest way to check if an instance of an object is a DOM-element OR/AND part of the DOM tree, OR has 'children' that contain any references to the DOM tree?  piece of the usage:  var a = new SharedWorker("bigdatahandler.js");    a.postMessage(s);  s //<--should not be a DOM object


I'm using 10.7.4, and I use multiple desktops (in Spaces). When I switch between desktops, the dock does not change.   I open an application in Desktop 1 and its icon remains in the dock after I switch to Desktop 2.  What I want is I open an application in Desktop 1, its icon remains in Desktop 1's dock, When I switch to Desktop 2, Desktop 2's dock only has application icons that I open in Desktop 2.  Is it possible to do that; to have different desktops with different docks?


Proof that ratio of normal distributions is Cauchy

I recall that the ratio of 2 independent standard normal random variables follows a Cauchy distribution, but I don't recall if there is a proof for this.


Why is Windows' default IP address 169.xx.xx.xx?

My Windows system got an 169.xx.xx.xx IP address the other day, and I fixed the issue, but why did Microsoft chose this address as the default?    Why not 1.xx.xx.xx or 255.xx.xx.xx? Did one guy at Microsoft say      Hey, pick a number 1 to 255....who just said 169?! OK, we're going with that for our Windows default IP address.


How to put on and off comments while publishing latex documents into PDF

I created a file using TeXstudio, I have lots of comments in the document. I want publish the document one version with the comments and the other without it. Is three a way to put on and off comments when publishing a PDF file in LaTEX? Will be of great help if some one can help me on this.   P.S I am not sure where to tag since I am a new user of latex and also this forum


"This question has been asked at Stack Overflow" vs. "on Stack Overflow"

How should I phrase it:     This question has been asked at Stack Overflow.   Or,     This question has been asked on Stack Overflow.


Community changes valid links to invalid

Community edited  and changed valid links to invalid, and left strange comment.  Is there any reason for it?


Is my Windows 10 OS gone after I installed Ubuntu?

I installed Ubuntu from a USB flash drive using .  I chose the option to keep my Windows 10 OS as well (not pictured in the tutorial).  Now I can't seem to find out how to return to Windows 10. Did I delete my OS?


How to populate two separate lists using two separate list comprehensions?

I'm writing code to populate two columns from a CSV file (row[0] and row[1]) using a list comprehension (transaction_list and revenue_list, respectively) in Python 3.6.3.    If I run the code below, I can get the script to populate revenue_list properly, but transaction_list will return an empty list.   import os, csv csvpath = os.path.join('budget_data_1.csv')  with open(csvpath) as f:    readcsv = csv.reader(f, delimiter=',')     next(readcsv)     revenue_list = [int(row[1]) for row in readcsv]    print(revenue_list)     transaction_list = [row[0] for row in readcsv]    print(transaction_list)   On the other hand, if I run the code below (which comments out revenue_list = [int(row[1]) for row in readcsv]), I can get transaction_list to return the correct list.  import os, csv csvpath = os.path.join('budget_data_1.csv')  with open(csvpath) as f:    readcsv = csv.reader(f, delimiter=',')     next(readcsv)     #revenue_list = [int(row[1]) for row in readcsv]    #print(revenue_list)     transaction_list = [row[0] for row in readcsv]    print(transaction_list)   Question:  Why does the script return transaction_list as an empty list when I attempt to populate transaction_list and revenue_list as written?


How do you prove that $ n^5$ is congruent to $ n$ mod 10?

How do you prove that $n^5 \equiv n\pmod {10}$ Hint given was- Fermat little theorem. Kindly help me out. This is applicable to all positive integers $n$


i have heard that it should does/does not for he/she/it and do/don't for i/you/we/they  But I am confused when i always get to hear people talking do and don't for he/she  Even in a lecture i listened now it was said as, "That lady don't" instead of "that lady does not"  Which one is correct?


How to compile programs on Linux systems when I don't have sudo privileges to install the dev dependencies

How should I go about compiling programs that depend on libraries whose development packages (headers and such) aren't pre-installed on the system when I don't have sudo access?  In this particular case I have Ubuntu 12.04, but I'm hoping for a more general solution, because it seems bizarre to me that I would need administrator privileges just to install the dev packages so I can compile.


Can I travel from Rome to Amsterdam with a Schengen visa?

I am a South African citizen and have a multiple entry visa obtained from the Italian Embassy. I am currently in Rome, can I travel from here to Amsterdam with my Schengen visa or do I need extra papers/documents/applications?


Download part of a playlist from YouTube using youtube-dl

How can I use youtube-dl to download a given playlist from YouTube but starting with a given video? For example I want to download a YouTube playlist by starting from the 5th video and not the first one.  Any help would be appreciated.


Unity: How do I revert Alt-tab behavior to switch between windows on the current workspace?

Enabling Bias alt-tab sorting to prefer windows on the current viewport as described  made no difference. How can I get back the exact same behavior as 11.04, so that alt-tab only switches between windows on the current workspace?  Simply disabling the alt-tab and shift-alt-tab keybindings on the unity switcher seems to have helped, but it still switches workspaces on me sometimes.  For example, if I give a terminal window focus then press alt-tab, it switches to another terminal window on any workspace before trying to switch on the same workspace. Also, the Unity switcher still shows up when I alt-tab then hold alt even though I removed its alt-tab keybinding.


in Ubuntu 14.04.3 UCK tool,I can't install wine 1.6 or wine1.7

I can install wine1.7 successfully by following commond,but  can't install in uck tool  Why is this happening and how can I fix it?  $ sudo add-apt-repository ppa:ubuntu-wine/ppa $ sudo apt-get update $ sudo apt-get install wine1.7 winetricks # apt-get install wine1.7 winetricks Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  wine1.7 : Depends: wine1.7-i386 (= 1:1.7.44-0ubuntu1) but it is not installable            Recommends: gnome-exe-thumbnailer but it is not going to be installed or                        kde-runtime but it is not going to be installed            Recommends: ttf-mscorefonts-installer but it is not going to be installed            Recommends: fonts-horai-umefont but it is not going to be installed            Recommends: fonts-unfonts-core but it is not going to be installed            Recommends: ttf-wqy-microhei E: Unable to correct problems, you have held broken packages.


What's behind the Banach-Tarski paradox?

The discovery of  was of course a great thing in mathematics but raises the issue of the relation between mathematics and reality. Empirically there are good reasons for faith in mathematical proofs: well derived mathematical theories and formulas, used in an accurate manner in science, really bring observable results. I don't know any scientific failures where mathematical results was blamed.  Naturally constructive proofs are preferable but there shouldn't be any problem with : the mathematical-logical machinery should guaranty the expected success. With or without the use of the law of the excluded middle!  So how to explain the non-intuitive theorem of Banach-Tarski? Which are the "weak pillars" or combinations of them? Personally I can't see the axiom of choice as a problem, since it only is a condition of what's to be called a set. Is the theorem perhaps a sign of lack of continuity in reality?     I really would like a big list of suggestions what "axioms" could be   changed to avoid the "possibility" of the the theorem.     I have been re-considering. Suppose that a new discrete theory about space and time was developed and was found to be consistent with observations. How long would it take before a corresponding theory was developed from a pure geometrical perspective? Compare with the corresponding theories of Heisenberg and Schrödinger!  What was explained in one way in the discrete theory maybe was described in a totally differnt way in the continuous theory? And who knows, maybe similar constructions as in the paradoxes of Banach-Tarski and Sierpinski-Mazurkiewicz, would be used to explain the expansion of what is now called dark energy? And even "worse", to explain the result of high energy proton- proton collisions?  It strikes me that the relative terms of consistency as is used in mathematics is all what is needed for the mathematical material to be used in scientific theories. Physicists do sometimes use mathematics in extraordinary ways and get good results.  But that does not make it less interesting to ponder the pillars of the "paradoxes".  Also, thanks for reopen and for great answers!


Can't get Codeigniter URLs working on Nginx

After successfully setting up nginx on my windows, another problem where I am stuck. Though, everything works as usual. I am able to access pages and PHP works fine but problem comes when I try to use Codeigniter type urls, by which, I mean,  https://localhost/index.php/<controller>   Even if I insert one slash after "index.php" an error No input file specified is thrown which I think means the FastCGI server is not able to catch the right file. Here is my config file,  server {     server_name localhost;     listen 443;      root /wamp/www/;      ssl on;     ssl_certificate /wamp/www/server.crt;     ssl_certificate_key /wamp/www/server.key;      location / {                 index index.php index.html index.htm;     }      location /NavHawk2 {         try_files $uri $uri/ index.php/;     }      # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000     #     location ~ \.php$ {             fastcgi_intercept_errors on;             fastcgi_pass   127.0.0.1:9000;             fastcgi_index  index.php;             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;             include        fastcgi_params;     } }   Nothing in error logs and access logs are filled with 404 requests. If I remove the try_files line, I get a nginx 404 page.


Showing that $a^n - 1 \mid a^m - 1 \iff n \mid m$

Let $a\ge 2$ be an integer. Show that for positive integers $m,n$, we have $a^n - 1$ divides $a^m - 1$ if and only if $n$ divides $m$.   I am having trouble showing this. I've seen a similar problem on here but it only shows one direction for the proof. I would like to see both directions.  This is what I have so far: Let $m = nq + r$, then $a^m - 1 = a^{nq + r}- 1 = a^{nq}a^r - 1 = a^{nq}a^r - a^r + a^r - 1 = a^r(a^{nq} - 1) + a^r - 1$. Since $0\le r\lt n$, $r = 0$ then $a^m - 1$ = $a^{nq} - 1$ so $a^m$ = $a^{nq}$ . Thus $m = nq$ hence $n\mid m$.


How does 'give it up for ...' mean 'clap for ...'?

Well, now I understand that this is so, but the first few times I heard this, I had no idea what 'giving it up' meant.  What is the derivation? How do you get from 'giving it up' to 'clapping'?


Number of possible combinations of x numbers that sum to y

I want to find out the number of possible combinations of $x$ numbers that sum to $y$. For example, I want to calculate all combination of 5 numbers, which their sum equals to 10.  An asymptotic approixmation is also useful. This question seems to be very close to number partitioning, with the difference that a number can be 0. See:    All possible partitions for sum 10 and 3 positions that can be zero, are 63 possiblities: (numbers shown as 3 digits)  019 028 037 046 055 064 073 082 091 109 118 127 136 145 154 163 172 181 190 208 217 226 235 244 253 262 271 280 307 316 325 334 343 352 361 370 406 415 424 433 442 451 460 505 514 523 532 541 550 604 613 622 631 640 703 712 721 730 802 811 820 901 910


Lightning:recordForm 's onSuccess doesn't return record ID

I am using the lightning:recordForm for creating the record   <lightning:recordForm aura:id="recordViewForm"                               objectApiName="{!v.sObjectName}"                               columns="2"                               recordId="{!v.recordId}"                               layoutType ="Full"                               mode="edit"                               onsuccess="{!c.onSuccess}"                               onsubmit="{!c.onSubmit}"                               onload="{!c.onLoad}"                               onerror="{!c.onError}"/>    onSuccess : function(component, event, helper) {     console.log('event response==='+ (event.getParams("response")).Id);    // this log statement returns --> event response===undefined  }


If I have a 5 hour layover in Frankfurt, how much time do I have to explore the city? (Quick)

I need help on how many attractions I can cover with a layover at Frankfurt for 5 hours. It is a connecting flight from Delhi to Frankfurt, then Frankfurt to Philadelphia. The flight is happening on 8/17/19 or 17/8/19 which is very soon.  Please help quickly.   If I have a 5 hour layover in Frankfurt, how much time do I have to explore the city?


What is the limit to a Glyph of Warding's trigger?

So, say you are a wizard 15/warlock 2. You have the Lance of Lethargy invocation, which pushes an enemy you target with eldritch blast and hit back 10 feet. Say you put a demiplane entrance ~5 feet behind the enemy you target with it. When you hit, you throw the enemy in. Before all this, you had put a Glyph of Warding in there on one of the surfaces. What would be the limit to the trigger for this? Would it be forced to be touch or proximity, or could you base it off something like hostility towards the caster?      ... When you cast this spell, you inscribe a glyph that later unleashes a magical effect ... You decide what triggers the glyph when you cast the spell. For glyphs inscribed on a surface, the most typical triggers include touching or standing on the glyph, ... (PHB 245)   The key word here is "typical". Based on Google's definition, the informal definition of "typical" is     showing the characteristics expected of or popularly associated with a particular person, situation, or thing.   This means, if my assumption is true, that the triggers in the PHB are only the most common ones. Other than the one about being forcibly at maximum 10 feet in diameter in the PHB, I cannot see a limit. Though I probably should assume this would all be DM discretion, (and I know that I sound like a broken record here) but could the trigger be hostility toward the caster, or something else, like being a specific race, gender, from a specific place, etc., or would it be forced to being something from the PHB?


"Items collection must be empty before using ItemsSource."

I'm trying to get images to display in a WPF ListView styled like a WrapPanel as described in this old ATC Avalon Team article: .    When I try to populate the ListView with a LINQ-to-Entities queried collection of ADO.NET Entity Framework objects I get the following exception:  Exception     Items collection must be empty before   using ItemsSource.   My code…  Visual Basic  Private Sub Window1_Loaded(...) Handles MyBase.Loaded     ListViewImages.ItemsSource = From g In db.Graphic _                                  Order By g.DateAdded Ascending _                                  Select g End Sub   XAML  <ListView Name="ListViewImages"           SelectionMode="Single"           ItemsSource="{Binding}">     <local:ImageView /> </ListView>   I put a breakpoint on that line.  ListViewImages.ItemsSource is Nothing just before the LINQ assignment.


SQL Alchemy ORM and the meaning of asterisk(*)

I'm trying to find out what exactly the asterisk(*) means on the SQLAlchemy query below. Could anyone clarify please?  import uuid from sqlalchemy import Column from sqlalchemy import Integer from sqlalchemy import or_ from sqlalchemy_utils.types.uuid import UUIDType  class House(Base):     id = Column(Integer, primary_key=True)     street = Column(UUIDType, default=uuid.uuid4, nullable=False, unique=True)     zip_code = Column(UUIDType, index=True)  # Shell session $: [...] query = request.dbsession.query(House) query = query.filter(or_(*[(getattr(Building, k) == getattr(self, k))                           for k in ('street', 'zip_code')                           if getattr(self, k) is not None]))


How to Print Preview when using a DocumentPaginator to print?

I'm using a class I've derived from DocumentPaginator (see below) to print simple (text only) reports from a WPF application. I've got it so that everything prints correctly, But how do I get it to do a print preview before printing? I have a feeling I need to use a DocumentViewer but I can't figure out how.  Here's my Paginator Class:  public class RowPaginator : DocumentPaginator {     private int rows;     private Size pageSize;     private int rowsPerPage;      public RowPaginator(int rows)     {         this.rows = rows;     }      public override DocumentPage GetPage(int pageNumber)     {         int currentRow = rowsPerPage * pageNumber;         int rowsToPrint = Math.Min(rowsPerPage, rows - (rowsPerPage * pageNumber - 1));         var page = new PageElementRenderer(pageNumber + 1, PageCount, currentRow, rowsToPrint)                        {                            Width = PageSize.Width,                            Height = PageSize.Height                        };         page.Measure(PageSize);         page.Arrange(new Rect(new Point(0, 0), PageSize));         return new DocumentPage(page);     }      public override bool IsPageCountValid { get { return true; } }      public override int PageCount { get { return (int)Math.Ceiling(this.rows / (double)this.rowsPerPage); } }      public override Size PageSize     {         get { return this.pageSize; }         set         {             this.pageSize = value;             this.rowsPerPage = PageElementRenderer.RowsPerPage(this.pageSize.Height);             if (rowsPerPage <= 0)                 throw new InvalidOperationException("Page can't fit any rows!");         }     }      public override IDocumentPaginatorSource Source { get { return null; } } }   The PageElementRenderer is just a simple UserControl that displays the data (at the moment just a list of rows).  Here's how I use my Row Paginator  PrintDialog dialog = new PrintDialog(); if (dialog.ShowDialog() == true) {     var paginator = new RowPaginator(rowsToPrint) { PageSize = new Size(dialog.PrintableAreaWidth, dialog.PrintableAreaHeight) };      dialog.PrintDocument(paginator, "Rows Document"); }   Sorry for the code dump, but I didn't want to miss something relevant.


Start using something by October 26th, is that "by" "no later than" or from?

In the sentence "Start using something by October 26th", is the word "by" understood as "no later than" or from that date?  Thanks


How to change default drag and drop behavior on OS X?

When you drag and drop a file in Mac's Finder, it moves the file by default. To copy the file(s) you must hold down the opt-key while you perform the action.  I found myself in a situation where I have to copy a lot of files, and it doesn't feel very "superuser" having to hold the opt-key down for the whole time. Hence, my question is if I can change the default drag and drop behavior to copy instead of move?


How do I close my account on Stack Overflow?

I accidentally allowed this website to share info from my Yahoo! account. I don't feel safe doing this. How do I delete this Stack Overflow account? I can't see an option to close/delete an account from the options.


Is the op-amp inverting or non-inverting?

I am studying the function and characteristic of an op-amp to build a line-following robot with the schematics below. However, in many tutorials, the way to differentiate an inverting and non-inverting op-amp is by looking at the connection to ground via the inverting or non-inverting terminal.  However, in the schematics, the op-amp is considered to have connections to ground, thus in this case, how do I differentiate it then?  I may have understood the whole concept wrongly. Pls help!    EDIT: Please ignore the switch as it may have been drawn wrongly by the supplier.


Left side menus/controls not showing in new top bar

On my Linux box at home, using Firefox, the top bar works great, and I'm loving it. On my Windows box at work, using Firefox, it worked well up until a few days ago, at which point it still works, but has some display problems. This is what it looks like:    Oddly enough, I can still expand the menus:            I cleared my browser cache, but that did not fix it. I am going to take my work laptop home to see whether it is some sort of work firewall issue, and will report back.  Update   I have the problem even when I am not connected to my work VPN. The bar looks fine in Chrome on the same computer. I can reach SStatic content delivery network test image in the errant browser.


Laptop using 14.04 won't get past login GUI

My laptop was working perfectly yesterday, and now today I can't log in.  At first, I was only getting a black screen. However, after following instructions in some questions here on AskUbuntu, I first reinstalled lightdm, and then I had to change the ownership of the file ~/.Xauthority to be my user name. Now, I get the log in GUI screen.  However, once I enter my username, it flickers and then comes back to the login GUI. It does not matter if I use Gnome, Unity, or Gnome-Flashback.  I don't know why lightdm needed to be reconfigured, or how ~/.Xauthority got changed, but in any case, what is still standing in my way, preventing me from logging in?  Update: I have tried deleting the .Xauthority file, and the .profile files in my home directory. It has not changed anything.  Logging in as guest also fails to work.  The following commands did not work:  mv ~/.config ~/.config.BAK mv ~/.cache ~/.cache.BAK   Inside .xsession-errors in my home directory, it says:  Gdk-CRITICAL: gdk_x11_display_get_xdisplay: assertion 'GDK_IS_DISPLAY (display)' failed


How do I leave mail at the registrar while serving the web from host?

Client's domain is registered with GoDaddy where they have a mail-only plan at the moment. Now web hosting has been set up elsewhere and we need to point web service to the new host while retaining mail at GoDaddy. (For reasons not important here, this is not negotiable.) What needs to be edited to carry this out correctly?


compare generic T to new T() always false

I have a generic function(object, object),  one of parameters can be new() when I try to compare object to new() it is always false.  public static void TestFunction<T>(object requestData, object storedData) where T : class, new() {     if (requestData != null && storedData != null)         if (requestData?.GetType().Name != storedData?.GetType().Name)         { throw new Exception("object types are not match"); return; }     if (requestData == null) throw new Exception("request can not be null");      ```     //storedData might be new T()     // but even i am creating new objects to compare inside function - no luck     ```      object o = (T)Activator.CreateInstance(typeof(T));     object o1 = (T)Activator.CreateInstance(typeof(T));     object o2 = new T();      T test = new T();      ```//all return false     o.Equals(o1).Dump();     test.Equals(new T()).Dump();     o2.Equals(o).Dump();  }   I expect the comparison to be true.


How to get the the dot symbol in Chemistry?


Why words with accented characters can't be automatic hyphenated with the default OT1 enconding?

I was reading the first  to this question:      [...] the default font encoding (OT1) of TeX   is 7-bit and uses fonts that have 128   glyphs, and so do not include the   accented characters as individual   glyphs. So a letter ö is made by   adding an accent to the existing 'o'   glyph. This means, among other things,   that words containing accented   characters cannot be automatically   hyphenated.   I can't see what is the relationship between the fact that a character like 'ö' has to be made from two different glyphs (the 'o' glyph and the accent glyph), and automatic hyphenation.


What happens when a creature enchanted with Soul Link would deal lethal damage to a player?

Player A has 3 life left. Player B attacks with a  that has been enchanted by Player A's . Does player B win, or does nothing happen?  On the one hand, "whenever" makes it sound like the trigger (dealing damage) and the effect (healing damage) happen simultaneously.  On the other hand, combat damage doesn't go on the stack, while most other things do. So, possibly the combat damage is dealt, state-based actions are checked, and now it's too late for the Soul Link effect to heal player A.  If anyone knows which way is correct, my thanks!


In Back to the Future, we see Doc and Marty repeatedly returning to 1955. But they weren't the only ones. Biff meets his younger self, and a DeLorean waits hidden in a cave.  So am I correct in counting four DeLoreans at most?   The one from 1985, driven by Marty. Thid is the one we see in the first film. It goes back to 1985. The one from 2015, driven by Biff. It goes back to 2015. The one from the alternate 1985, driven by Doc and Marty. It disappears to 1885 with Doc. The one from 1885, mothballed by Doc, is waiting hidden in a cave. Marty drives it back to 1885, then back to 1985.


I currently have my laptop running on windows 7. I plan on adding XP and keeping permanently disconnected from the internet to run some old games/programs (My pc doesn't have much ram so vm's are not good). I found a guide on dual booting but when I boot from the XP CD I immediately get a BSOD I am able to get into win 7 easily but not into the installer. I also wish to add ubuntu any advice would be appreciated.


get amount of properties defined in state object react native

I have an data object in a state, like so:  this.state = {         data: {             newsData: [],             eventData: [],         },     }   How can I get the number of properties defined in the state data? data.length doesn't work since it's not an array.


Making data points different sizes based on data using QGIS?

I am trying to plot sales data on a map using QGIS. I will add the disclaimer that I am a rookie at using the program. I added the different sales types by adding delimited text layers (utf16). The data included Longitude, Latitude, and Amount. I want to make the dots on the map scale with the value of the sale. Ive had no luck with trying to use Simple Marker->Data defined properties-> size and writing case functions. Some data points show up at different sizes while others show up at all data points. Here are my functions under different simple markers:   CASE WHEN Amount <= 10000 THEN '.2' END CASE WHEN 10000 < Amount < 75000 THEN '.4' END CASE WHEN 75000 < Amount <= 250000 THEN '.6' END CASE WHEN Amount >= 250000 THEN '1' END   The majority of my data set falls into the 10-75k range. However the .4 and .6 size circles show up at every data point on the map, while the .2 and 1 sizes only show up where the data specifies (along with the .4 and .6 sizes). At this point I am trying to figure out what is wrong with the equations, however I am stuck.   Is there a better way to go about this or am I just simply messing up the equations?   I wish I could share my whole map with you but it is looking great. I went with U/Joseph 's solution and here is an excerpt of the results for those interested.


Suppose I have a python script script.py from time import sleep for i in range(3):     print(i)     sleep(1) print('done')  which I want to run on a remote server via an ssh command e.g. ssh me@server "python script.py"  If I do the above verbatim, I get the whole output 0 1 2 done three seconds after I started the script. Instead, I would like to see the output immediately as it is generated by the script, i.e. 0 -one second later- 1 -one second later- 2 -one second later- done. I've seen similar questions regarding viewing the log file, but is there an easy way to do this (e.g. without intermediate logging to a file on the server)?


Grammatical term for words like "yesterday", "today", "tomorrow"

We class words like "he", "she" and "they" as pronouns.  Is there a category of words that "yesterday", "today" and "tomorrow" fall into?


How to evaluate $\sum_{n=1}^{\infty }\frac{1}{n^{n}}$?

$$\sum_{n=1}^{\infty }\frac{1}{n^{n}}$$  I have no idea how to even start computing this series. I do know, however, that this series definitely converges. Solving it numerically results in a solution close to 1.29. But, how would one compute this series analytically?


Figure placed on a separate page is centered and not on top

I have multiple figures placed in my document (all of which are using [htbp], [ht] etc. and are placed correctly). The last figure receives a separate page (which is alright) but it's centered on this page, which looks weird as the figure is quite small.  Is there any way to get this figure on top of this page? As written above, its a separate page and the last one in this chapter.  I can't really provide a minimal example (since I guess that the position depends on my previous figures), but here's the code I use for the figure (I've tried [ht], [ht!], [htbp] etc but none of them work - I've also deleted the .aux files before compiling):  \begin{figure}[t!] \centering \begin{tabularx}{\columnwidth}{cc} \subfloat[Results 1] { \centering    \includegraphics[width=0.47\textwidth,height=0.47\textheight,keepaspectratio]{images/plot1} } & \subfloat[Results 2] { \centering    \includegraphics[width=0.47\textwidth,height=0.47\textheight,keepaspectratio]{images/plot2} } \end{tabularx} \caption{Blabla} \end{figure}   Thanks in advance!


How to get the name of unnumbered section into headings?

I use  \usepackage{fancyhdr}    then  \pagestyle{headings}    and I want \section*{name of the section} in my headings. How to do it?


guide us to find this symbol, we are struggling to find this symbol ,   we used $\mathfrak s$ for this, but no exact output came.


How to reduce the spacing between responses in the alterqcm package?

This question has a continuation here   The alterqcm package is no longer maintained by Alain Matthes. Two other developers maintain it. I wrote to them 15 days ago by email to report the error reported here:  I have not received a reply. I am trying to reduce the spacing between the lines of the QCM as indicated in  by @Werner and it does not work. In addition, by using the David Carlisle's code given in , I get an X instead of a square.  Full code of the screenshot: \documentclass[12pt]{article} %\usepackage[utf8]{inputenc} %\usepackage[upright]{fourier} \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox \usepackage[english]{alterqcm} \def\square{X} % <---------- David Carlisle comment \def\nogreekalph{??} % <---- David Carlisle comment \parindent0pt \begin{document} % Original display \begin{alterqcm}[lq=8cm]  \AQquestion{Question}{%  {Proposition 1},  {Proposition 2},  {Proposition 3}} \end{alterqcm}  \bigskip  % Smashed display !!!!!! Dont work now  {\begin{alterqcm}[lq=8cm]  \AQquestion{Question}{%  {\smash{Proposition 1}},  {\smash{Proposition 2}},  {\smash{Proposition 3}}} \end{alterqcm}}  \bigskip  % Global smashed display !!!! Dont work now  \makeatletter \patchcmd{\aq@prop}{\vbox{#1}}{\vbox{\smash{#1}}}{}{}% patch \aq@prop \makeatother \begin{alterqcm}[lq=8cm]  \AQquestion{Question}{%  {Proposition 1},  {Proposition 2},  {Proposition 3}} \end{alterqcm}  \end{document}  Is there a solution?


How to evaluate potential advisers on grounds other than their research/publications?

While accepting an offer to grad school, one is basically entering into a lasting relationship with one's adviser - most likely, someone whom the applicant has never met before, and the only exposure has been through the potential adviser's website/publications. It is in the interest of both parties to ensure (to the greatest possible extent) that there are no personal/professional traits of either that hamper the formation of a pleasant working relationship - no-one would want to go through the ordeal of having to change advisers midway!  While the faculty has a chance to have a good look at the applicant's profile as well as his motivations (through his grades and SOP), the applicant doesn't have a similar opportunity. So, I'm interested to know what parameters can be used to gauge a potential fit. I've thought of the following:   Past students:  Did anyone ever drop out/change advisers midway, and if so, for what reasons? These would be a bit hard to find though, as I don't expect the faculty concerned would list them on their website. It would be great if anyone could let me know how to find out the list of incoming students to a department for any year. Publication rate, taking into account the venues where they were accepted. Time taken to graduate - though I accept this is more dependent on the student, a median figure should be telling ... What they did post Ph.D. - did anyone get tenure if they went into academia, or is almost everyone unable to break out of being a post-doc?  Tenure status: I'm a bit unsure about this, so wanted the community's opinions about it. Just so that I'm clear, I'm only trying to calibrate the applicant's expectations about the working style of his potential adviser - and hence need to know to what extent are the following "typical" assumptions valid.  Tenured professor  A full professor is more likely to get grant funding, hence less time spent on TAship - but could also mean less time/effort spent on interactions with students (either being busy with other projects/talks, or due to more commitments to family at that age).  Tenure-track faculty (Assistant profs)  More likely to be young and energetic, and could translate to more time spent on one-to-one discussions with grad students - but funding may prove to be an issue, and may have to be on TA for a longer period.   What other factors would be relevant in this matter, and to what extent am I correct/incorrect in either the factors considered, or for undertaking this exercise at all?


Making @username point to user's profile

We use @username in comments and other places to refer to others here on stack exchange communities , so I guess  it would be good if @username automatically points to the profile to user 'username'.


Can you use an instant such as  to kill a Planeswalker before they can use an ability?