I am a programmer moving up to computer science and even in my past life as a mechanical engineer I used sufficient maths to get by but I have always wondered what exactly is this thing called rigor.  Please make me understand it.


Last night, my neighborhood had a blackout, but for some reason, only half of the electrical circuits in my house went out. I was under the impression that there was only one main electrical feed going into a house. Can someone please explain how this works?


Wake screen after scheduled task wakes computer

Trying to create an alarm of sorts.  Task runs fine, computer wakes up from sleep fine, but the screen's black till there's user input. Anyway I can get the screen to light up upon waking?


PHP with MySQL search engine using LIKE confuses apostrophes in the result

I'm using PHP with MySQL to make a basic search engine on my website to look up books that people post, but the problem is that I'm using something for example:  `title` LIKE '%".(string)$searchTerm."%'   NOTICE: The variable $searchTerm is being escaped before-hand.  I know this is widely used and works pretty good, but the problem is that, if I have a book title for example:     Writer's Reference   The result(s) would show, if someone searches for "Writer's Reference" (with no double quotes) But, if someone looks up just "Writers Reference" the result won't show up, which is why I'm here asking what may be a good idea to resolve this.  Using AJAX to query every time on every onkeyup event? Collecting every output into an array? But that might slow-down the process. Is there a way in MySQL that filters and ignores apostrophes, but at the same time, if someone uses an apostrophe it would work? A regex operation?  Thanks.  EDIT: I'm not trying to prevent SQL Injections, I'm looking for a way that if someone looks up a word without an apostrophe, the result with an apostrophe shows up, but at the moment with the LIKE %% won't show up, because it takes direct words from the database. So if the search term does not have an apostrophe and the result has one, it won't show up.  EDIT 2: As I followed the comments, I recently updated the two columns in the database to use FULLTEXT via ALTER TABLEdbname.bookADD FULLTEXT (title,description)  But after so, I'm using a switch case to see if the user is selecting to search in the title or description, or both, both work, as I'm using MATCH(title,description) AGAINST('".(string)$sTerm."') but the others that look in the title or description only won't work as planned, of course, I'm having something like: MATCH(title) AGAINST('".(string)$sTerm."') but won't work unless I make it MATCH(title,title) AGAINST('".(string)$sTerm."') (Adding another title in the MATCH)  Also, still, when someone searches for "Writes Reference" without the apostrophe, it still won't work for some reason, might it be my php code?


I need to proof for a finite abelian group $G$ that for all $x\in G$ we have $\prod_{g\in G}xg=\prod_{g\in G}g$.  I figured that using the commutative property $\prod_{g\in G}xg=x^n\prod_{g\in G}g$. Which would leave us to proof $x^n=e$, where $e$ is the identity element.  Hopefully I'm just missing something obvious here, because I feel like smashing my head against the table now.


How to to calculate the hash of an unordered set

Suppose I have a set of elements, with known hash (e.g. SHA-2). How can I calculate the hash of the set? With it I mean an unordered set, so the order of elements is undefined and shall not play any role in determining the hash of the set.  In theory any commutative operation applied to the hashes should be fine, but I have the strong feeling that XORing all of them together is quite unsafe. An attacker could add an element to the set to produce a hash collision, although finding an element with that wanted hash is as hard as breaking the hash of the whole set.  Anything better solution than the trivial one of sorting the elements into a list, calculating their hashes and then calculating the hash of the hash list?  I think Merkle trees can't help here if they are based on some sort of ordering of the elements.


We have regex to validate URL. I need a regex that will validate against it. Kindly help me in this.  URL for proper validation   var regexp = /(ftp|http|https)://(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(/|/([\w#!:.?+=&%@!-/]))?/  What's for validating against, i.e it should not be a URL.


How to get memory usage under Windows in C++

I am trying to find out how much memory my application is consuming from within the program itself. The memory usage I am looking for is the number reported in the "Mem Usage" column on the Processes tab of Windows Task Manager.


Voting for competing answers (Sportsmanship badge)

If I answer a question and vote for a competing answer, I am on my way to the Sportsmanship badge. What about if I:  a) delete my answer after voting for a competing answer  -- or  --  b) delete my answer before voting for a competing answer  -- or  --  c) delete my answer, vote for a competing answer, get abducted by aliens, the aliens using my account undelete my answer  Do any of those scenarios count towards the badge?    And just for the hell of it - what if I undo my vote for the competing answer?  This, of course, is not the result of alien abduction. Duh. This would be the result of a kidnapping where the kidnappers force me to undo upvotes under threat of serious injury or death.


Material showing up Black in Cycles Render View (Blender 2.9)

I imported an OBJ character model and the image textures showed up as black in the Render View when using Cycles. They looks fine in the Material Preview. I tried removing the image texture and just used a Principle BSDF Shader with the color set to red and I'm having the same issue. I flipped the normals on the model and confirmed that the model is unwrapped but the outcome is the same. I'm fairly new to Blender but have never come across this issue before.  Material Preview Render Preview


How do I go about getting the surface area of an object in cm^2 in blender ? Is there a tab I can find it or will it require a script?. Any help would be appreciated


how do you obtain a data set (around 10,000 data points) with a mean of 0 and standard deviation of 1.

I need a data set with a mean of 0 and stdv of 1. how do i get this?


Printable Esri symbol sets, a.k.a. style references

Does anyone know of good printable documents of the as-shipped Esri symbol sets, also called ?  The new with Arcgis 10 ability to search symbol sets is a great boon, but one can still only find things for which you know the keywords for, and only few so many at a time on screen. I find hard copy of things like this much easier and faster to look through and locate the right one for the map at hand.  For example this morning I was looking for a good glacial moraine symbol and searching the style sets didn't locate anything relevant. So I decided to bite the bullet and build my own. In the process I went browsing through the ...\Desktop10\Styles directory and discovered several pictures I've never noticed represented in any styles that would be perfect for the project I'm working on. Since they're here they very likely already exist in a symbol set and I'd be wasting my time creating them anew. Thus the desire for a printed set to help me find them.  In previous versions there is a developer sample called , but it doesn't work in Arcgis 10 (and the results were pretty crude and wasted paper anyway).


I have a very annoying problem for few months now. Ubuntu just freezes randomly. It begins with a previous version of Ubuntu (al least 14.02) but maybe it begins before. I believed this would have been corrected quick but nothing happens. So am I alone to get this problem ?  Ubuntu totally freezes. (Screen freezes with no black screen)  No keyboard. No mouse. All key shortcuts (REISUB ...) just fails.   Sometimes firefox is opened, sometimes it is not. I dont know how to find where it comes from. What logfile would be useful for debug?  Configuration:   Intel core I5 2500K P8P67 Rev B Geforce GTX560Ti Samsung SSD drive 8gb RAM Dual boot (Windows)   Ctrl+Alt+F1 have no effect on the computer. The screen remains totally frozen. I get these random freezes with ubuntu 12.xx as well.  I tried several (4) Nvidia drivers but for all configurations I get freezes. This is so annoying !!  Random freeze means that I can run linux for some minutes then the system freezes and I can not do anything, except restart.


JTable getValueAT Null Pointer Exception when a Field in Row is null

How should I correct the following issue?  The following code works on a JTable with 4-columns without tripping a Null Pointer Exception:   public void setSubject() {     try {           int row = table_SPAssignList.getSelectedRow();         String prop_addr1_ = (table_SPAssignList.getModel().getValueAt(row, 0)).toString();         String prop_id_ = (table_SPAssignList.getModel().getValueAt(row, 3)).toString();           /*          * UPDATE TriTier to set Subject Property          */         dbConn = sqliteConnection.dbConnector();         String query = "UPDATE TABLENAME SET sp_id = " + prop_id_ + " where id = " + tID;         PreparedStatement pst = dbConn.prepareStatement(query);         pst.execute();         pst.close();          /*          * Display Subject Property Information on Panel          *           */         String addr = prop_addr1_ ;         label__SPAssignDBID.setText(prop_id_);         label_SPAssignAddress.setText(addr);      } catch (final Exception getProperty) {         getProperty.printStackTrace();     } }   However, if I insert the following code, between the getValueAt(row, 0) and getValueAt(row, 3) lines of code a null pointer error seems to occur if the field does not contain data:  String prop_addr2_ = (table_SPAssignList.getModel().getValueAt(row, 1)).toString(); String prop_zip_ = (table_SPAssignList.getModel().getValueAt(row, 2)).toString();   It is very likely that these fields, within the database, do not have any data. Columns 0 and 3, of the table_SPAssignList object will always have values in them.  I am connecting to a SQLite database.  The following posts may be related to my issue  () and ()


Flash plugin for Firefox on Ubuntu 16.04

The flash player plugin has stopped working in Firefox on Ubuntu 16.04 .I cant find pepper flash for chromium either ,certain music sites require flash so are now not use-able.


I have been viewing a lot of first posts from new users. I often see answers such as "thanks", or "me too", or they are asking a different question altogether. I like to point out the fact that they will eventually be able to comment their opinions and upvote answers that they like. So I would like to have a comment such as     Hello user, and welcome to [main]. It is great that the answer helped you, however, that is not the purpose of adding an answer. Soon enough, with just a little bit of work, you will gain [help/privileges/comment] and be able to comment and upvote answers that help you.   [privileges] would link to the site's privilege page, and /comment would link to the page in privileges that talks about commenting. Hash tags could be used to indicate any section of the privileges page. , because each privilege is a different page, the magic links would have to be slashes. For example    - Comment page  - Established user  - Protect Questions   This would work similar to the FAQ magic link comments


Unable to edit my response to a locked question

The image is broken in my  to the "favorite programmer cartoon" question. I'd be happy to fix this, but I can't (not enough rep? not a moderator?).  Here's the image in the Internet Archive:


Output formats for QGIS Heatmap plugin not appearing in drop-drown in Ubuntu

I've been trying to use the heatmap plugin on QGIS (2.8.2) on Ubuntu(14.04) but the drop down for the output formats doesn't get populated.   Selecting the drop-down allows me to press OK on the plugin popup which gives "GDAL driver error: Cannot open the driver for the specified format".   I've installed GDAL according to . The drop down gets populated and works as expected in Windows. How can get the same to work on Ubuntu?  Update : I've tested on a different Ubuntu (14.04) machine and it worked as expected, so the problem seems to be occurring on only some machines


How can I draw these Young tableaux type diagrams?

I am writing an essay on a certain type of representation theory and I would be very grateful if someone can tell me how I can make these diagrams in LaTeX. Any and all help is much appreciated!


How can i Increment a date(dd-MM-yyyy) by 90 days in java

i have a situation where the user has to select a date while creating a request and that request will be valid upto 90 days from the date he selected.How would i implement this logic in my code? I tried but i guess i had no logic.


How do I install drivers for Realtek RTL8812BU?

So I've been experimenting with Ubuntu on and off for a while, but I honestly have no idea what the hell I'm doing. So I have a realtek RTL8812bu WiFi dongle that I'm hoping to get working. I did some research, and came across  that a couple people across two threads said worked for them:  At the bottom it said there is a new version . So somewhere it said it was confirmed to work on kernels up to 4.16, so I checked and I'm on 4.15.0. But the problem I'm having, is what am I supposed to do? There is some installation guide at the bottom that is about as clear as mud to me since I don't know much.


On Snow Leopard you could "jump" from the last space to the first space by hitting cmd+right arrow.   How to do this in Mavericks?


Legality of sentence involving the word "real"

Is the following sentence grammatically correct?      I bought a real heavy book.   I feel it should have been a really heavy, but I heard people use a real heavy all the time.


Set brightness to zero in Windows (like in Ubuntu)

I have a dual boot Lenovo W520 system, with Windows 7 and Ubuntu 14.04. In Ubuntu, when I set the brightness to the lowest value, the backlight actually turns off, which is a brilliant battery saver.  On Windows, I could install the bulky Lenovo Power Manager which turns off the screen with Fn+F3, but I'm trying to keep my laptop completely bloatware free. Can I somehow adjust the minimum brightness in Windows (e.g., in the registry?) Or is this a driver thing, and did I just luck out with Ubuntu not using Lenovo's PM drivers?  I have seen  but that question is about eye strain: they all just make the pixels 'dark' rather than the backlight. I want to set the screen backlight to zero, to save battery life.  Added note from barlop  The OP reasons, not unreasonably, that it seems the software that appears to reduce brightness, e.g. flux/dimmer, doesn't reduce the backlight, hence the taskbar doesn't get darkened, so he reasons that it is darkening the pixels.  So if anybody does want to recommend software, then it should reduce the brightness of the taskbar too. And ultimately his concern/interest is battery life rather than eye strain. So a neutral density filter / vinyl sheet, or sunglasses, don't apply to his case.


Does an Indian citizen with B1 B2 visa, need a transit visa in Australia?

planning to travel Dubai to Christchurch via Sydney. Flight layover time will be 2 hrs maximum.Does an Indian citizen need a transit visa in Australia ?


Weird Patterns on Glossy materials in render

I've been getting weird patterns on my viewport render which i am trying to get rid off. i don't know why they appear in the first place,but i tried everything to remove them but all in vein.  i've also recalculated the normals but that too didn't work.  it appears that it looks fine in a render,but when i see it in viewport, i see those patterns again.strange. This one is a viewport render:  The bottom one is the final render.


Book recommendations for an euclidean geometry course

I'm taking a euclidean and plane geometry course and the bibliography given to us is scarce. The course covers the next topics: Trigonometry Coordinate systems Inversion in a circle Poles and polars Extension of the plane Transformations of the plane Would you recommend me books that covers such topics? It's important to mention that the course is mostly proof-based


Impose strict time-limit for questions on Hot Network Questions list

Right now there are multiple questions that have been on the Hot Network Questions list for a large number of days:   8 days -  8 days -  7 days -  5 days -  5 days -    There are also seven that have been there for four days.  I do not see what value a question sitting on the HNQ has when it is there over a week. They clog the HNQ and make it harder for other questions to get there, lowering overall exposure to other sites. They also disproportionately give reputation to users on those sites who have answers there, which results in a dilution of the meaning of reputation.  It is also not uncommon for questions to stay there this long.  My recommendation is a simple change to add a hard cutoff that when a question is more than 72 hours (3 days) old, it no longer is present in the HNQ list.  This would be as simple as adding a date filter into the query generating the list - the hotness formula itself doesn't need to change in order to effect this result.  The goal of this suggestion is not any of the following:   Comprehensively fixing HNQ (there are other problems with it) Revamping the calculation  Imposing site limits/etc   It is purely to add a basic and simple filter to the query in order to more quickly cycle questions through the list.    Note:


Adding new ROLES and USERS through REST in GeoServer

I use GeoServer stable version 2.14.1 and get error messages when trying to add new roles and users via REST. I suspect that the GeoServer REST documentation is buggy. When I call the REST interface of my GeoServer instance, I can see that the roles are accessible through the URI http://localhost:8080/geoserver/rest/security/roles. Users are under the URI http://localhost:8080/geoserver/rest/security/usergroup/users. I can query both resources via GET request, but adding new resources via POST or PUT will not work. A POST request to create new roles ends up with status code 405 (Method not allowed). After trying to create new users comes the status code 500 (Internal Server Error). For this, the GeoServer-REST documentation has been referencing the paths  /roles/roles/{role}  for new roles () or  /usergroup/users/  for new users () since several GeoServer versions. But when I use them, this always ends with Status code 404 (Not Found). How can I add new roles and users through REST in GeoServer? The workarround from @implssv in  does not work for me.


Evaluate $\cos \frac{\pi}{7} \cos \frac{2\pi}{7}\cos \frac{4\pi}{7}$

Evaluate $$\cos \frac{\pi}{7} \cos \frac{2\pi}{7}\cos \frac{4\pi}{7}.$$  The first thing i noticed was that $$\cos \frac{\pi}{7}=\frac{\zeta_{14}+\zeta_{14}^{-1}}{2},$$ where $\zeta_{14}=e^{2\pi i/14}$ is the 14-th root of unity.  Substituting this into the expression and simplifying, the expression is then transformed to $$\frac{1}{4}Re (\zeta_{14}+\zeta_{14}^3+\zeta_{14}^5+\zeta_{14}^7).$$  But then i have no idea how to get the real part of that thing. I only observed that $\zeta_{14}^7=-1$ and all the terms are primitive 14-th roots of unity. Please helps. Thanks!


Does Tolkien's Legendarium have tiers of canonicity?

Many big Sci-Fi and Fantasy works, such as Harry Potter and Star Wars, have so much material spanning multiple media types that they have to be pruned every now and again and redefine different levels of canonicity. For example, before Disney came along, there were (I believe) 5 different types of canonicity in the Star Wars universe. Even after Disney, there are still two types. There are also multiple levels in the Harry Potter universe, where the books and word of JK are Tier 1, and the movies are Tier 2.  Does Tolkien's Legendarium have a similar setup, where the books are on a higher level of canonicity than the movies, or is it simply a case of "The movies are not canon"? If so, what are these tiers?


There's a stray semicolon in the View of the "Question" page


Is the rank of a matrix the same of its transpose? If yes, how can I prove it?

I am auditing a Linear Algebra class, and today we were taught about the rank of a matrix. The definition was given from the row point of view:      "The rank of a matrix A is the number   of non-zero rows in the reduced   row-echelon form of A".   The lecturer then explained that if the matrix $A$ has size $m  \times n$, then $rank(A) \leq m$ and $rank(A) \leq n$.   The way I had been taught about rank was that it was the smallest of    the number of rows bringing new information the number of columns bringing new information.    I don't see how that would change if we transposed the matrix, so I said in the lecture:  "then the rank of a matrix is the same of its transpose, right?"   And the lecturer said:   "oh, not so fast! Hang on, I have to think about it".   As the class has about 100 students and the lecturer was just substituting for the "normal" lecturer, he was probably a bit nervous, so he just went on with the lecture.  I have tested "my theory" with one matrix and it works, but even if I tried with 100 matrices and it worked, I wouldn't have proven that it always works because there might be a case where it doesn't.  So my question is first whether I am right, that is, whether the rank of a matrix is the same as the rank of its transpose, and second, if that is true, how can I prove it?  Thanks  :)


When referring to toddles/infants, we say:     Example 1) Pick up the baby.   But when my friend asks me a favor, they would say:     Example 2) Can you pick John up from the bus stop?   or...     Example 3) Can you pick up John from the bus stop?   I always thought that example 1 is correct because it involves an actual act of picking up someone and carrying it. But between examples 2 and 3, example 2 is correct and example 3 is incorrect. Why, because you do not actually carry John around. However, I have noticed many people using Example 3 as the correct way to describe the action.  Between examples 2 and 3, which is the correct way?    Duplicate Alert?      This question appears to be duplicate but  is more related to the actual action of lifting an object and carrying it. And hence, I think my question is not truly a  duplicate. Please correct me if it is duplicate.


Graphs with same degree sequence and same number of vertices isomorphic?

if there are two graph $G$ and $H$ that have same number of vertices, and their degree sequences are the same. Does this mean that they are isomorphic ?


Serial vote reversal strangeness? Bug or feature?

Something strange has been happening on meta.SciFi recently...    But at least twice now, I've voted on the question and on several of the answers, only to have those votes apparently disappear.     since the question and most of the answers were posted by the same person, if you disagree with the idea of changing the name AND don't like many of the suggested new names, you're casting a lot of votes against the OP.  This raises a few questions:   Since this is a meta site, there's no reputation graph, so can you even tell if your votes are being reversed? Since voting on meta doesn't cost points, should serial votes be reversed on a meta site? If this is an artifact of serial vote reversal, how should a poll like this be conducted?  (I'm less interested in this.)


(Basic) How to connect the ground in this schematic to a breadboard?

I just want to know how do I connect the ground in the circuit. I know how to connect DC source but I'm confused on how to connect the ground. I have adept knowledge about the concept of ground, I just want to know how to connect the ground(0V) in this schematic to a breadboard. I'm just playing the basics  in falstad but I got confused about this.


Probability of putting wrong letters in envelopes

The question goes like this:     There are 5 envelopes corresponding to 5 letters. If the letters are placed in the envelopes at random, what is the probability that all the letters are not placed in the right envelopes?   The book finds easy way to solve this:     There is only one way to put all the letters in correct envelopes, we can say that event of not all four letters going into the correct envelopes will be given by $5!-1=119$. This the desired probability is $\frac{119}{120}$.   I want to find the other way: counting / summing individual possibilities like 2 letters in wrong envelopes plus 3 letters in wrong plus 4 letters in wrong envelopes plus 5 letters in wrong envelopes. Realizing that n letters can be in wrong envelopes in $\binom{5}{n}\times (n-1)$ ways, I get $\binom{5}{2}\times 1 +\binom{5}{3}\times 2 +\binom{5}{4}\times 3 +\binom{5}{5}\times 4 = 49$. Where I am making mistake?


I have two variables $x$, and $y$. That are related by $Bx=y$. There is also a linear inequality constraint on $x$: $Ax \leq b$. Is it possible to write down the feasible set of $y$ as a linear inequality constraint? How would I do this? I also know that the columns of $A$ are linearly independent, but I don't have any such condition on $B$.


Valid edit to my post was rejected. How to bring it back?

Some anonymous guy edited my answer recently. Here it is:   Five users reviewed this edit and three of them rejected it as invalid. I think that the correction is absolutely valid (missing function argument was added).  What is the correct way of bringing this edit back and accepting it?


How to get rid off the Skype error "Skype can't connect." on Ubuntu 12.04 LTS?

I'm using Ubuntu 12.04 LTS on my machine since long. I installed "Skype 4.2 for Linux". It was working fine till yesterday night. But today when I tried to log-in to skype I'm not able to do it. An error message "Skype can't connect." is displaying when I press Sign in button after filling the Skype Name and Password. I'm damn sure about the Skype Name and Password I'm entering are correct. I tried with the same credentials on a machine running on Windows 7. I was able to log-in over there.   To resolve this issue I tried almost everything, from removing Skype completely to install Skype again and again from 'Ubuntu Software Center', 'By downloading latest Skype .deb file and running it on my machine', 'Disabled the firewall', etc. but every time the result is same.  For your information I'm also attaching the screen shot of the error message to this question.  So can some one help me in this regard please? Thanks in advance.


Is the moment of inertia of the bicycle wheel relevant for keeping bicycle in the upright position?

When we were taught physics at school and the topic was the Inertia and , they used as an example that the moment of inertia of the bicycle wheel is the reason why we are able to keep the bicycle in the upright position.  Is this true?  If I take into account the lightweight of the rim and tire, its moment of inertia seems nothing compared to the mass of the bicycle and the biker. And I am even able to keep in the upright position a micro scooter where the wheels are really tiny.  How can I compare the significance of the rim as a flywheel with the other factors?


My iPhone is saying I need to do billing but there is not a none button by the credit cards what do I do I need to download a app for my cheerleading


19.10: Deactivate Alt Key From Triggering Applications' Menu Bar

How can I stop the Alt key from triggering the menu bar of applications in Ubuntu 19.10?  I know that there are these , , and , as well as  but those solutions are no longer applicable. I did try searching for a similar option to the one in the answer of those questions but with no success.


Is it still a metaphor if you say "if X was Y" first?

I was inspired to ask by the famous John Green quote:     if people were rain, I was drizzle and she was a hurricane   Is this a metaphor? Without the "if people were rain" it would be, certainly, but with it? Does it count as a simile?


My problem is that I keep unlocking new weapons and I really don't understand a great way to compare the guns.  I understand that if I start with a new weapon I need to spend a lot of time to unlock the good unlocks for that weapon, but there must be some general consensus as to some top guns and attachments.


Trying to keep spaces in the variable for read with the \.  $ echo "Drag folder to be copied to terminal and press ENTER." $ read FILE /Users/UserName/Desktop/Folder\ With\ Spaces\ In\ it $ echo "$FILE" /Users/UserName/Desktop/Folder With Spaces In it   The \ have been removed. I need them to remain as it will be used later in copy. Example.  $ cp -R $FILE /Volumes/USBName    I have played with different quotation marks and looked around but nothing has worked for me so far. I may have to change the IFS, not sure?


how to get a picklist all values in apex controller

I have a Student object and have a pick list field  "Student Status" in this object. Status can be Full-Time OR Part Time. Now my requirement is i want this student status list, Part-Time or Full-Time in apex controller. how can i do this?  If i get a student record it will only give me that particular student status Full-Time or Part-Time. But i need all options that are available in student status field.  Please help me


Whenever I use ubuntu-device-flash on my BQ Aquaris e4.5 I get this:  root@finlay-afr:/home/finlay# ubuntu-device-flash touch --channel ubuntu-touch/stable/bq-aquaris.en --bootstrap 2015/04/25 10:40:28 Expecting the device to be in the bootloader... waiting 2015/04/25 10:40:28 Device is |1| 2015/04/25 10:40:28 Device 1 not found on server https://system-image.ubuntu.com channel ubuntu-touch/stable/bq-aquaris.en   What is wrong?  EDIT: managed to get progress by using ubuntu-device-flash touch --channel ubuntu-touch/stable/bq-aquaris.en --bootstrap --device=krillin but now I get stuck with this:  2015/04/25 14:35:20 Device is |krillin| 2015/04/25 14:35:21 Flashing version 21 from ubuntu-touch/stable/bq-aquaris.en channel and server https://system-image.ubuntu.com to device krillin 2015/04/25 14:35:21 ubuntu-touch/ubuntu-rtm/14.09 is a channel alias to ubuntu-touch/stable/bq-aquaris.en 67.41 MB / 67.41 MB [======================================] 100.00 % 1.70 MB/s  60.40 MB / 60.40 MB [======================================] 100.00 % 1.48 MB/s  286.68 MB / 286.68 MB [====================================] 100.00 % 2.94 MB/s  /root/.cache/ubuntuimages/ubuntu-touch/stable/bq-aquaris.en/krillin/version-21.tar.xz /root/.cache/ubuntuimages/gpg/image-signing.tar.xz /root/.cache/ubuntuimages/gpg/image-master.tar.xz /root/.cache/ubuntuimages/pool/device-0142302186687e3e48e6987283f6caf5d471a4160f98aa6a3cb7658f96471297.tar.xz 2015/04/25 14:37:18 Can't flash recovery image   how do I fix that? 5/11/2015: still not working, anyone help >.>


how to calculate remainder of $7^ {154}$ when it is divided by $341$. Could you please state which method or theorem to use.


How to uninstall and reinstall GNOME 3.10?

I installed GNOME 3.10. I had GNOME 3.8 and liked it very much. Unfortunately, with 3.10 it seems like something went wrong. None of the backgrounds work and the buttons to log out and shut down are missing.   How can I uninstall and reinstall GNOME 3.10? I am running Ubuntu 13.04.  I originally installed it by:  sudo add-apt-repository ppa:ricotz/testing sudo add-apt-repository ppa:gnome3-team/gnome3 sudo add-apt-repository ppa:gnome3-team/gnome3-staging sudo apt-get update sudo apt-get install gnome-shell


How to prove the continuity of the metric function?

Given a metric space $(X,d)$, how to prove that the function $d \colon X \times X \to \mathbf{R}$ is continuous?   If we take any two arbitrary real numbers $a$ and $b$ such that $a < b$, then we need to show that the set $d^{-1} (a,b)$ given by   $$ d^{-1} (a,b) :=  \{ (x, y) \in X \times X | a < d(x,y) < b \} $$  is open in the product topology on $X \times X$.   A basis for this product topology is the collection of all cartesian products of open balls in $(X,d)$.


"left- and right-hand side" vs. "left and right-hand side"

I'm trying to find the correct way between "left- and right-hand side" or  "left and right-hand side".


Let $A$ be any vector field, then by Stokes Theorem we have:  $$ \oint_{\gamma} \mathbf{A} \cdot d \mathbf{r}=\int_{S} \operatorname{curl} \mathbf{A} \cdot d \mathbf{S} $$  We can now apply Divergence Theorem to $\operatorname{curl}\mathbf{A}$, which using the fact that divergence of curl is $0$, gives:  $$ \int_{S} \operatorname{curl} \mathbf{A} \cdot d \mathbf{S} = \int_{\tau} \operatorname{div} ( \operatorname{curl} \mathbf{A} ) d \tau = 0 $$  So we could conclude for any vector field $A$:  $$ \oint_{\gamma} \mathbf{A} \cdot d \mathbf{r} = 0$$  What is wrong here?


Configure Bind9 master zone to accept all third levels of domain

I tried for several hours configuring a Bind server on Debian 7 in order to obtain this:  *.example.local.  I need that every third or fourth level for "example.local" (for example: abc.example.local, one.two.three.example.local, etc...) to go to a specific IP Address (ie.: 192.168.100.200).  I really can't find a way to obtain this, everytime the server answers me with a SERVWARN telling it can't find example.local.  Thank you


How can I get photos showing the "shaft of light" effect?

I would like to be able to capture a photo which shows light shafts coming through the window. A famous example is this:    I'm guessing this involves a tripod, a long exposure and strong sunlight, but presumably also some particulate in the air to catch the light? Is there a way to reliably replicate this effect in a building like a church?


Illogical GTK theme behaviour on Ubuntu 18.04

I'm using X-Arc-White GTK theme in my freshly installed Ubuntu 18.04 desktop. I looks really amazing, but there's a problem with GNOME own applications, like system monitor or calculator. They are shown only with default Adwaita theme.      The only themes which work for all programs are Ambiance and Radiance. Is there a reason for that behaviour?


How to prove $\sum_{i=1}^n i.i! = (n+1)!-1$ with mathematical induction?

I'm trying to prove  $$ \sum_{i=1}^n i.i! = (n+1)!-1 $$ with mathematical induction. The first step I did after prove it for 1 was: $$ \sum_{i=1}^{n+1} i.i! = (n+2)!-1= (n+2).(n+1)!-1 $$ but I can't do anything more.


I need a personal ID generator for Bulgarian IDs and since our IDs are 10 digits long I can't do it with an int number and I need some suggestions. I tried with this code but it doesn't work. It also needs to be above 999999999 or below 9999999999.  static class ID {     Random random = new Random();     long perID = random.nextLong(999999999); }


If both $P$ and $Q$ are true , how can I tell that $P$ implies $Q$?

I am trying to understand the fundamentals of mathematical logic in order to be able to study discrete mathematics and computer science soon.  I have a big problem understanding Implication. I understand the idea intuitively very well; for example:  $$ x >0  \implies 2x>0 .$$  Or  $$ x \text{ is a prime number} \implies x \geq 2 .$$  I notice that there is always a (connection) between the hypothesis and the conclusion; they seem to be related and fall in the same context.  What I don't understand is: according to the truth table, any two propositions can be linked through an implication even if they are not related at all, or they belong to different contexts.  For example :  $$ \text{A day is 24 hours} \implies \text{A cat has four legs and a tail} .$$  which is logically or mathematically TRUE, because both statements are true and according to the truth table when when both inputs are true for any two statements then the implication is true.  How can that be true?  Another example:  $$ 2 \text{ is a prime number} \implies \text{An hour is 60 minutes}.$$  again, which is logically or mathematically TRUE, because both statements are true and according to the truth table when when both inputs are true for any two statements, then the implication is true.  How can that be true? That's my first question.  The second question could be the same:     How can we use truth tables with implication anyway?   What I understand is truth tables are used to list the probabilities of the output based on the logical values of the inputs. So the value of the output of any line in the truth table depends (only) on the logical values of the inputs in that line and has nothing to do with the conditional connection between the two inputs.   How can we display a conditional statement in a truth table the same way we display a logic gate or so? In other words, how can I tell only from the values of $P$ and $Q$ that $P \implies Q$?


How to obtain an homography from a single soccer image?

I am trying to obtain an Homography of a soccer image shot by a broadcasting camera. The original picture:    I then proceed to find field lines, resulting in the following:    From what I understand, at least 4 points need to be detected. From the detected line, I should easily obtain 4 points by intersection of the lines. (I will extend the detected lines so they actually intersect)  The detected points can then be projected to another image. Since I do not have another image, I believe I should use a field model, like the one below.    Since field dimensions are known, every intersection point of the field model in world coordinates are known. For example: the middle of the field can be set to (0,0) (in meters). The top right of the field will then be (52.5,34) (in meters).  Now how do I set those world coordinates on the image?


why my ubuntu 18.04 have many dev/loop? and how to fix it?


Is there a direct command to plot the modified Bessel functions?, I could find the below code to plot the bessel functions, but i couldn't find a similar one to plot the modified ones.  \documentclass[border=12pt]{standalone}     \usepackage{pgfplots}          \pgfplotsset{compat=newest}          \directlua{       ffi=require("ffi")       ffi.cdef[[       double jn(int n, double x);       double yn(int n, double x);       ]]     }          \pgfmathdeclarefunction{BesselJ}{2}{%       \edef\pgfmathresult{%         \directlua{tex.print(ffi.C.jn(\pgfmathfloatvalueof{#1},\pgfmathfloatvalueof{#2}))}%       }%     }                    \begin{document}          \begin{tikzpicture}       \begin{axis}[         x axis line style={-stealth},         y axis line style={-stealth},         axis lines*=center,         cycle list={[samples of colormap={6 of viridis}]},         enlargelimits=false,         domain=0:20,         restrict y to domain=-2:1.5,         ymin=-1,         ymax=1.3,         samples=100,         no markers]         \pgfplotsinvokeforeach{0,...,2}{           \addplot { BesselJ(#1,x) }; \addlegendentry{$J_{#1}(x)$};       }       \end{axis}     \end{tikzpicture}          \end{document}


Number of nodes in binary tree given number of leaves

How would I prove that any binary tree that has n leaves has precisely $2n-1$ nodes ?  Given that a binary tree is either a single node "o" or a node with the left and right subtrees contains a binary tree        o  /       \ binary  binary tree    tree   Any help would be appreciated !


I set a PIN screen lock on my Sony ST21i (Android 4.0) and forgot the code. No encryption, no root, and the phone won't show up a "Forgot PIN?" button. How to regain access to my phone? There is no important information in it, so any solution that deletes all data is fine. Help!  Edit: Didn't work:   Android Device Manager Trying to boot into "recovery mode" using various key combinations found online


I know using the command ls will list all the directories. But what does the ls * command do ? I used it and it just lists the directories. Does the star in front of ls mean how deep it will list the directories?


How is it possible that we see light from shortly after the big bang?

How can astronomers see light from shortly after the big bang? How did we get "here" before the light that emanated from our "creation"?


What to do when the OP mutilates their own question?

I've occasionally noticed an OP who will edit their own question and destroy it completely, always leaving some kind of graffiti-like scrawl in its place.  This seems to happen on low-quality questions by low-rep users, and the moment of self destruction tends to occur after the question is closed or otherwise devolves into a communication breakdown between the poster and the community.  Here are some examples:        It seems like the poster usually does this in anger (1st and 3rd example), or else is just confused about how to delete their question (2nd example).  My question is about how this should be handled. In the past I wasn't sure, so I always flagged for mod attention. However I notice the solution on all of these was to just do a rollback (I did this myself on the 2nd example after nothing happened). Is this a good enough approach, or should a flag be used?  What about with particularly obnoxious users like in the third example, where the guy came back to do it again?


Union and Intersection of Sets $A_{i}$ and $B_{j}$

Suppose $A_{1},A_{2},A_{3},...................,A_{30}$ are thirty sets each with five elements and  $B_{1},B_{2},.......B_{n}$ are $n$ sets each with three elements. Let $\displaystyle \cup_{i=1}^{30}A_{i} = \cup_{j=1}^{30}B_{j} = S\;,$ Assume that  each element of $S$ belongs to exactly $10$ of $A_{i}$ and to exactly $9$ of $B_{j}$. Then find $n$   $\bf{My\; Try::}$ If $A_{i}\;\forall i\in \left\{1,2,3,........,30\right\}$ Contain $5$ elements,   Then $\displaystyle \cup_{i=1}^{30}$ Contain $30\times 5 = 150$ elements.Similarly If $B_{j}\forall j\in \left\{1,2,3,4,......,n\right\}$ elements,  Then $\displaystyle \cup_{j=1}^{30}$ contain $n\times 3 = 3n$ elements.  Now I did not Understand the meaning of line   $\bf{Assume \; that\;  each\;  element \; of \; S \; belongs\;  to\;  exactly \; 10 \; of \; A_{i} \; and \; to\;  exactly\;  9\;  of \; B_{j}}$.  Help Required, Thanks


Noticed one of my edited post in another site

Not sure if this had been noticed by the house. I edited the content and heading of one of my unanswered post today. While searching web for some information, I just noticed that the same question i had earlier asked is also appearing on another site that I had no clue of:  This is my post in edit mode   This is the site I found the same post   Is this something anyone else as seen before?


I am trying to write  Apex trigger for Account that matches Shipping Address Postal Code with Billing Address Postal Code based on a custom field.   public class TriggerOnAccountHandler {     public static void onInsert(List<Account> newListAccount){         for(Account acc : newListAccount){             if(acc.BillingPostalCode !=Null && acc.Same_as_billing_Address_Postal_Code__c == true){                 acc.ShippingPostalCode  = acc.BillingPostalCode;             }         }     } }  trigger TriggerOnAccount on Account (after insert, after update) {     if(Trigger.isAfter && Trigger.isInsert){         TriggerOnAccountHandler.onInsert(Trigger.New);     } }      Error while saving the Account Record :       Error: Invalid Data.  Review all error messages below to correct your   data. Apex trigger TriggerOnAccount caused an unexpected exception,   contact your administrator: TriggerOnAccount: execution of AfterInsert   caused by: System.FinalException: Record is read-only:   Class.TriggerOnAccountHandler.onInsert: line 5, column 1


Null pointer exception while converting character array to String in Java

In my code snippet, I am trying to first generate a Character array and then aggregate it into a String but I keep hitting a NullPointerException. Is there memory not pointed to and being accessed here or is there some kind of type mismatch?  Source code :  private int getRandomDigit() {     return (random.nextInt(10)); }  private Character getRandomCharacter() {     return (char) (65 + random.nextInt(26)); }  public void setRandomizedCustomerID() {      Character[] customerID_ = new Character[10];      customerID_[0] = Character.forDigit(getRandomDigit(), 10);     customerID_[1] = Character.forDigit(getRandomDigit(), 10);     customerID_[2] = getRandomCharacter();     customerID_[3] = getRandomCharacter();     customerID_[4] = getRandomCharacter();     customerID_[5] = getRandomCharacter();     customerID_[6] = Character.forDigit(getRandomDigit(), 10);     customerID_[7] = getRandomCharacter();     customerID_[8] = getRandomCharacter();     customerID_[9] = Character.forDigit(getRandomDigit(), 10);      for (Character c : customerID_)          customerID += c.toString(); /* customerID is a field of type String */ }   main method :  public static void main(String[] args) {     GenerateRecords[] recordArray = new GenerateRecords[1000];     String[] recordsToBeWritten = new String[1000];      for (int i = 0; i < 1000; i++) {         recordArray[i].setRandomizedCustomerID(); /* NullPointerException thrown here */         recordArray[i].setRandomizedOccupationID();         recordArray[i].setRandomizedIncome();         recordArray[i].setRandomizedDebt();         recordsToBeWritten[i] = recordArray[i].getRandomizedCustomerID() + "," + recordArray[i].getRandomizedState()                 + "," + recordArray[i].getRandomizedGender() + "," + recordArray[i].getRandomizedAge() + ","                 + recordArray[i].getRandomizedRace() + "," + recordArray[i].getRandomizedMaritalStatus() + ","                 + recordArray[i].getRandomizedOccupation() + "," + recordArray[i].getRandomizedIncome() + ","                 + recordArray[i].getRandomizedDebt() + "," + recordArray[i].getRandomizedLoanType() + "," + "?";     }      for (int i = 0; i < 1000; i++)         System.out.println(recordsToBeWritten[i] + "\n"); }


How common C++ implementations treats static_cast and reinterpret_cast

Ok most answers on SO say that reinterpret_cast is most dangerous cast, can do whatever..what not.., it can reinterpret bits of one type like another type. So my question is why does static_cast<char>(int(0)) works but reinterpret_cast<char>(int(0)) not? is it due to size difference of argument type and destination value type?  reinterpret_cast<char*>(&Some_double_var) works.  How does implementation knows which cast works in what cases?  Thanks


In movie ,      a single woman (and man afterwards) repeats the same cycle starting from kidnapping of a baby, falling in love, etc.. and then again starting from beginning.   So, how was the baby born for the first time, and how does it come to know about the predestination?


Closed formula for $\sum_{i=1}^n \det(v_1, \ldots, Av_i, \ldots, v_n)$

Denote $(v_1, \ldots, v_n)$ the matrix that has columns $v_1,\ldots, v_n\in \mathbb{R}^n$. Let $A\in \mathcal{M}_{n\times n}(\mathbb{R})$. Is there a clever way (without expanding LHS and doing calculations) to show that $$\sum_{i=1}^n \det(v_1, \ldots, Av_i, \ldots, v_n)=\text{tr}(A)\det(v_1, \ldots, v_n)\ ?$$


Casting a spell as an action also blocks me from casting a spell as a bonus action?

The  say:     A spell cast with a bonus action is especially swift. You must use a bonus action on your turn to cast the spell, provided that you haven't already taken a bonus action this turn. You can't cast another spell during the same turn, except for a cantrip with a casting time of 1 action.   I assumed the order didn't matter, and an unwritten, but logical deduction, is:     If you cast a spell with an action, you can no longer cast spells or cantrips with a bonus action on that turn.   However, a mate has argued with me, that if you first cast a spell with an Action, then you can cast another with a Bonus Action, since casting as an action does not prevent casting as a bonus, only the other way around.  I think it doesn't make sense, but in fact, the rules have some ambiguity. Does "You can’t cast another spell during the same turn" mean "you can no longer cast another spell", or "you can't have cast and you can no longer cast another spell"?


I am trying to write a code that compares the users string to the string 'm' or 'f' and repeating the loop if the users answer doesn't match either letter      public static void main(String[] args) {      String om = JOptionPane.showInputDialog("I will calculate the number of chocolate bar you should eat to maintain your weigth\n"             + "Please enter letter 'M' if you are a Male\n"             + "'F' if you are a Female");     JOptionPane.showMessageDialog(null, om.equalsIgnoreCase("m")); // if i don't do this, it says the variables have not been initialized     boolean m = true;     boolean f = true;     if (om == "m"){      m = om.equalsIgnoreCase("m");     } else if ( om == "f"){      f = om.equalsIgnoreCase("f");     }     JOptionPane.showMessageDialog(null, "The m is: " + m);     JOptionPane.showMessageDialog(null, "The f is: " + f); //if the user enters one variable the other variable becomes false, thus   // activating the while loop     while (m == false || f == false){         om = JOptionPane.showInputDialog("Please enter letter 'M' if you are a Male\n"                 + "'F' if you are a female");       }   /* i tried using '!=' to compare the string that doesn't work, i tired converting the strings to number to make it easier something like the code below:  int g = 2; if (om = "m"){ g = 0 } while (g != 0){  }   that doesn't work either  So i tried using boolean which worked but if the user doesn't enter one letter the other letter becomes false and activates the while loop


How to find out whether a font is authentic?

Is there a way to find out whether a font is authentic or fake? Font files both online and on my machine are often of unclear origin, yet I'd like to be sure that I paid for the fonts that are commercially available and that I have a genuine original.  Is there a way to check the authenticity of a font file?  I am interested mostly in Type 1 fonts (.pfm and .pfb files), but also an answer for Open Type (otf) and True Type (.ttf) would certainly be useful.


This is something I don't particularly understand. I get that for Windows, activation exists to prevent software piracy, but you don't have to pay for iOS. Perhaps activation exists to prevent Android devices from using iOS or to prevent jailbreaks and downgrades? Anyone know the real reason why?


current or voltage what is imp to run a load

recently i took a power supply fan which says 12 V and maybe 0.15 A to run.So which is the priority that i should follow to make it run should i go for 12 v supply or should i go for 0.15 A  secondly if i take 12v car battery to run it will the fan burn because it has a higher current as compared to the required current  previously i connected AA size batteries in series that made up 6 V . The motor started to rotate but it was too low?


I' m trying to do a simple tcp port scan using socket connect, and I m using a thread pool, but  I don't get the output that I expect, the code for the thread pool is from .  My code:  IPAddress dstIpAddress ; IPAddress.TryParse("192.168.2.106", out dstIpAddress); Action<IPAddress,int> tcpConnect = (( dstIp,  destinationPort) =>  {     string result = "open";     try     {         Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);         sock.Connect(dstIpAddress, destinationPort);     }     catch (Exception e)     {         result = "closed";     }     Console.WriteLine("TCP port {0} is {1}.", destinationPort, result); });  using (var pool = new ThreadPool(10)) {     for (var i = 0; i < 50; i++)     {         pool.QueueTask(() => tcpConnect(dstIpAddress,i));     } }


How can Infinity Stones be handled by humans but almost killed Peter Quill?

I thought that normal people couldn't handle the Infinity Stones without something to control their power?    The main scene that drives this home for me is the end of Guardians of the Galaxy, where Peter Quill, being part eternal, can barely hold one Infinity Stone but in Endgame they treat them as just stones that anyone can hold.  Can this apparent discrepancy be resolved?


I'm fairly new to python, and I'm wondering how I can copy and paste a file from one location to another with first checking to see if the copied file exists in the destination folder?  The reason I want to check if the file exists is this script will be put on a task scheduler and run on a set schedule, so I don't want to be copying everything every single time, just those files that don't exist in the destination folder?  Thanks in advance!


Delete all command blocks without opening minecraft world

I have a minecraft world and messed a command up so whenever I open the world i can't do anything, due to huge lag. How can I remove or disable these command blocks without deleting the other world data?


Finding $\int \frac{1}{\sqrt{\tan x}}dx$

$$\int \frac{1}{\sqrt{\tan x}}dx = ?$$  I tried:  $$\int \frac{\sin^2 x + \cos^2x}{\sqrt{\tan x}}dx = \int \left(\frac{\sin^2x}{\sqrt{\tan x}}+\frac{\cos^2x}{\sqrt{\tan x}}\right)dx = \\ \int \sqrt{\sin^3x\cos x}dx + \int \sqrt{\frac{\cos^5x}{\sin x}}dx $$  Now solving the first one individually:  $$\int \sqrt{\sin^3x\cos x}dx = \int \sqrt{\sin x \cos x}*\sin x dx = \int \sqrt{\frac{\sin(2x)}{2}}*\sin x dx = \\ \frac{1}{\sqrt{2}}\int \sqrt{\sin(2x)}*\sin dx $$  I tried to integrate by parts but didn't get anywhere. Still, here it is:  $$\int \sqrt{\sin(2x)}*\sin dx $$  $v = \sqrt{\sin(2x}$  $dv = \frac{\cos(2x)dx}{2\sqrt{\sin(2x)}}$  $du = \sin x dx$  $u = -\cos(x)$  $$1/\sqrt{2} [\sqrt{\sin(2x}*-\cos (x) + 1/2 \int \frac{\cos(2x)}{\sqrt{\sin(2x)}}*\cos x dx]$$  I just keep going in circles. What do I do?


If someone disarmed Harry, would the Elder wand become theirs?

In the Half-Blood Prince, Draco Malfoy gained ownership of the Elder wand by disarming Dumbldore when he was holding the Elder wand.  Could someone have used Expelliarmus on Harry to take ownership of the wand, even if he didn’t have it on him? Because Draco Malfoy had ownership, and then Harry got ownership by stealing Draco's normal (original) wand.  Sorry if this is confusing.


Class file from a external jar not found during maven build?

I have created a runnable jar which i included in my project(Maven Project). But when i tried doing mvn clean package. My build gets failed It gives me an error in one of my class imports stating that the package does not exist(which is present in jar).  What i tried:   Tried adding the jat in Web App Libraries. Adding the  jar as external jar. Adding it in lib folder.   Error Message:   Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project interplan: Compilation failure: Compilation failure: [ERROR] ..\..\..\MyVehicles.java:[11,40] error: package com.vehicles.parts.manager does not exist   Please guide. Thanks in advance.


Ubuntu studio freeze when starting the system

i would to ask that question: why freeze my ubuntu studio when system starting ? anyway ubuntu studio is great i love it only then freeze, and I dont know why ? EDIT from comments (paraphrased): I see only ubuntu logo rotate... and after 20 min still nothing (no boot?)


I used the code from  to write some java code in beamer that uses the Luebeck theme.   \documentclass[11pt]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{graphicx} \usepackage{tikz} \usepackage{cprotect} \usepackage{listings} \usepackage{color} \usetikzlibrary{arrows.meta} \usetheme{Luebeck}  \definecolor{dkgreen}{rgb}{0,0.6,0} \definecolor{gray}{rgb}{0.5,0.5,0.5} \definecolor{mauve}{rgb}{0.58,0,0.82}  \lstset{frame=tb,     language=Java,     aboveskip=3mm,     belowskip=3mm,     showstringspaces=false,     columns=flexible,     basicstyle={\small\ttfamily},     numbers=none,     numberstyle=\tiny\color{gray},     keywordstyle=\color{blue},     commentstyle=\color{dkgreen},     stringstyle=\color{mauve},     breaklines=true,     breakatwhitespace=true,     tabsize=4 } \begin{document} %... \begin{frame}[fragile]         \frametitle{Java} \begin{lstlisting} // Hello.java import javax.swing.JApplet; import java.awt.Graphics;  public class Hello extends JApplet {     public void paintComponent(Graphics g) {         g.drawString("Hello, world!", 65, 95);     }     } \end{lstlisting} \end{frame} \end{document}   I get the output as below.    The lstlising is inside a fragile frame. Why are all my tabs replace with ^^I and how do I stop that from happening.


TSQL throw weird error when commenting a line of text

Here is a strange situation. Following code works perfectly if I run it as is, but if I comment the first CHARINDEX line, it throws an error.  Msg 536, Level 16, State 4, Line 1 Invalid length parameter passed to the RIGHT function.  SELECT  DT.DataID ,RIGHT(K.IniValue, LEN( K.IniValue ) - 15) --error if you comment the next line  ,CHARINDEX('}',SUBSTRING(K.IniValue,CHARINDEX('ExtShared',K.IniValue) + 12,LEN(K.IniValue))) AS LastPosition   ,REPLACE( CONCAT( REPLACE( RIGHT(K.IniValue, LEN( K.IniValue ) - 15), '''}', '' ), SUBSTRING( P.providerData, CHARINDEX( '''providerInfo''=''', P.providerData ) + 16, CHARINDEX( ''',''storage', P.providerData ) - ( CHARINDEX( '''providerInfo''=''', P.providerData ) + 16 ))), '\\', '\' )  FROM llprod.DTreeCore AS DT INNER JOIN llprod.DVersData AS DV ON DV.DocID = DT.DataID AND DT.VersionNum = DV.Version INNER JOIN llprod.ProviderData AS P ON DV.ProviderId = P.providerID INNER JOIN llprod.KIni AS K ON K.IniKeyword = P.providerType --WHERE ( k.IniValue LIKE '%{%' and K.IniValue LIKE '%}%' AND k.IniValue LIKE '%ExtShared%') WHERE DT.DataiD = 123456 OPTION (RECOMPILE)


What are our policies regarding underage users?

What are the age requirements for using the Stack Exchange network and what should moderators do if they encounter an underage user?


The function $f: G→G$ defined by $f(x) =x^2$ is a homomorphism if and only if $G$ is abelian.  Can anyone give me any tips how to work on this question?


why is the subject blurry and the back ground clear

I was practicing with my daughter and most of the pics came out good but some really good ones, or what could have been really good, her face was blurred but the background was clear.


The Enestrom-Kakeya theorem states that all roots of the polynomial:  $$p(z):=\sum_{k=0}^n a_kz^k$$  lie outside the open unit disk if the sequence $(a_k)$ is positive and decreasing.  A proof can be found in Marden- Geometry of Polynomials.  I was wondering if the following idea of mine constitutes a valid proof as well:  $$(1-z)p(z)=a_0+\sum_{k=1}^n (a_k-a_{k-1})z^k-a_nz^{n+1}$$  so   $$|(1-w)p(w)|\geq a_0-\sum_{k=1}^n (a_{k-1}-a_k)|w|^k -a_n > a_0-\sum_{k=1}^n (a_{k-1}-a_k) -a_n=0$$  for all $|w|<1.$  (Using the reverse triangle inequality. The step at which strict inequality is introduced is only valid if some $a_{k-1}-a_k$ is nonzero. If this is not the case, our polynomial trivially has all roots on the unit circle.)


How can I number a few equations together

i would like to write few equations, but all the equations will get only once numbered and in the middle (right side) of the equations. e.q. if i write 3 equations, the number will be to the right of the second equation line and if i have 2 equations, then the number will between the two equations and at the right side.  in addition i would like to have something like "&" (align) that i could align my equations at certain points.  Example:  a   = x_{ij}                   (1) b_j = y_j         where of course the number of equation doesn't take a all line space.


Prove that if $A$ is nonsingular, then the sequence $X_{k+1}=X_k+X_k(I-AX_k)$ converges to $A^{-1}$ if and only if $ρ(I-X_0A)<1$.

Prove that if $A$ is nonsingular, then the sequence $X_{k+1}=X_k+X_k(I-AX_k)$ where $A$ and $X_k$ are $n\times n$ matrices with $k=0,1,2,...$ converges to $A^{-1}$ if and only if $ρ(I-X_0A)<1$.  I'm really stuck on this problem. Any hints are greatly appreciated.


How are Expiry dates on UK passports written?

In my British Passport the expiry date is given as 08APR meaning 8th April. It is followed by AVR24 for year of expiry. What does the AVR24 stand for?


I´ve found the solution Apparently hostgator phpmyadmin doesn't have the UTF-8 header on it.  Recently I moved my web forum from a development local machine to a production server (Hostgator, shared), but something weird is going on, everytime we pump data out of the database and display it we get replacement characters in lieu of special Portuguese charcters (á, é, ê, ó, ç and so on), even though the database is set to use UTF-8 (on the database, tables, rows and connection). When we pass the same exact string to a mb_detect_encoding it says that it is a valid UTF-8 string.  The only thing that makes the data from the database display properly is to remove the <meta charset="utf8"> from the HTML, but then all the other special characters (from text that isn't from the database) gets garbled.  What the HTML is going on?  PHP 5.2 MySQL 5.5.30-30.2  About the posible duplicate question, I (personally, of course) don't think that it's a fit, because that other question assumes prior knowledge and work with text encoding.


With generations of multiple marriages and step children, how is this family relationship described?

I'm not sure is this is the right SE to ask but I'll ask non the less.  I'm trying to define a family relationship. I think the person is my step step first cousin once removed.  My my Grand-Father is his Step-Great-Grand-Father. My Mother and his Step-Grand-Father are Step-Brother/Sister.  This is also by marriage, not by blood line so is there another term for that?  [] = Male  () = Female  [F] = My Step-Uncle  [H] = His Step-Father  [H] + (I) = Currently married  [J] + (I) = J, divorced or passed away     (A)-+-[B]-----+-(C)        |         | [D]-+-(E)       [F]-+-(G)     |               |   [ME]             [H]-+-(I)-+-[J]                              |                            [Him]


How does the index of a javascript array work? Although object is in the array it shows a negative index

In the attached picture you can find the console of some basic operations in JS, yet I still don't understand how it is not able to identify the object index in the array. Could you please explain it? I am trying to drop an object from an array, whose index is not known. Thank you!


Difference between text-height and text-depth in tikz?

Here is from the manual (version 2.10, page 183):     This option works like text height, only for the depth of the text   box. This option is mostly useful when you need to ensure a uniform   depth of text boxes that need to be aligned.   It's not clear where the difference is.


Inequality involving $\left(1+\frac 1n \right)^n$

Given $n\in\Bbb{N}$, prove that     $$\left(1+\frac 1n\right)^n<\left(1+\frac 1{n+1}\right)^{n+1} ...(1)$$   I notice that this is approaching $e$ as $n$ approaching $+\infty$. Further more, I am asked to prove another similar inequality as following,     $$\left(1+\frac 1n\right)^{n+1}>\left(1+\frac 1{n+1}\right)^{n+2} ...(2)$$   I tried to use induction method to prove them but it seems like I got stuck. Solution and hints would be appreciated.


How to set MINIMUM number of required fields?

I need to set the minimum number of required values for several file fields in Drupal 7. I can only find options to make the field required or set a maximum number of allowed values. Is there any way to set the MINIMUM number of required values?


Let G be the group of 2*2 matrices [ a  b ; c  d] where a,b,c,d are integers modulo p, p is prime number, such that ad-bc≠0. G forms group under relative to matrix multiplication. What is o(G)? Let H be the subgroup of the G defined by H= { (a  b; c  d) €G | ad-bc=1} . What is order of H?  I got the direct formula for computation, but How can we get that relation or is there any simple way to do this??


When I woke up his morning, I had >80 GB of free space on my hard drive. Over the last four hours, in which I wasn't even around, something filled my hard drive completely. I would attach a screenshot, but there isn't even room to save one.   I'm currently looking at around 210GB of 'other' on my 250GB HD - and I have no idea where it came from. It's always been fairly stable until today.   I am, of course, deleting everything I can afford to, but unless someone knows of something huge I can nuke where 'other' is, I don't think I'll be able to get it down to a manageable size.  I have a Time Machine backup. If I restore to it, will it also contain this huge amount of 'other'? Or is there a better option?


Split string between curly braces in cpp

Help me to split these kind of string :  Example:  string to split : "{'day': 1, 'count': 100}, {'day': 2, 'count': 100}"  expected output : [ {'day': 1, 'count': 100}, {'day': 2, 'count': 100} ]  using namespace std;; #include<string> #include<regex> #include<iostream> int main() {   string s1("{asd, dsf},{fsdfsdf, sdff}");   regex e("/{([^}]*)}/");    cout << s1 << std::endl;    sregex_iterator iter(s1.begin(), s1.end(), e);   sregex_iterator end;    while(iter != end)   {     cout << (*iter)[i] << std::endl'     ++iter;   }  }   this code fails for regex mentioned in the


How to download packages from a command-line given repository?

It is not about the common download & install thing, what apt (aptitude, etc) does, it is a scripted download a package file.  I found the dget tool for this task, which works quite well. But, unfortunately, it doesn't have any option to specify a different repository URL as it is given in the /etc/apt/sources.list.  Is it somehow possible? Actually, a dget-like functionality would be the best, but where I can also specify the repo URL.    P.s. thank you very much the scripts, but I would like to prefer a debian tool for this very simple task. It will be part of a buildscript, for external usage, and any unneeded complexity has intolerable collateral costs. It must be done by a debian tool.  P.s.2. Finally I solved this with updating the system-wide repos, and downloading the packages with dget. Thank you very much the scripts!


Baking displacement map with Cycles Experimental

I want to bake some displacement maps for Unity Engine. I want to use Cycles renderer. I have read that it's only available in Experimental version of Cycles, but when I changed Cycles to Experimental version there isn't baking type for Displacement map, there are UV, Normals, Shadows etc. but there isn't any Displacement/Depth map choice. I have Blender 2.78a (2016-10-24) downloaded yesterday. Where can I find this option or how can I enable it?


So I want to open a text file, with characters like 'á', 'é' etc... For example, there's the text: Sárgarépa csík  And in the Tkinter textbox it appears like: SĂˇrgarĂ©pa csĂk  Minimal example: import tkinter as tk  root = tk.Tk()  text = tk.Text(root) text.pack() text.insert("end", "Sárgarépa csík")  root.mainloop()  Edit: I know the encoding of the text file, but can't read it


I have tried to move windows control buttons using gconf-editor.  It worked partially; Now when windows are not maximied X/Minimize/Maximize buttons are on the right side, but as soon as the windows are maximized it goes back to right. What should I do?  Thanks


I'm trying to code a system to determine the type of a weapon and the damage of the weapon for a video game. I'm trying to instantiate two weapons with different stats, but when I use the method getType();, they return the same thing.  I tried using an ArrayList, but grabbing the type of the weapon from something such as (arraylist name here).get(0).getType(); and (arraylist name here).get(1).getType(); still return "AK-47".  ArrayList<Weapon> weapons = new ArrayList<Weapon>();         Weapon weapon = new Weapon("Desert Eagle", 5);         Weapon weapon2 = new Weapon("AK-47", 3);          weapons.add(weapon);         weapons.add(weapon2);          System.out.println(weapon.getType());         System.out.println(weapon2.getType());   Methods:  public class Weapon {     static String type;     static int damage;      public Weapon(String type, int damage) {         Weapon.type = type;         Weapon.damage = damage;     }      public static String getType() {         return type;     }  }   I want weapon.getType(); to return "Desert Eagle" and weapon2.getType(); to return "AK-47".  I know it should be a simple answer, but I'm probably just over-complicating this for myself haha. Any help is appreciated, thanks!


Brightness level starts at maximum on every boot

I am using Ubuntu 14.04 and I want to save my brightness level, because every time I start the computer the brightness level is at maximum.  $ ls -l /sys/class/backlight total 0 lrwxrwxrwx 1 root root 0 Mai 4 06:50 acpi_video0 -> ../../devices/pci0000:00/0000:00:02.0/backlight/acpi_video0 lrwxrwxrwx 1 root root 0 Mai 4 06:50 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight


If I run the code below, the Polish L in "Wesolowski" is not typesetting. To remedy this, I'm trying to define a command to typeset the Polish L. In the code below I've defined the command in this line:   \newcommand{\PolishL}{l\llap{\raise0.2em \hbox{\tiny\slash}\kern-0.05em}}   But this command is still not typesetting the Polish "L"  Alternatively, is there a way to typeset the Polish L without having to define a command?  \documentclass{article}  \usepackage{alltt} % Paper size, default font size and one-sided paperR  \usepackage{nameref}  \usepackage{array} \usepackage{booktabs} \usepackage{tabularx}  \usepackage{csquotes}  \usepackage{etex}  \usepackage{lmodern}  \usepackage{caption} \captionsetup[table]{position=below}  \usepackage{placeins} % to control figure placement with \FloatBarrier  \usepackage{fontspec} \setmainfont{Lucida Sans}  %%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\PolishL}{l\llap{\raise0.2em \hbox{\tiny\slash}\kern-0.05em}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%  % biblatex---------------------------------------------------------------------------------------- \usepackage[style=authoryear-comp, maxcitenames=2, maxbibnames=99, uniquename=false, uniquelist=false,firstinits=true,sorting=nyt]{biblatex} \DeclareNameAlias{sortname}{last-first} \DeclareNameAlias{default}{last-first}  \usepackage{xpatch}  % No dot before number of articles \xpatchbibmacro{volume+number+eid}{%   \setunit*{\adddot}% }{% }{}{}  % Number of articles in parentheses \DeclareFieldFormat[article]{number}{\mkbibparens{#1}}  \renewbibmacro{in:}{}  \addbibresource{refs.bib} \bibliography{refs}   \addbibresource{\jobname.bib}  \usepackage{filecontents} \begin{filecontents}{\jobname.bib}  @incollection{WesolowskiFuller2012,   title={Spatial variation and temporal shifts in habitat use by birds at the European scale},   author={Weso{\PolishL}owski, Tomasz},   editor={Fuller, Robert J},   booktitle={Birds and Habitat: Relationships in Changing Landscapes},   publisher={Cambridge University Press},   address={Cambridge},   year={2012} }  \end{filecontents} \begin{document}      Some text \autocite{WesolowskiFuller2012}  \printbibliography  \end{document}


Google research console ''Page is not mobile friendly''

I have recently created portfolio website for myself, using WordPress. However after adding it to google console. It says that my website isn't mobile friendly. However, clearly when you go to the website on a mobile device, it works perfectly.  I'm a beginner in terms of web dev. I hope there is an east fix. Thank you all for your help. Website: Danielgola.com GSC screenshot.


Unable to format USB: mkfs.vfat: unable to discover size of

This question is not a duplicate. I followed the thread showing how to format usb but it didn't help (see below for details). Please also read the comments section  I tried to follow  thread to format my USB drive. However, sudo mkfs.vfat /dev/sdb1 still produces the following error.   mkfs.fat 4.1 (2017-01-24) mkfs.vfat: unable to discover size of /dev/sdb1   The size of USB pendrive seems to be incorrect:  $ lsblk NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT --truncated-- sdb      8:16   1   7.2G  0 disk  └─sdb1   8:17   1   239M  0 part    As you can see, the USB has size of 7,2G but there is one partition of size 239M.  I also tried wipefs -a /dev/sdb to erase all the partitions in USB thumb. Still, no luck.  Neither sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1  or sudo dd if=/dev/zero of=/dev/sdb bs=512 has worked as I'm still getting mkfs.vfat: unable to discover size of /dev/sdb1.


Prove a certain condition is satisfied by all non-abelian groups

How can I prove following problem in abstract algebra?      Let $G$ is a finite non-abelian group. show that there exist elements $a,g,h\in G$ such that $g\neq h, h=aga^{-1}$ and $gh=hg$.   Please help me. Thanks in advance.


pdf of a member of a sequence of dependent random variables

I would very much appreciate a hint for the following problem  Let $\left(X_n\right)_{n=1}^\infty$ be a sequence of random variables s.t.: $$X_1 \sim U_{[0,1]}$$ and for all $n>1$: $$X_n \sim U_{[0,X_{n-1}]}.$$ Give a general expression for $f_{X_n}$ the pdf of $X_n$.  Thanks


Consider the numbers of the form $$ a_n=\lfloor\pi\times 10^{n-1}  \rfloor, $$ for $n\in\mathbb{N}$. In other words, $\{a_n\}_{n\in\mathbb{N}}$ is the sequence composed of integers built from the first $n$ digits of $\pi$, so that $$ a_1=3,\,\,\,a_2=31,\,\,\,a_3=314,\,\,\,a_4=3141,\,\,\,a_5=31415,\,\,\,... $$ My question is: for which values of $n$ is $a_n$ a prime number?  I wrote a small code to find primes for $1\leq n\leq 10^4$, and I've only found primes for $n\in\{1,2,6,38\}$, which are, respectively, \begin{align} a_1&=3\\ a_2&=31\\ a_6&=314159\\ a_{38}&=31415926535897932384626433832795028841 \end{align} I found this result rather intriguing, since I'd expect to find more primes up to numbers with $10^4$ digits. Are there any more primes in this sequence? Is there an explanation for the lack of primes between $a_{38}$ and $a_{10^4}$?


Convergence of a series with alternating denominator - Real Analysis

Decide if the series converges absolutely, conditionally, or not at all. \begin{equation} \sum_{n=1}^{\infty}\frac{(-1)^n}{(2+(-1)^n)n} \end{equation}  I'm having a lot of trouble with this one. I know the even terms will be of the form $\frac{1}{3n}$ and the odd terms of the form $-\frac{1}{n}$ but I'm not really sure how I can use that to prove convergence. Any hints would be greatly appreciated.


I was trying to create a low poly model and the shadows on her hair look pretty bad. They look fine on the rest of the body. I'm sure it's a modeling error on my end, but I'm not really sure what I'm doing wrong.  Here is an image:  Here is the blend file:   Any advice or help would be appreciated.


clear full-screen in script and get the previous prompts after exiting script

Today I was using glance tool in my office to monitor CPU utilization.When I run glance from terminal ,the command clears the screen and after all the work when I quit back to the terminal,the previous prompts are still there on my screen.I mean that I can see all the previous lines.My question is how is this effect of clearing screen achieved.If they had used command like clear,It should have cleared the whole screen,how did they manage to get back all the previous prompts ? I want to implement the same feature for some of my scripts.  Similarly when using vi command ,the screen is fully occupied and after exiting,we are able to view previous prompts as well.


Word meaning coincidence of reference to the unusual

Most of us have had the experience of stumbling over a new fact or bit of knowledge and then finding several more references to it in the near future.  For example, you see a strange word which you're forced to look-up and then the next day the same word appears in the headline of your local paper.  There's a term for this phenomenon but I've been unable to track it down.  Can anyone help?


Why doesn't a bike/bicycle fall if going with a high speed?

Why does a bike/bicycle fall when its speed is very low or close to zero and is balanced when going with a high speed?


Given that 𝑎 and 𝑏 are positive integers with $𝑎\mid𝑏$, how would one prove that $\gcd(𝑎, 𝑏) = 𝑎$?

I'm having trouble showing that if 𝑎 and 𝑏 are positive integers with 𝑎|𝑏, then 𝑔𝑐𝑑(𝑎, 𝑏) = a. I'm aware that the greatest common divisor of two numbers is the largest number that is a divisor of both numbers. Ex) $\gcd(4,2) = 2 $. But in this case $a=4$ and $b=2$ so the expression above would not work. I suppose what I'm asking is if variable $a$ is always the smallest of the two numbers given. Note  I now realize that I should have given the problem some more thought before posting on here. I had been overlooking the 𝑎|𝑏 portion of the expression. Thank you for the help!


This is on an S7 Edge.  I do not have this phone in my possession.  This is from a screen shot of a text they sent.  This "fish" icon was in the notification bar at the top left. I have searched in reverse image and cannot get an app name.  Does anyone recognize this icon?   Thank you


Google Play Store gives error "No Connection"

I have an HTC Desire HD. I am having trouble connecting to the Google Play Store. Every time I try to connect it just come up with an error "NO CONNECTION". I really want to download some apps (in particular Words With Friends). I know I am connected to the Internet; I can access my mail and Facebook, etc.   I have uninstalled Play Store and re-installed it but no luck!  How can I fix this?


Trying to solve this task by solving the recurrence   g(0)=1 g(n)=2*g(n-1), if n is odd g(n)=g(n-1)+1, if n is even   I tried to use plug and chug method to expand the pattern, but I failed. Either with the generating function. Could you please drop a hint for me?


Is publishing in open access journal a good impression?

Is publishing in open access journal a good impression ? I mean publishing in such journals (where one has to pay money), will it be valuable compared to other journals ?


Generic battery advice for Sony's NP-FW50

I bought a new battery for my camera assuming that it would be enough to be compatible, in Sony terms "NP-FW50". Though I think the generic is better than the original:   Generic: 7.4V, 1950mAh, 14.4Wh Original: 7.2V, 1020mAh, 7.3Wh   I believe higher mAh means it holds more power for longer.  So, is the generic better than the original? Or am I completely missing the point?


How to make an item only break certain blocks after applying the enchantment and unbreakable parts of the command?

My command is   give @p stone_pickaxe 1 0 {     display:{         Name:"Level 1 Pickaxe",         Lore:["A basic pickaxe."]     },     ench:[{         id:32,lvl:1     }],     Unbreakable:1 } {     CanDestroy:["minecraft:stone","minecraft:stonebrick"] }   How would i add the next part? (only allowed to break stone blocks)


Strange equality error with PyMongo-flask

So I have this api endpoint:  @app.route("/subject", methods=["GET"]) def GET_subject():     subject = request.args["subject"]     page = int(request.args["page"])      pagesize = 10     subjectResults = db.subject.find()[pagesize*(page-1):pagesize*(page)]     if subjectResults is "[]":         return json.dumps({"page": page, "subject": subject, "subjectResults": bson.json_util.dumps(subjectResults)})     else:         return json.dumps({"error": "404"})   and when I run it, with no data in the database, it returns the error 404 message I put in. As you can tell, I'm using Flask and Flask-PyMongo for this.


Traveling with 2 transfers in Schengen area

I was wondering if someone could help me out with the following question. I bought a ticket New York - Zurich - Vienna - Lviv (Ukraine). I read online on Swiss immigration website the following information (actually your website states the same):  If you a a permanent resident of the United States (which is my case), you can travel through Schengen airports (I read specifically about Swiss airports) without transit visa, regardless of your citizenship.  I am a Ukranian but I have the old non-biometric passport, which still should have been fine, since as a US permanent resident, I can travel through Swiss airports without a transfer visa (I don't have to leave the Schengen zone inside the airport.  In New York airport, I was denied boarding. I spoke with 2 supervisors and they all said the same: if you are doing 2 transfers in the Schengen zone, you have to have a transit visa, with no exemptions. I showed them 2 websites including the Swiss immigration and was told it's not the information they would acknowledge.  I still think I was right and that exemption rules should apply to me. I ended up buying another ticket and missing Christmas dinner with my family. Anyone with any suggestions, please help!


SharePoint 2013 workflow canceled with a strange error

I have created a workflow in sharepoint designer 2013. This workflow is a list workflow. When I create a new item in this list, the workflow starts automatically. But I can also start the workflow manually. When the workflow starts and I go to the workflow status, I can see that it is canceled. When I go to the error I see this message:     RequestorId: a5c1657a-aaa8-640e-b588-cbefd361c14b. Details:   System.ApplicationException: HTTP 401   {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPRequestGuid":["a5c1657a-aaa8-640e-b588-cbefd361c14b"],"request-id":["a5c1657a-aaa8-640e-b588-cbefd361c14b"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;   RequireReadOnly"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"Cache-Control":["max-age=0,   private"],"Date":["Fri, 31 Jan 2014 11:17:27   GMT"],"Set-Cookie":["WSS_KeepSessionAuthenticated={95337939-7514-4a90-952f-54611a074606};   path=/"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}      at   Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext   context)    at   System.Activities.CodeActivity.InternalExecute(ActivityInstance   instance, ActivityExecutor executor, BookmarkManager bookmarkManager)    at   System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor   executor, BookmarkManager bookmarkManager, Location resultLocation)   Does someone know what is going wrong? I created a new workflow with just 1 simple activity. It also gives this error. So it is not something in the workflow.  UPDATE  I logged in on my dev machine with another user (not the farm admin). Now I got another error (http 500). When I change the workflow with some activity which is changing some column value in the list item it works fine without any errors. When I add an email activity I got this 500 error.  RequestorId: a0caad2f-0745-2d96-327a-071967e2548d. Details: System.ApplicationException: HTTP 500 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["319"],"SPRequestGuid":["a0caad2f-0745-2d96-327a-071967e2548d"],"request-id":["a0caad2f-0745-2d96-327a-071967e2548d"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"Cache-Control":["max-age=0, private"],"Date":["Fri, 31 Jan 2014 15:13:28 GMT"],"Set-Cookie":["WSS_KeepSessionAuthenticated={95337939-7514-4a90-952f-54611a074606}; path=/"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem  ps. I have check the user profile service application and did a full sync. It doesnt help.


Can't silence a pdftex "PDF inclusion: multiple PDFs with page group" error

I am having an issue with PDFs generatied in Inkscape. If multiple files generated in this way are included on a single page I get the following error:  pdfTeX warning: pdflatex.exe (file <FILENAME>.pdf): PDF inclusion: multiple pdfs with page group included in a single page>]   This seems to be a known bug in TeX and has been discussed here:   Rather than running all my PDFs twice through ghostscript I would like to address this by using silence to surpress the warnings however I am unable to create a warning filter which works.  I have tried \WarningFilter{pdflatex}{PDF inclusion} and various permutations however this does not work. I believe this is due to the file name being placed at the start of the error.   The silence manual states that it is better to use the \WarningFilter* option and to find the process that generates the error message in the .sty files. Since pdfTeX is not a package it does not (to the best of my knowledge) have a .sty file. I cannot work out which file contains the scripts for generating the errors and thus have not been able to create a function filter.  Does anyone know which file (Windows MiKTeX based distribution) generates these errors or how to make a working filter in this case?


Example of a group with non equal coset for a fixed element

Could anyone give me example of the following?  A group $G$, a subgroup $H$, $a$ is a fixed element in $G$, such that $aH$ is a proper subset of $Ha$ and $aH \neq Ha$.


In Ubuntu 16.04 each workspace had a separate 'application space' as it were.  That is, when you were on workspace 1 you could only loop through applications on that workspace.  So I could have, for example, one Firefox instance on workspace 1 and another on workspace 2.  If I was on workspace 1, I could only loop through Firefox instances on that workspace.  But now, in Ubuntu 18.04, there is no such separation: looping through applications on one workspace could suddenly whisk me away to another workspace.  Is there any way to recover this separation of workspaces from Ubuntu 16.04 in 18.04?


Does a set of eigenvalues in QM correspond to a random variable in statistics?

In quantum mechanics the possible outcomes of a measurement of a quantity corresponding to a linear hermitian operator $A$ are only the eigenvalues $a_i$ of $A$ (see e.g. ). The expectation value of $A$ is computed as $$ \langle A \rangle_\psi = \sum_j a_j |\langle \psi | \phi_j \rangle|^2 $$ where $|\langle \psi | \phi_j \rangle|^2$ is called the transition probability (see ).  In statistics a random variable $X$ is said to be a set of possible values $x_i$ from a random experiment (see e.g. ). The expected value of $X$ is computed as $$ \operatorname{E}[X] = \sum_{i=1}^\infty x_i\, p_i, $$ where $p_i$ are the probabilities of the $x_i$ (see ).   So can one say, that the set of expectation values $\{a_j\}$ with transition probabilities $|\langle \psi | \phi_j \rangle|^2$ in QM corresponds to a random variable $X = \{x_i\}$ with probabilities $p_i$ in statistics?


I want evaluate this $\lim_{(x,y)\rightarrow (0,0)}\dfrac{xy^3}{x^2+y^4}$. I tried polar coordinates and I got this $$\lim_{r\rightarrow 0^+}\dfrac{r^2\cos\theta \sin^3\theta}{\cos^2\theta+r^2\sin^4\theta}$$  I would like to show that $\dfrac{\cos\theta \sin^3\theta}{\cos^2\theta+r^2\sin^4\theta}$ is bounded, but I was not able to do that. Any hint?


How to replace a line voltage thermostat with a low voltage one?

I have one of those round mechanical knob thermostats (line voltage). I would like to replace it with a wireless thermostat which is controllable from an Android phone. It seems those thermostats are based on 24v voltage.  What are my options to be able to use a wireless thermostat?


How to add GNOME Shell dash folders to the launcher dock

It is possible to group applications in GNOME Shell dash into folders. But I couldn't figure out how to add these dash folders to the GNOME Shell dock (launcher). I wonder if there is a way to do this.


Use Different port for Different IP bind

I am using bind for internal networking it is working good,  now I am a another requirement.  bind9 resolving the domain myweb.example.com from ip 192.168.1.1 port 80  now I want to resolve domain myweb.example.com:82 from 192.168.1.2:82.  is that possible?


How has RoS changed Diablo 3's legendary drop rate?

It seems like the legendary/set drop rates have gone crazy since:   The auction houses closed and   The Reaper of Souls update.    seem way out of date now.  Does anyone have some solid numbers on how they have changed?


backpacking on ESTA VWP for 75 days a problem at border crossing?

I want to go to the US for 2.5 months and I'm a little scared I will have difficulty getting in because it's for so long. I'm going to backpack and stay with friends, i have two inland flights as well, will spend two weeks in 4 different cities and then i want to go for a hike, maybe rent a car. I'm a student but I don't have employment because of that. has anyone travelled there for so long and experienced any problems? I'm female, white and from germany.. also don't know how much money I will have to proof. any experience would be appreciated


Why does my wildcard SSL certificate cause a domain mismatch error on a second level subdomain?

I have a server https://www.groups.example.com - in FireFox I get the "This Connection is Untrusted" message and the "technical details" say  www.groups.example.com uses an invalid security certificate.  The certificate is only valid for the following names:  *.example.com, example.com (Error code: ssl_error_bad_cert_domain)   What other info do I need to provide in order to resolve this? Just getting confirmation of setup but am 99% sure it's Linux and using VHOSTS. Will update question as soon as this is confirmed.  Is it the fact that www.groups.example.com is seen as having 2 levels of subdomains?  The issuer is DigiCert


Moderator name appears twice on deleted post

I just saw a post (deleted)  which was deleted by  but is shown as:   deleted by Charles, Gordon♦, Gordon♦ 1 min ago   How is it that one person (whether a mod or not) can vote twice on the same post?


What's the relationship between CPU, RAM and performance?

I have an HP EliteBook Folio 9470m with an Intel Core i5 processor at 1.9GHz and 4GB RAM.  Is it useful to buy an additional 4GB RAM memory with this CPU? Or would the extra RAM be wasted from a performance standpoint?


Can we run selenium tests without using Webdriver interface in your code?

I tried to run Selenium test without using Webdriver interface in my code. the code is working as expected without any issues.  System.setProperty("webdriver.chrome.driver", "C://Java learning//Selenium//Drivers//chromedriver.exe");  ChromeDriver driver = new ChromeDriver();  driver.manage().window().maximize();  driver.manage().deleteAllCookies();  driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS);  driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);  driver.get("https://ui.freecrm.com/");  WebElement loginbtn = driver.findElement(By.xpath("//div[@class='ui fluid large blue submit button']"));  driver.executeScript("arguments[0].click()",loginbtn);   I am wondering how this worked fine without using Webdriver interface.I would like to know what is the difference between using webdriver and without using Webdriver ? I observed that FindElement method have return type as WebElement-Remotewebdriver. But when i used Webdriver interface,i observed that FindElement method have return type as WebElement-Webdriver. I would like to know if we do not use Webdriver, all the methods will be executed somewhere but not in local machine.


Prove that an entire function with modulus bounded from below by a polynomial is a polynomial itself.

Suppose $f$ is an entire function and that $\exists k > 0, R > 0$ and $n \in \mathbb{N}$ such that $|f(z)| > k|z|^n$ whenever $|z| > R$. Prove that $f$ is a polynomial.  I am not sure how to go about this and I would greatly appreciate some hints.


Insert title of table of contents into toc

I have a little bit of problem. I have to put the title of toc into toc. I've used the following code to do that and it works for me, kind of. The problem is in the title is aligned with the titles of the chapters and not with list of figures etc.  { \makeatletter \let\@oldstarttoc\@starttoc \renewcommand{\@starttoc}{%   \addcontentsline{toc}{chapter}{\protect\numberline{}\contentsname}% Add ToC to ToC   \@oldstarttoc } \tableofcontents \makeatother }   Here is the picture of my toc.    My idea is to use the same code for  Acknowledgements, Lists of... , Abbreviations etc. Is it ok to try that or there is an alternative?


Headings not correct with book double sided

After finishing my thesis in one sided book, I switched it to double sided and latex added extra pages such that chapters always start on even pages. See code below; However with contents for example, the first two pages show the correct header which is 'Contents' then the next and extra page which Latex adds shows the heading 'List of Figures' of the next chapter (see image below).    \addcontentsline{toc}{chapter}{Contents} \lhead{\emph{Contents}} \tableofcontents  % list of figures \addcontentsline{toc}{chapter}{List of Figures} \lhead{\emph{List of Figures}} \listoffigures  % list of tables \addcontentsline{toc}{chapter}{List of Tables} \lhead{\emph{List of Tables}} \listoftables   This is part of my preamble \documentclass[12pt,a4paper,twoside]{book} \usepackage{fancyhdr}


I'm new to this very interesting world of mathematics, and I'm trying to learn some linear algebra from Khan academy.  In the world of vector spaces and fields, I keep coming across the definition of $\mathbb R^2$ as a vector space ontop of the field $\mathbb R$.   This makes me think, Why can't $\mathbb R^2$ be a field of its own?  Would that make $\mathbb R^2$ a field and a vector space?  Thanks


How can a photon (which has momentum) from one electrically charged particle to an oppositely charged particle cause these particles to be pulled toward each other - or how can a magnetic field cause an electrically charged moving particle to experience a force perpendicular to the source of the magnetic field if a particle with a non-zero mass moving between the two is the mediator of that force?


Let $g:\mathbb{R}\to\mathbb{R}$ be a measurable function such that $g(x+y) =g(x)+g(y).$ Then $g(x) = g(1)x$ .

Let $g:\mathbb{R}\to\mathbb{R}$ be a measurable function such that    $$g(x+y) =g(x)+g(y).$$   How to prove that $g(x) = cx$ for some $c\in \mathbb{R}?$     The main thing to do here relies upon the fact that such function should be continuous and therefore by natural argument the answer will follow.  Using this    Therefore I found out that there is nothing missing in this question.


I finished writing my internship report for a master degree. Now I am writing its abstract. Is it possible to mention a statistic study on the abstract and reference it in the bibliography or is this something bad to do ?


Can I correct an error on a visa application?

I am applying for an EEA national permanent visa and the planned date of arrival is not correct on the application form submitted. Am I able to cross it out and write in the new one? I am from Spain and submitted the application to the British Embassy.


I bought a Repco Warrior 29 mountain bike 3 months ago. The back tyre is now almost bald and needs to be replaced. Because of where I live there are no bike shops, so I can't buy tyres here and will have to order them from overseas.  My problem is that 3 months seems a short time to have to replace tyres (although it does see a lot of miles since I use it a lot). I don't ride offroad, and I'm wondering if that's part of the issue with the rapid wear.  Before I order any tyres, can anyone tell me through experience if it's a good idea (or even possible) to put road tyres on my mountain bike. Are there any pro's and cons to it? Should I replace both tyres or just the back one?  Update:- I now have my new tyres, ordered brake pads as well, and immediately noticed the smoother, easier, quieter ride on the way home (about an hour) Cheers all for the advice.


EDIT:  Object result = JSON.deserializeUntyped(payload);  if (result instanceof Map<String, Object>) {     Map<String, Object> resultMap = (Map<String, Object>)result;     system.debug('result: ' + resultMap.get('records')); //returns null }   //END EDIT  How to loop through the nested json key/value for an example how can I get the values for this attributes Records==>attributes==>url or Metadata=>formula  APEX Code:  String payload = '.... json...' Map<String, Object> jsonMap = (Map<String, Object>)JSON.deserializeUntyped(payload);       List<Object> records = (List<Object>) jsonMap.get('records'); //get the records if (records != null) {     for (Object r : records) {         //for (string r2 : r.get('url')) {  //error incorrect signature              system.debug(r.value);         //}     } } else {     system.debug('null.. : ' + records); }   JSON  {   "size": 1,   "totalSize": 1,   "done": true,   "queryLocator": null,   "entityTypeName": "CustomField",   "records": [     {       "attributes": {         "type": "CustomField",         "url": "/services/data/v46.0/tooling/sobjects/CustomField/00N6g00000TAlZNEA1"       },       "Metadata": {         "businessOwnerGroup": null,         "businessOwnerUser": null,         "formula": "IMAGE( \nCASE(Rating__c, \n\"Very Bad\", \"/img/samples/stars_100.gif\",\n\"Bad\", \"/img/samples/stars_200.gif\",\n\"Okay\", \"/img/samples/stars_300.gif\", \n\"Good\", \"/img/samples/stars_400.gif\", \n\"Very Good\", \"/img/samples/stars_500.gif\", \n\"/img/samples/stars_000.gif\"), \n\"rating\")",         "formulaTreatBlanksAs": "BlankAsZero"       }     }   ] }


Broken image URL on "Improved Question Merging"

When browsing on mobile, clicking on one of the images for the "" blog post leads to a dead link.    Clicking this image leads to a 404 with the following URL.


Cant download a file from Google Cloud Storage using Java API

I am trying to download atext file by usig Google Cloud Storage Java API as follow:  The file is located at "gs://bucket_name/dir/file.json  I am using below codes  bucket_name="name_of_bucket", Storage storage = StorageOptions.getDefaultInstance().getService(); Blob blob = storage.get(BlobId.of(bucket_name, "dir/file.jason")); //ReadChannel r = blob.reader(); return blob.toString();   However, whenever I using my code I get below exception:  Exception in thread "main" java.lang.NullPointerException         at com.mahdi.handlers.GCSHandler.readJsonFile(GCSHandler.java:30)         at com.mahdi.handlers.GCSHandler.main(GCSHandler.java:37)    I am not sure if I am giving right parameter for Bucket_Name and OBJECT_NAME in below line:   Blob blob = storage.get(BlobId.of(bucketName, "dir/file.json"));