body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
To my understanding, a model in Model Theory is an interpretation (in a form of a set or other algebraic structures) for a certain sentence S which makes S true. In everyday language, and also in other branches of science (physics, computer science, biology, ...), model means a formal language used to give an abstract description of phenomena, highlighting only the details we care about for the current analysis. So, how do these two concepts relate to each other? Since we use the same word, I figured that there may be a connection which could make my understanding of these concepts deeper. In particular, I wonder why we use the world "model" in the "common sense" instead of language, abstract language, formalism, etc.
A $\vDash $B can be read in words as: A entails B B is a semantic consequence of A A models B The first two are fine. But the third one seems a bit counter-intuitive to me. Somehow, I can't reconcile the term 'model' (used colloquially) with the notion of entailment or consequence. Why do mathematicians and logicians use the term 'model' in such contexts? How is the term associated with the idea of entailment? And even more bizarre to me is the use of the $\vDash$ symbol in different contexts. For example, let A be an assignment, and F is an atomic formula. So that A $\vDash$ F (again, read as A 'models' F) means that A assigns a truth value of 1 to F. Again, this is counter-intuitive, and often had me wondering: "what is the underlying concept or idea behind it?"
Following on from the title, can someone suggest how to proceed with this one. $$A=\begin{bmatrix}1&1\\4&1\end{bmatrix}$$ and $$v = [4 \; 4]^T?$$
Let $A= \pmatrix{1&4\\ 3&2}$. Find $A^{1000}$. Does this problem have to do with eigenvalues or is there another formula that is specific to 2x2 matrices?
I'm trying to mount this light on the exterior of a house, but it doesn't cover the hole like the existing lights do. In some places there's an existing light that's mounted directly to a junction box, and in others, I'm installing a light for the first time. How should a light like this be mounted in a way that's up to code and prevents water from entering the house?
I'm considering replacing an outdoor lighting fixture with an LED motion-sensitive fixture, but I'm not sure how to safely do the wiring. The location is protected (under a porch) but still needs to be weatherproof. Here's the existing fixture and mount: The obvious replacement would be another lamp that included its own box cover, so that its wiring would be covered and protected. But, the fixture I like doesn't include such a cover: You can see it's meant to be screwed into the wall, but doesn't cover anything. The power cable ends with bare wires which are meant to be wire-nutted to the supply wiring, probably inside a junction box. But, how do I get the wire safely into the junction box while keeping things weatherproof? One option would be to replace the lamp's power cable with one ending in a grounded plug, and install a weatherproof outlet box. But that's ugly and complex. Are there weatherproof junction box covers that include provisions for sealed entry of cables?
I am trying to figure out why my Remove method is returning a NullPointerException. I have tested it against numerous scenarios and it seems to be working fine for the most part, but when I tested it against my professors code, I get a NullPointerException: Against my Driver (this is the output): List: Hamadi, Salisu, Galo, Ballo, 4 Replacing Galo with Abdullahi List: Hamadi, Salisu, Abdullahi, Ballo, Removing Salisu from the list List: Hamadi, Abdullahi, Ballo, List: 65, 21, 42, Removing 65 from the list List: 21, 42, List: 1, 3, Removing 1 from the list List: 3, List: 25, 3, All works well until I test the code for my remove method (see below for the method) against my mentors code: /** Remove a node at the specified index and return its data element. * @param index The index of the element to remove * @return The data element removed * @throws IndexOutOfBoundsException If index is outside the bounds of the list * */ public E remove(int index) { // TODO: Implement this method if (index < 0 || index >= size() || size() == 0) { throw new IndexOutOfBoundsException("Nodes are not within the array"); } int i = 0; LLNode<E> currentNode = head.next; while (i < size) { if (i == index) { System.out.println("Removing " + currentNode.data + " from the list"); currentNode.next.prev = currentNode.prev; currentNode.prev.next = currentNode.next; size--; return currentNode.data; } currentNode = currentNode.next; i++; } return null; } Currently, the way I have implemented the removal of a node is to have the node that is being removedfor it's next node to point to the previous node of the removed node and vice versa. Any input would be greatly appreciated on what I can do to further improve my remove method to prevent (and circumvent) any possible NullExceptionErrors. Thanks!
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
Unfortunately, my passport had suffered water damage during my stay in the US because of which I had to apply and get a new one. Since my old passport contains a valid US visa, the indian embassy stamped "Passport CANCELLED. Valid visa within this passport NOT CANCELLED" on the biographical information pages and sent back both the passports to my address. I'm supposed to carry both the old and new passport along with me whenever I travel in and out of the US. Is there anything I should be worried about while re-entry? Please help with your suggestions.
I got my US B1 visa last month on my Indian passport. Someone in my family wrote a phone number on one of the blank page of my passport. As my passport is damaged now, can I travel with my current passport to US or I should apply for new passport? Also, will B1 visa be valid on old damaged passport if I get new passport?
Please do not mark this as a duplicate because I could not find any answers on the other pages I dismissed him and told him to go to sanctuary while on the mission to destroy the institute i did this because I had Nick after i did this I could not find him anywhere and I'm on console so I cant use the moveto Command
I recently dismissed Dogmeat in favor of Codsworth, and I'm fairly sure I sent him to Sanctuary Hills. However, I've had a fairly detailed look around the place and I haven't found him yet. Does anyone know where he is?
Please, help! By pressing the button, parameter 0 is always transmitted. MainActivity.class this.listResult.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { dbResult.read(RssActivity.this); RssData rssData = dbResult.select(id); Toast.makeText(getBaseContext(), valueOf(id), Toast.LENGTH_SHORT).show(); DataBase public class DBResult { ... SQLiteDatabase database; public DBResult(Context context){ DBResult.ResultOpenHelper openHelper = new DBResult.ResultOpenHelper(context); database = openHelper.getWritableDatabase(); } public long insert(RssData rssData) { ContentValues cv = new ContentValues(); cv.put(RSS_NAME, rssData.getRssName()); cv.put(RSS_TITLE, rssData.getTitle()); cv.put(RSS_LINK, rssData.getLink()); cv.put(RSS_DESCRIPTION, rssData.getDescription()); return database.insert(TABLE_NAME, null, cv); } public int update(RssData rssData){ ... } public RssData select(long id){ Cursor cursor = database.query(TABLE_NAME,null, RSS_ID + " = ?", new String[]{String.valueOf(id)}, null, null, RSS_ID); if (cursor.moveToFirst()){ String rssName = cursor.getString(NUM_RSS_NAME); String title = cursor.getString(NUM_RSS_TITLE); String link = cursor.getString(NUM_RSS_LINK); String description = cursor.getString(NUM_RSS_DESCRIPTION); new RssData (id, rssName, title, link, description);} while (cursor.moveToNext()); return null; } ... private class ResultOpenHelper extends SQLiteOpenHelper { public ResultOpenHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { database=db; String sql = "CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " (" + RSS_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " + RSS_NAME + " TEXT, " + RSS_TITLE + " TEXT, " + RSS_DESCRIPTION + " TEXT, " + RSS_LINK + " TEXT ); "; db.execSQL(sql); } ... } What am I doing wrong? I need to get a link to open it in WebView. ERROR: "on a null object reference" I will be very grateful for any help! Thank you in advance!
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
I've just downloaded Pokemon GO on my iPod 5 and it keeps telling me in the app "GPS signal not found." Does this mean that I can't play the game without the wi-fi at my house? Also I'm pretty sure that my iPod 5 doesn't have a GPS system built into it so does that mean I can't play Pokemon GO? Because my iPod doesn't have mobile data does that mean I can't play it outside like I am supposed to?
Long story short, I have an iPod 5, and I've been excited for this game for about a year now. I keep getting a GPS signal not found. Can I play under wifi or some sort of cellular data?
Why "" not "two-elements Boolean algebra"? The number of elements (two) is plural, but the word "element" is singular. This looks like a discrepancy for me.
Why are year, pound and mile in the singular form in the phrases below? five-year-old children 20 pound note 10 mile run Is that because they're acting as adjectives, which are always invariable in English? Is it incorrect to say... five-years-old children? 20 pounds note? 10 miles run?
SE intentionally set up the whole account system so that each site is treated separately. Joining a specific SE site doesn't create an account on any other site. If you want to use multiple SE sites, you have to explicitly create accounts on each one. This fragmentation has quite a few drawbacks, the main ones I encountered are the following: Visting a site where you're not logged in means that you lose your personalized top bar, the most useful navigation mechanism and your notifications. You also see the big banner for new users, and a different frontpage there. Anyone using multiple SE sites, especially from multiple computers or devices will see the annoying "you've been automatically logged in" banner very often. That is just an annoying experience The main reason that accounts are per site, and not SE-wide is that users might not want to be associated with a specific site they never participated in. That is a valid concern, but I don't think it is necessary to fragment the actual login system as far as currently implemented to meet this requirement. Being logged into SE, and being shown as having an account on a specific SE site should be entirely separated concepts. The way I'd like the login system to work would be the following: logging into any SE site would log me into all my SE sites at once. No more "you've been automatically logged in" banners visiting an SE site where I don't have an account would still appear to me as if I was logged in, with my personalized top bar (but "sign up" instead of my user name and avatar), and the frontpage for non-anonymous users. These changes would hide the more annoying consequences of the fragmented account and login system, but still preserve the benefits. The system encourages me to visit other sites via the hot questions sidebar, eliminating some more friction in using multiple sites would be a good thing in my opinion.
I am wondering why a user who has SE accounts in several sites has to login to each site separately? I understand the logic behind not creating a SE account on all SE sites and having separate sign-up procedure for each site. But why am I required to login separately (or as is the case, I get logged in after I open a site and then asked to refresh page) into each page? I also understand that one person may have different accounts across the SE sites. What I am asking is why not login one account of a person into all the sites in which (s)he is a member of using that account? This is not about 1. Signing up (at all) 2. Feature-request (maybe changed depending on answer)
My parents took me as five month old baby to the U.S. illegally. I lived there until I was 15 years old. It's been been 14 years since I left the U.S. What are they possibility of me getting a tourist visa??
I was born in Brazil and came to the United States at the age of 7, in 2007. I no longer need to live in the United States because I have found success in investing and no longer depend on having a job. I am going to buy property in my home country soon, but I have just turned 18. Will I ever be able to return to the United States to see my friends and other family members? Even if it is a 30-day visa? And, if so, in the future, am I still eligible for the EB-5 visa? Will I be barred from entry?
On Meta, a lot of duplicate targets are unanswered, so, while it's a duplicate it doesn't actually solve my problem. Please could the text on meta be changed to "Yep, it's a duplicate" or "Oops, I made a boo boo".
This request was sparked . The vote to close as a duplicate on meta, in contrast to the main site, does not require for the duplicate to have an answer. Yet, the closure message still says: This question has been asked before and already has an answer. ...even when this is not the case. Perhaps we should either only show this particular sentence if there is indeed an answer, or remove this altogether for meta. Note: I fear this might be a duplicate request, but I was unable to find one. (Not even one without an answer :) )
Prove If $S \subset R$ is a nonempty set, bounded from above, then for every $\epsilon >0$ there exists $ x\in S$ such that $(\sup S) - \epsilon < x \le \sup S$ How can I prove for this.. ? I always use this proposition, but I dont know how to prove.
I'm suppose to prove the following... Let $A$ be a nonempty subset of $\mathbb{R}$. If $\alpha = \sup A $ is finite show that for each $ \epsilon > 0 $ there is an $a \in A $ such that $\alpha - \epsilon < a\leq \alpha $. This is what I have so far... Proof: We claim that $\alpha = \sup A $ Then by definition of a supremum $\alpha $ is the least upper bound of set A Thus $\forall a \in A$, $a \leq \alpha$ Suppose $\epsilon > 0$ Then $\alpha - \epsilon < \alpha $. Thus $\alpha - \epsilon < a\leq \alpha$. I feel like I'm missing some step between my last and second to last step so what am I forgetting? Also is the rest of my proof right?
In my Google Webmaster Tools account, there is warnings about my site: Some URLs listed in this sitemap have a high response time. This may indicate a problem with your server or with the content of the page. They are particularly talking about the location.html page. This page address has maps that are available. What do I need to do to fix this?
In my Google Webmaster Tools account, there are warnings about my site. Some URLs listed in this sitemap have a high response time. This may indicate a problem with your server or with the content of the page. What is the solution?
How can I (in R) test whether the given data set is normally distributed? I read s suggesting shapiro.test. Unfortunately, according to , the null-hypothesis is "data are normal". I expect my data to be normal, hence I need a test whose null-hypothesis states "data are not normal" and with some level of certainty (e.g. 0.05) states that null-hypothesis doesn't hold. What test should I use?
After taking a statistics course and then trying to help fellow students, I noticed one subject that inspires much head-desk banging is interpreting the results of statistical hypothesis tests. It seems that students easily learn how to perform the calculations required by a given test but get hung up on interpreting the results. Many computerized tools report test results in terms of "p values" or "t values". How would you explain the following points to college students taking their first course in statistics: What does a "p-value" mean in relation to the hypothesis being tested? Are there cases when one should be looking for a high p-value or a low p-value? What is the relationship between a p-value and a t-value?
A function $f$ is said to satisfy Lipscitz condition on $D$ if there exists $M>0$ such that for every $x_1,x_2$ belonging to $D$ we have $$|f(x_1)-f(x_2)|\leq M|x_1-x_2|.$$ Now, what is the geometric interpretation of this thing? Does this mean that slope of chord joining any $2$ points on the curve $y=f(x)$ is bounded. Does this imply that derived function $f'$ of $f$ is bounded on $D$ (provided derivative exists on $D$)? Can it be understood with the help of diagram geometrically? I had heard some concept of double cone for this thing. Can someone explain that, too?
I'm trying to understand intuitively the notion of Lipschitz function. I can't understand why bounded function doesn't imply Lipschitz function. I need a counterexample or an intuitive idea to clarify my notion of Lipschitz function. I need help Thanks a lot
I sometimes hear British people say "We've got ~" just like "We've got an apple", instead of " We have an apple." And I wonder if British people use "We have ~" or not. Is this phrase used in conversations in daily life?
When do I use have and have got? Are "I have the answer" and "I've got the answer" both correct?
How can one calculate the standard scores of the coefficient estimates given $(X'X)^{-1}, X'y$ and $\widehat{u'}\widehat{u}$. Where $(X'X)^{-1}$ is a $n \times n$ matrix, $X'y$ is a $n \times 1$ matrix, and $\widehat{u'}\widehat{u}$ is a scalar.
For my own understanding, I am interested in manually replicating the calculation of the standard errors of estimated coefficients as, for example, come with the output of the lm() function in R, but haven't been able to pin it down. What is the formula / implementation used?
My goal is to instead of buying 4 separate basic PCs (plus the obvious peripherals), buy just one fast PC and the peripherals. I'm wondering if I can use a more powerful computer, say, one with core i7 and plenty of RAM, with 2 video cards (total of 4 monitor outputs) to run 4 or more virtual machines (WinXPs) so instead of having 4 individual machines, I'll be having just one. However, the catch is, is it possible to have a pair of mouse and keyboard + input/output audio for each of these virtual machines?
Let's say I have a PC with two monitors atached. I'm running e.g. Windows Vista natively, and start up a virtual Ubuntu PC. I change to fullscreen mode so that on one Monitor, I see my Windows Desktop, and on the other one, the Ubuntu Desktop. I can now use my mouse and Keybord for both of them. This works fine, but I'd really like to connect a second mouse and a second keyboard to my physical PC, and do some configuration so that one set of input devices is used for Windows, and another set for the virtual Ubuntu. Then two persons could work at the same time, as if they were using two separate computers, although there is only one physical machine. I'm currently using Sun VirtualBox and it has a feature to assign specific USB devices to the virtual machine. While this sometimes works for e.g. external disk drives, it never worked for mice and keyboards for me (yes, of course my input devices are attached via USB!). I'd like to know a solution that works with VirtualBox, but any answer is appreciated, even if another virtualization software or some additional hardware was needed.
I am retrieving articles from my blog to my webiste from the mysqlDb. The articles are displayed just fine on the blog but on the website some characters such as ţ,ş,ă etc are replaced with a black square with a question mark inside . I have "UTF-8" set on my document the same as on the blog.
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur? This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.
I'm currently practicing on a purposely flawed login page, where I have to change the value of a cookie to enter. The cookie is an encrypted and encoded form of a simple JSON string with fields "admin", "username", "password". The admin field is set to 0, and the user/pass fields accepts anything. To login, I have to change this ciphertext such that the admin field is set to 1 when decrypted. The encryption function works like this: A raw string is padded, then encrypted with AES-CBC and a random IV. Then, this cipher text appends the IV (concatenation; IV+cipher). Then, this is Base64 encoded, and returned. So, to decrypt, we simply decode it with Base64, and split the result so that the 16 first characters are the IV, and the remaining is the ciphertext. Now, I want to know the ciphertext when one character of the plaintext is changed. Specifically, in my example: The following string is encrypted, appended to the IV, and encoded: {"admin": 0, "username": "admin", "password": "admin"} This apparently results in the encoded text (found in cookie): yMqlNejXMclgcU5+wbL40RY/mvIMW+AvguoMvCv0NemhRYzWzs7EQ2DXpvwsGmFynGpNWNyotYBea+P3Z3XZIvMBoMzdMVb/FtWQ+GV/MmA= I'd like to know what this encoded text / cookie looks like if the plaintext is changed to {"admin": 1, "username": "admin", "password": "admin"} (note, the 0 changed to 1). The username and password can be anything, only the "admin": 1 part is important. It appears the key is fixed, but the IV is generated at random every time I try to logout and login again. Is this possible? If so, how? Thanks!
To perform a bit flipping attack, the previous block is modified by using XOR. This results in an altered plaintext. However, now the ciphertext of the previous block is altered, hence it will result in an invalid format. Am I correct or am I missing something? For example, suppose I have the following plaintext name=jcconvenant;photo=picture.jpg;admin=false;colour=red; and the correspoding ciphertext c26a5697689463d662f540e55e2a1ecef9c5df20133dfe49d6d3c369679a95ff4f4c5a490f530b2a2f25db40da64f1e9302724ce61b9a435e23f4d600252a143 Suppose we perform a bit flipping attack and get the following ciphertext c26a5697689463d662f540e55e2a1ecef9c5df20133dfe49d6c1d07071c495ff4f4c5a490f530b2a2f25db40da64f1e9302724ce61b9a435e23f4d600252a143 Then the resulting plaintext will still look corrupted. ¶ä╚° h8ì│►Nƒz│Ioé¤ßkü2KÀQiý4I@pg;admin=true;;colour=red; Is there a way to perform bit flipping while still obtaining a valid plaintext?
I'm asking myself a question about how to warm my house up, and the efficiency of such a thing : I live in a theater, and we got plenty of 1000W lighting fixture, mostly Tungsten incandescence things, like . According to my research on the web, the energy efficiency of those thing is So, if I assume that the rest 95%+ is wasted on heating, that might means they are not far away from typical heaters. Bonus point is, it gives me some light. But I'm not sure it really works that way. So the question is : where is really all the wasted energy of a tungsten incandescence fixture really spend on ?
Everyone always talks about the efficiency of their appliances. I was wondering if everything was 100% efficient at heating its surroundings ?
I have used a Taiwan passport to go to my home country, Malaysia, for the past recent years and I am thinking of using my Malaysian passport to go to Malaysia again. Does it work?
I am a citizen of two different countries, and have two passports. How should I use my passports when traveling?
I am very new to codding and am trying to make a game I can call my own. I don't undertand what the error means but here is my code: import pgzrun import math import random WIDTH = 800 #5 HEIGHT = 600 CENTER_X = WIDTH/2 CENTER_Y = HEIGHT/2 CENTER = (CENTER_X, CENTER_Y) FONT_COLOR = (221, 160, 221) #10 ozol = 0 game_over = False ozolith = Actor("ozolith") #15 def draw(): screen.clear() ozolith.draw() draw_counters(ozol) #20 def place_ozolith(): ozolith.x = CENTER_X ozolith.y = CENTER_Y #25 def draw_counters(ozol): screen.draw.text(str(ozol), fontsize=40, center=CENTER, color=FONT_COLOR) def on_mouse_down(pos): if ozolith.collidepoint(pos): #30 ozol += 1 place_ozolith else: quit() #35 place_ozolith pgzrun.go() Here is the error message Traceback (most recent call last): File "C:\Program Files\Python38\python-games\GameCraft\GameCraft.py", line 38, in <module> pgzrun.go() File "C:\Program Files\Python38\lib\site-packages\pgzrun.py", line 31, in go run_mod(mod) File "C:\Program Files\Python38\lib\site-packages\pgzero\runner.py", line 113, in run_mod PGZeroGame(mod).run() File "C:\Program Files\Python38\lib\site-packages\pgzero\game.py", line 217, in run self.mainloop() File "C:\Program Files\Python38\lib\site-packages\pgzero\game.py", line 247, in mainloop self.dispatch_event(event) File "C:\Program Files\Python38\lib\site-packages\pgzero\game.py", line 172, in dispatch_event handler(event) File "C:\Program Files\Python38\lib\site-packages\pgzero\game.py", line 164, in new_handler return handler(**prepped) File "C:\Program Files\Python38\python-games\GameCraft\GameCraft.py", line 31, in on_mouse_down ozol += 1 UnboundLocalError: local variable 'ozol' referenced before assignment It happens once I click on the image which is stuck on the top left corner.
The following code works as expected in both Python 2.5 and 3.0: a, b, c = (1, 2, 3) print(a, b, c) def test(): print(a) print(b) print(c) # (A) #c+=1 # (B) test() However, when I uncomment line (B), I get an UnboundLocalError: 'c' not assigned at line (A). The values of a and b are printed correctly. This has me completely baffled for two reasons: Why is there a runtime error thrown at line (A) because of a later statement on line (B)? Why are variables a and b printed as expected, while c raises an error? The only explanation I can come up with is that a local variable c is created by the assignment c+=1, which takes precedent over the "global" variable c even before the local variable is created. Of course, it doesn't make sense for a variable to "steal" scope before it exists. Could someone please explain this behavior?
What are the differences between new and +new in javascript something like this? var myVar = new function() and var myVar = +new function()
I've seen this in a few function fn() { return +new Date; } And I can see that it is returning a timestamp rather than a date object, but I can't find any documentation on what the plus sign is doing. Can anyone explain?
I need some help with this because it is quite confusing for me please: Previous research has shown or Previous research has showed which one is correct?
In the summey of my physics paper, for a scientific journal, in the start of a new paragraph in the discussion, what is more correct to write? "We have showed that" the system obeys this and that rules, or: "We have shown that"... or simply: "We showed that"...? Thanks!
There is a theorem that states that every continuous function from a compact metric space to R is bounded however, the converse is not true, but I am not sure how to construct such a function. My idea is to start with a countable subcover that has no finite subcover. Since we can enumerate each subcover U1, U2, U3..., I was thinking of mapping each element in the subcover equal to its index, but I'm not sure if this function is continuous.
Suppose $(M,d)$ a metric space. I want to show that If every continuous real-valued function on $M$ attains a maximum, then $(M, d)$ is compact. I was trying to do this by assuming $M$ non-compact and showing explicitly a function which does not attain a maximum. If $M$ is not bounded it's enough to take the distance from a fixed point as we can always find a sequence which "exits" every compact and pushes the distance at infinity. But what if $M$ is bounded?
ex:subject type means g.k,english,maths etc... like that. my question is for preparing questionpapers by randomly selecting the questions of different questions Can you please guide regarding this query....?
How can I request a random row (or as close to truly random as is possible) in pure SQL?
I have the following two analogous references @article{ref1, author = {Martí, R. and Laguna, M. and Glover, F. and Campos, V.}, journal = {European Journal}, number = 2, pages = {450-459}, title = {yyyyyyyyyyyyyyyyyyyyyyyyyyyy}, volume = 135, year = 2001 } @article{ref2, author = {Lim, A. and Lin, J. and Rodrigues, B. and Xiao, F.}, journal = {Journal}, number = 2, pages = {180-188}, title = {xxxxxxxxxxxxxxxxxx}, volume = 6, year = {2006} } When I make an in-text-citation, I get a different output style for them: (Martí et al. 2001) (Lim; J. Lin; B. Rodrigues, et al. 2006) I'd like to get the same citation style as produced with reference ref1. I'm using biblatex package with some parameters \usepackage[style=authoryear,backend=biber,maxbibnames=99]{biblatex} The following are additional configurations of the template I'm using \setlength{\bibitemsep}{\baselineskip} \addbibresource{thesis.bib} \AtBeginBibliography{\renewcommand*{\mkbibnamelast}[1]{\MakeUppercase{#1}}} \DeclareNameAlias{sortname}{last-first} \DeclareNameAlias{default}{last-first} \renewcommand*{\multinamedelim}{\addsemicolon\space} \renewcommand*{\finalnamedelim}{\addsemicolon\space} Another reference of another work of "Lim, A." is @article{ref3, author="Lim, A. and Lin, J. and Xiao, F.", title="zzzzzzzzzzzzzzzzzzzzz", journal="Applied Intelligence", year="2007", volume="26", number="3", pages="175--182" }
I had been using bibtex and then biblatex for quite some time. For the newest edition of my book I moved to biber. I happened t notice that firstnames are sometimes generated and sometimes not. Has this been observed by others? I have tried to make a minimal example but without success. Using the following code, which shows all the commands related to biblatex I have in my preamble I could not get the firstnames to be shown. Even with the stylefile I made for this book (second line) the error did not occur. I have a dropbox with the latex files for the book available. I can give access to these. What do you propose? \documentclass[fontsize=10pt,twoside]{scrbook} \usepackage{hormonbuch} \usepackage[% style=authoryear% ,natbib=true% ,sorting=nyt,backend=biber,doi=false,isbn=false,url=false]{biblatex} \addbibresource{../Literatur/EndokrinologieKundeNourl.bib} \renewcommand*{\bibpagespunct}{\addcolon} \DeclareFieldFormat{pages}{#1} \renewrobustcmd*{\enquote}{} \renewbibmacro{in:}{% Herbert Voss auf http://tex.stackexchange.com/questions/10682/suppress-in-biblatex \ifentrytype{article}{}{% \printtext{\bibstring{in}\intitlepunct}}} \renewbibmacro*{journal+issuetitle}{% \usebibmacro{journal}% \setunit*{\addspace}% \iffieldundef{series} {} {\newunit \printfield{series}% \setunit{\addspace}}% \usebibmacro{volume+number+eid}% % \setunit{\addspace}% \newunit} \renewbibmacro*{volume+number+eid}{% \printfield{volume}% % \setunit{\addcolon\space}% }% % \renewbibmacro*{note+pages}{% \printfield{pages}% \newunit} % \begin{document} \citet{CRT+88,FDe+85} \citep{CRT+88,FDe+85} \cite{CRT+88,FDe+85} \printbibliography \end{document}
On quote whenever user specifies Start Date and End Date we need to calculate Subscription Term which should be exact months, here it should say 12 months but its showing 11.96. Can anyone please advise correction in formula or anyone having solution around it, so that I can calculate exact months between two dates(considering scenario of leap year in between) e.g if start date = 1 Jan 2000 and End Date = 15 Mar 2000 then it should show something like 2.5 months instead of 3. Formula we are using right now is following : IF( IF( SBQQ__SubscriptionTerm__c > 0 , SBQQ__SubscriptionTerm__c , (( SBQQ__EndDate__c - SBQQ__StartDate__c) / 30.4375) ) = 0, 12, ( IF( SBQQ__SubscriptionTerm__c > 0 , SBQQ__SubscriptionTerm__c , (( SBQQ__EndDate__c - SBQQ__StartDate__c) / 30.4375) ) )) The reason we need exact term because the price which is applicable to products is based on term and we can't round of term as it will then lead to incorrect pricing calculation. If anyone having solution using APex too , then it is much appreciated.
My client wants me to write a formula field to return the duration(in months and days) between two date fields. For ex: If start date is "January 1st 2016" and end date as "December 31st 2016" then it should return value as "12". If start date is "January 1st 2016" and end date as "November 20th 2016" then it should return value as "11.67". From the sample formulas given on the salesforce , I see that there is a formula date_1 — date_2 to calculate number of days between two dates. But should I update the formula to (date_1 — date_2)/30 or (date_1 — date_2)/31 to get what I need? Is this something really doable using formula or am I better off solving this using Apex?
Find all generators for the cyclic group $\bbmath Z_9 \times \bbmath Z_4? I know I can use o(9,4)= 36 and all divisors of 36 are 1,2,3,4,6,9,12,18,36. This tells me that I will have subgroups of these orders.
A cyclic group is a group that is generated by a single element. That means that there exists an element $g$, say, such that every other element of the group can be written as a power of $g$. This element $g$ is the generator of the group. Is that a correct explanation for what a cyclic group and a generator are? How can we find the generator of a cyclic group and how can we say how many generators should there be?
I know the proof that If A is compact and B closed then A+B is closed but would like to have an example where both are closed but not A+B.I am not able to figure out.
Is there a counterexample for the claim in the question subject, that a sum of two closed sets in $\mathbb R$ is closed? If not, how can we prove it? (By sum of sets $X+Y$ I mean the set of all sums $x+y$ where $x$ is in $X$ and $y$ is in $Y$) Thanks!
I am trying to install Ubuntu 16.04 on my laptop (Dell Inspiron 3180). I tried a live 18.04 USB first of all but it kept freezing after a few seconds, keypad or touch pad wouldn't work both when trying the installer and running live. Windows 10 was pre installed on the laptop I made a 16.04.4 USB, when I tried this live, the touchpad wouldn't work, but I was able to navigate and use the keypad. I figured if I could complete the installation it would free up the USB slot for me to try a wired mouse which might work. I began the installation and everything worked until I received the error: 'grub-efi-amd64-signed' package failed to install into/ target/. without the grub boot loader.... I couldn't read the rest as the installation was trying to move on and the screen faded and powered down. When I restarted the PC it was running a hardware diagnostic. Any ideas on what to try would be appreciated? showing how I tried the installation step by step
When I'm trying to install Ubuntu 18.04 on my desktop, it shows the following error: The 'grub-efi-amd64-signed' package failed to install into /target/. Without the GRUB bootloader, the installed system will not boot. How to fix this error?
I am using vim editor on Linux mint. I want to know if there is any way to compile c program without leaving the editor.
New to vim and and I want to be able to compile code from within vim without running a new terminal and calling the compiler. How do I go about doing this? Note that this requirement is not restricted to gcc only, I sometimes need to call python also on the current script I am working on, so you get the idea...
Usually, I have Skype pinned to the taskbar on Windows 7 and its icon prints normally. For a few days, this icon has seemed broken/not found : If I un-pin the program from the taskbar, the icon shows as usual : But if I re-pin it (or even simply right-click on it), the icon is broken again. The program itself doesn't bug for the moment, but I wonder why this happens, and how I could fix this. EDIT : My question has been marked as a possible duplicate (see comments), but the fixes provided to the other thread don't work for me, which is why I need other methods of fixing this. UPDATE : After magicandre's and user1167442's answers, the icon now looks like this : UPDATE 2 : When I right-click on the pinned Skype "icon", then right-click again on the program's name to see its properties (see screenshot) ; when I click on "Change icon", a dialog box says File not found : %SystemRoot%\Installer{6A0549A9-...-B19}\SkypeIcon.exe. I also noticed the link's target is joined with the /secondary argument, which is still there even when I erase it and apply.
I have a program pinned to the taskbar. After I upgraded the program (I think) the icon broke. What I get now is what you see below; that ugly default application icon thing. If I unpin it, I get the correct icon. If I then right-click on it, the icon breaks again. If I pin it again, still the broken icon. Unpin again and back to good icon. Very annoying. How can I fix this?
Consider a Lagrangian $L(q, \dot{q}, t)$ for a single particle. The variation of the Lagrangian is given by: $$\delta L= \frac{\partial L}{\partial q}\delta q + \frac{\partial L}{\partial \dot q}\delta \dot q\tag1$$ When using Hamilton's Principle ($\delta S = 0$): $$\delta S = \delta \left[ \int L(q, \dot q, t) dt \right] =\int \delta [L(q, \dot q, t)] dt = 0\tag2$$ and the right-hand side of equation (1), $$\int \left( \frac{\partial L}{\partial q}\delta q + \frac{\partial L}{\partial \dot q}\delta \dot q \right)dt = 0\tag3$$ We then swap the order of time derivative and variation on the second term in the integrand to get: $$\int \left( \frac{\partial L}{\partial q}\delta q + \frac{\partial L}{\partial \dot q}\frac{d}{dt}(\delta q) \right)dt = 0\tag4$$ Where we then integrate by parts and get the E-L equations. My question is how do we justify trading the order of time differentiation and the variation on q? What is the argument for the identity $\delta \dot q = \frac{d}{dt}(\delta q)$, i.e. to rewrite equation (3) as equation (4).
(Just some recalls) We have an action on which we want to apply Least action principle. $$ S=\int_{t_i}^{t_f} L(q,\dot{q},t)dt$$ We assume that $t \mapsto q(t)$ is the function that will extremise the action, thus if we replace : $$q(t) \rightarrow q(t)+\delta q(t)$$ with $ \delta q(t_i)=\delta q(t_f)=0$ We will have at first order in $\delta q$ the variation of the action that will be zero. $$ \delta S = \int_{t_i}^{t_f} \frac{\partial L}{\partial q} \delta q + \frac{\partial L}{\partial \dot{q}} \delta \dot{q} = 0 $$ And we say that because : $ \delta \frac{dx}{dt} = \frac{d \delta x}{dt} $, we can integer by part (the boundary term vanish because of (*)): $$ \delta S = \int_{t_i}^{t_f} (\frac{\partial L}{\partial q} - \frac{d}{dt} \frac{\partial L}{\partial \dot{q}} )\delta q = 0 $$ My question : It makes sense to me to say that, as : $$q(t) \rightarrow q(t)+\delta q(t)$$ then by derivation I will have : $$\dot{q}(t) \rightarrow \dot{q}(t)+\frac{d}{dt} \delta q(t)$$ We immediately find that $ \delta \frac{dx}{dt} = \frac{d \delta x}{dt} $, so it seems to be very general for any transformation. But my teacher said it could'nt be the case for any transformation. I don't see why ?? What's more, just to understand : In a Lagrangian, we consider $q(t)$ and $\dot{q}(t)$ as independant variables, because at a given point, if I have a value of a function, its derivative can take any values. But the functions $q$ and $\dot{q}$ are not independant functions (they are linked by derivative operation). So, we always have $\delta q(t)$ and $\delta \dot{q}(t)$ that are independant, and to proove that $ \delta \frac{dx}{dt} = \frac{d \delta x}{dt} $, we use the "trick" that, the functions associated are not independant. In a sense, we "go" in the function space where functions are not independent and then we go back in "variable" spaces where they are independent. Am I right ? And why did my teacher said that $ \delta \frac{dx}{dt} = \frac{d \delta x}{dt} $ is not always true, was him wrong?
I don't know what year my old bike is.(like is it a 1970's etc). I think it may be a 1970's, or something like that due to research but I'm still not sure. I know it's a French old make, I believe Ravenna. But what year is this bike?
This is a canonical question that will hopefully encompass all of the questions we get asking us to determine what year a bicycle was manufactured (how old is my bike, how old is my frame, etc.). Each "answer" should address a different way to determine the manufacturing year of a bicycle. To some extent, these will also help you narrow down the model as well as it will tell you what distinguishing features to look at. The span of answers would include things such as: Skiptooth cranks Cartridge bottom brackets (BB30/90 etc) Elliptical chainring Quick releases versus contemporary through-axles How the steerer attaches to the fork (quill vs. threadless) Braking system (especially with mountain bikes: v-brake, direct pull, etc.) Shifting ramps and pins on cassettes/sprockets and chainrings (versus flat sprockets) Frame material (e.g., shift from tubular steel to use of CF and hydroformed aluminium) Frame tubing type (e.g. Reynolds 531 tubing introduced around 1934, still used today; Reynolds 501 tubing introduced around 1983). So a frame with an original 501 decal can't be from the 70', 531 decal doesn't help as much because of the range of years produced. Also, see Decals. *Decals: style/design, amount, placement, color, etc. can help not only determine models, but also year of manufacture. Many changed decal design for the same model bike often yearly, with special/limited editions even more specific. This applies only if decals are original or have been replaced with the identical design. Tubing decals (Reynolds, Columbus, etc.) also changed designs for same tubing made in different years, although the changes aren't made as often, and manufacturers didn't always put tubing Brand decals on every model. Earlier bikes tended to have less fancy, less colorful, less quantity of decals. Headbadges: most early bikes had actual "badges", often quite detailed and fancy, made of metal, then plastic, and finally just using decals on the headtube. Most bikes lost their metal badges in the 60's and early 70's, although some brands still have actual badges to this day, but in general a real badge indicates an earlier model bike. Dropout style (including the later inclusion of lawyers lips) Presence or absence of CPSC reflectors (USA only) Manufacturing method (shift from lugs to TIG welding, for example) Number of gears (shift from 2x5 ten-speed to 3x8, 2x9, 1x11, etc.) Inspection of lug design: pantographs, cut-out, stampings, custom brazing/filing, chrome, fork crow n sweep, etc. Frame/Fork Braze-ons. Race bikes tended have less braze-ons the earlier the year of manufacture. Most 60's racers and earlier had few or none with cable guides/stops, shifters, bidons, etc. being clamp-on. By the 80's if it was clamp-on, it was a sign of very cheap models and most frames had braze-ons for all cables, with multiple bottle and accessory bosses depending on style and use. and so forth. Please edit this question if you have an answer that isn't in the index above. A couple of caveats: A previous owner could have replaced or upgraded components on a bicycle, so this guide only applies to original equipment There is a delay between the introduction of a technology (such as indexed shifting) and when manufacturers start selling products that use it. Low-end manufacturers may continue using technology that is severely outdated (such as one-piece cranks, freewheels, or quill stems) because it is cheaper to do so. A number of bikes are built in a Retro style, but with modern components. Dutch bikes, trendy coffee cruisers, and beach cruisers may be modern but appear to be 1950s styling. These tend to have modern rims and brakes as a giveaway. Note that bicycles.stackexchange does not do valuations of bicycles. How much your bicycle is worth depends on the location of the buyer and seller, how much the buyer wants the bike, etc. etc. etc.
Is it possible in pdo to have a query with a operator like + - * or / ? The solution is to put spaces between the ? and the operators this will not work $table01.Amount - ?*? This works $table01.Amount - ? * ? the query UPDATE account SET account.Amount = account.Amount - 1000000*0.03 WHERE account.Id = 23; throws an error but putting this query into the database clients gives me no error $sqlAccountUpdate="UPDATE $table01 SET $table01.Amount = $table01.Amount - ?*? WHERE $table01.Id = ?;"; try { $stmtAccountUpdate = $pdo->prepare($sqlAccountUpdate); $stmtAccountUpdate->execute([$_POST['new_account_initial_deposit'], $deposit_fee, $accountid]); } catch(Exception $e) { echo 'Exception -> '; var_dump($e->getMessage()); } the error I get is caused by this this is the line that gives the error: $table01.Amount - ?*? I know I can work around it by calculating the values before the prepared statement and using 1 variable instead of doing the calculation in the prepared statement. this works $initalFee=$_POST['new_account_initial_deposit']*$deposit_fee; $sqlAccountUpdate="UPDATE $table01 SET $table01.Amount = $table01.Amount - ? WHERE $table01.Id = ?;"; try { $stmtAccountUpdate = $pdo->prepare($sqlAccountUpdate); $stmtAccountUpdate->execute([$initalFee, $accountid]); } catch(Exception $e) { echo 'Exception -> '; var_dump($e->getMessage()); }
Why can't I pass the table name to a prepared PDO statement? $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) { var_dump($stmt->fetchAll()); } Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do $sql = "SELECT * FROM $table WHERE 1"
Suppose I have: $$x^2 + y^2 = 1$$ Then, $$d/dx(x^2) + d/dx(y^2) = d/dx(1)$$ $$2x + 2y*y' = 0$$ $$y' = -2x/2y = -x/y$$ What I don't get is when we do $d/dx(y^2)$, where do I get the $y'$ from? In $d/dx(x^2)$, its simply $2x$ ... for $d/dx(y^2)$, why isn't it just $2y$
I want to differentiate $x^2 + y^2=1$ with respect to $x$. The answer is $2x +2yy' = 0$. Can some explain what is implicit differentiation and from where did $y'$ appear ? I can understand that $2x +2yy' = 0$ is a partial derivative but then it becomes multi calc not single. This is in a chapter about chain rule so I assume there is some use of the chain rule here but I can't see any composite functions here. We can express y in terms of x but y is not composite. P.S: I am NOT looking for HOW to solve the problem, I am looking for the WHY as stated above.
what type of software do you use for drawing diagrams (user flows) in a faster manner? I tried draw.io as an online tool because I wanted defined shapes in order to make the flow faster. I do not want to use Sketch, Illustrator, Photoshop type of thing because I have to create my own shapes which is time consuming, projects are different from one another.
What tools (ideally affordable ones) would folks recommend for creating a website wireframe? What tools have you used, and did you find them better than pen and paper?
I need to deliver a report using Latex. Since the beginning I have had a lot of difficulties with it, that thankfully were resolved when I started using the Texmaker tool. Unfortunately the references still do not work and I have already wasted too many hours trying to figure it out. I have a file where I define all my references which is called refbase.bib . As an example, this is one of my entries in it: @Article{belkin:1990, title = {The cognitive viewpoint in information science}, author = {Nicholas J. Belkin}, journal = JIS, year = {1990}, pages = {11--15}, volume = {16} } For me to call these references to my the reference section of my report, I have the file references.tex and have just the following command: \bibliography{./refbase} My sources told me that this should call the bibliography list and make my reference page, however nothing is happening. The file is completely ignored. Also, whenever I call a citation during the report, I will get this in it's place "(??)". The way I make the citation is as follows (also according to what the source websites tell me to do: bla blabla blabla bla \cite{belkin:1990}. Anyone have a clue as to what is going on and how to fix it? Thank you very much.
I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists. \documentclass[11pt]{article} \usepackage{cite} \begin{document} \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle Blablabla said Nobody ~\cite{Nobody06}. \bibliography{mybib} \bibliographystyle{plain} \end{document} My bibliography (Bib.bbl) @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" } Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg \begin{thebibliography}{} \end{thebibliography}
I'm currently doing dissertation work which requires me to average 95 pieces of tidal data for a month. I have all my data, but averaging them is turning out to be a tedious pain. I have 95 points I want to average together, then moving on to the next day's data. So, at the moment, my equations are like such =SUM(D12:D107)/95, then =SUM(D108:205)/95, and so on. Is there a way to make Excel automatically clump the next 95 pieces of data rather than having to manually select the group of cells? I have to do this for about twenty different locations, so having a quicker way of doing it would be useful! I know I probably haven't explained it very well...
In column A I have a set of numbers (over 1,000), and I want to get an average of a block of them at a time, (e.g., 10, so A1:A10 then A11:A20 and so on) and write these averages into column B, such that B1 contains the average of the first block, B2 the second block and so on. Then, in C1 I would like to have a value which defines the number of rows each average should consider (e.g., 10 = A1:A10,A11:A20... and 25 = A1:A25,A26:A50... and so on). When I change the value of C1 I want column B to update automatically to average using the new block sizes. How should I go about doing this?
Is there a list somewhere, that explains which questions are appropriate in each of the Stack Exchange sites? Frequently, I'd ask a question on /// et al., based on the site's similar questions, only to be notified by the site moderators that my question is inappropriate for their site. How can I learn what can be asked about so that I can ask questions that won't be closed as off-topic?
I frequent Stack Overflow a lot and there are many questions that get downvoted because they don't fit in the "Code only" question format. There are many users who will immediately downvote people for asking the question in the wrong place, but whoe never provide suggestions about WHERE they should be asking that question. My question is: Is there a good description of what types of questions are acceptable in each of the Stack Exchange family of sites? I know there is an FAQ, but this really does not address which types of question is fit for each site.
I want to output my circuit from -5..5v into 0..10v. My circuit generate -5..5v. What should i do to generate that signal? what analog circuit i should use? thanks
I have a front end module that generates an (ECG) signal that varies from +/-2.5 V. I want to shift this signal to 0 - 5V. What is the best way to do this? Would a summing amplifier like the below circuit good enough? With R1 = R2 and V1 = 2.5V, V2 = my signal, V3 = V4 = GND
I have one of those compact mini computers that is just a small box, about 6 inches wide. Lately, it has been making a whirring sound. How can I find out if it is the fan that is going bad, or the hard drive?
On my new computer, my fan(s) is/are plain LOUD! Using SpeedFan, I find that my temps are all under 32 degrees C under my normal use (IDK how accurate that is but the CPU itself says 27 C). The fan doesn't sound unbalanced and it isn't making sounds in rhythm (Not the usual rrrrrrrRRRRRR... rrrrrrrRRRRRR... rrrrrrrRRRRRR... rrrrrrrRRRRRR), just a constant fan. I am thinking about oiling the fans, but I can't decide if it is the PSU fan or a case fan or the CPU fan. If it's the CPU fan I will most likely just replace that with a quiet fan. How can I tell which fan is making the noise (if not multiple)? One thing that I am thinking may be the problem is my CPU fan isn't PWM so would swapping that out help? There is no "linear voltage" or etc thing in BIOS so I think it may be running at full speed. Also, I could have too much airflow because it is also making a whistling noise that you can hear close to it that sounds like when I accedentially put part of the side cover over my floor vent to get it out of the way.
I just got an iPhone5S and want to use an mp3 I have in My Music as a ring tone. How can I do this. The manual only seems to talk about purchasing tones. EDIT I have made a 40 second m4r file and it is in My Music on the iPhone, but I can't find it in Ringtones. I cannot find "Sync Ringtones" in the phone sync options.
The iPhone has a very limited selection of default ringtones. How do I create a new ringtone for my iPhone?
I was just reading through some comments on and noticed the comments overlap the right-sidebar links slightly.
On , the comments are overlapping the related questions sidebar. Is this something to do with the weird formatting of the first comment? Browser: Mozilla/5.0 (Windows NT 6.0; rv:16.0) Gecko/20100101 Firefox/16.0
Assigned to enhance image quality for a (let's say) viewfinder, a developer is puzzled when the display seems to show movement when no one else is in the room. Figures out that the device is seeing through walls. Refines device and still gets unexpected imagery. Discovers that the device can display images from any distance and time in the past. Realizing the consequences of the technology, he produces a few and goes to elaborate lengths to hide his identity, selling them in consignment shops. Instructions said to point in the desired direction and adjust DISTANCE knob appropriately, but always leave TIME knob set on zero. The device becomes ubiquitous, displaces many other technologies, eliminates crime; advanced computer tracking coupled with the viewer solves ancient mysteries and reveals the identity of the developer after his death.
When I started reading science fiction in 1987, I read a lot of “best of” collections and believe I found this story in one. To the best of my recollection, the story involves a man who invents a screen to watch history unfold. He watches the jfk assassination and can view all angles and sees a man on the grassy knoll. As he updates his machine, people use it to watch life unfold in real time. A man sees his wife entering a motel with another man and the husband tracks her down to shoot them.
Let $f_k : \mathbb R \to \mathbb R$ be an equicontinuous function sequence. If for every $k$, $f_k(0)=0$ then the sequence $\langle f_k \rangle$ has a convergent subsequence. $\langle f_k \rangle$ may not necessarily have a uniformly convergent subsequence (consider the counterexample $f_k(x)= \frac x k$) so the question is whether even in this case there is a pointwise convergent subsequence.
Let $\langle f_n \rangle$ be sequence of equi-continuous real-valued functions on $\mathbb R$ such that $f_n(0)=0$ for every $n$. Does $\langle f_n\rangle$ have a converging subsequence? I found that even equi-continuity condition and the value at $x=0$ does not guarantee the uniform convergence, as there is a counter-example of $f_n (x) = x/n$, which does not converge uniformly, but do the conditions of the question guarantee pointwise convergence of some subsequence?
I'm doing trap to kill subprocesses of script and it's working perfectly: myscript.sh trap "kill 0" EXIT ./someProcessA & ./someProcessB & the problem that I don't understand why the following doesn't work if I run from my current shell : tail -F file& kill 0 the tail command doesn't exit , so why kill 0 works only in the script ?
In the man page, it says: kill [ -s signal | -p ] [ -a ] [ -- ] pid ... pid... Specify the list of processes that kill should signal. Each pid can be one of five things: 0 All processes in the current process group are signaled And I tried like this in bash: $ man kill & [1] 15247 $ [1]+ Stopped man kill $ kill 0 $ ps 15247 pts/41 00:00:00 man Here 0 is used as pid. As I understood, kill 0 will kill all processes in the current process, which includes pid15247. However, it didn't do anything in this example. Does anyone have ideas about how to use it?
I'm looking for inmate records for Bodmin Gaol jail in the UK circa 1835-1839. My 4th great-grandfather Phillip Stephen Rule (born 1777) was an inmate there based on records I have found on ancestry.com, but all I can find is his release year of 1839. I cannot find when he was imprisoned or what he was in there for to begin with.
In the there is a record that belongs to my 4th great grandfather William Hobbs. The Session held at Bodmin names his wife as Jane (nee Courtenay) and also Jane's sister Philippa. It indicates that William would be spending the next 12 months at (presumably not the former in London). QS/1/7/190, 191 William Hobbs, lab., Philippa Courtenay, spinster, and Jane, wife of W.H., all of Truro, indicted for assault on William Jolly: Jane Hobbs acquitted. P.C. fined 1s. paid in court and one month in house of correction. W.H. fined 1s. paid in court and 12 months in bridewell, and to enter into recognizance of £50 to keep the peace, particularly to W.J. for 7 years. Are there prison records available for Bodmin Bridewell for that period (1802-1803)? Such records seem to be available for 20 years later:
The relevant part of Hexblade's Curse states (XGtE p.55): Starting at 1st level, you gain the ability to place a baleful curse on someone. As a bonus action, choose one creature you can see within 30 feet of you. The target is cursed for 1 minute. The curse ends early if the target dies, you die, or you are incapacitated. Until the curse ends, you gain the following benefits: You gain a bonus to damage rolls against the cursed target. The bonus equals your proficiency bonus. [...] Typically when features add extra damage they clarify that the extra damage only applies to one damage roll, or the added damage just applies to the damage as a whole, like the various cleric subclasses' Potent Spellcasting: Starting at 8th level, you add your wisdom modifier to the damage you deal with any cleric cantrip. Or the Evocation Wizard's Empowered Evocation (PHB p.117): …you can add your Intelligence modifier to one damage roll of any wizard evocation spell you cast. Does this mean the wording of the Hexblade's Curse would apply to all of the dice rolled for the attack? If when the warlock gains Pact of the Blade at 3rd level, could they pick a great sword as there pact weapon, which deals 2d6 damage, and add their proficiency bonus twice to the damage?
I'm playing a Shadow sorcerer/ and I am rather confused about the Hexblade's Curse feature (Xanathar's Guide to Everything, p. 55). It says, on the first bullet point of the curse details: You gain a bonus to damage rolls against the cursed target. The bonus equals your proficiency bonus. What exactly is a damage roll? Is it the cumulative rolling of all dice, is it a roll of one or more of the same die type, or is it a single roll of a damage die?
In the terminal, how can I show history while typing? Is this possible? what is the library that I have to install? I think this will boost my productivity while using the terminal, currently I search commands by pressing up-down arrows, but sometimes it take time to reach the command I want.. Something like this:
I use Ubuntu on a daily basis, recently I've seen that the terminal on Kali Linux behaves differently from the terminal on Ubuntu... I can see the end of the command that I'm typing based on the history of commands that I've typed like the following: I know I can use autocompletion by pressing tab, but this feature is something else since I can see the command before pressing tab... That's not a Kali related question too since I just want to replicate this feature on Ubuntu 20.04. Is it a feature that I can easily install on Ubuntu by installing some tool with apt install? Or is it a configuration that I need to do?
In people search result while hovering over all result item, in the hover panel in the middle I can see a message "We weren't able to find additional information". I saw a msdn post for the same question in this but there it is said that "If the person has no authored documents, then it will display this in the hover panel: We weren't able to find additional information." But for my case the authored document is also shown. Please find in the screen shot below marked in red: Also to mention this not a duplicate question of another question which i have posted earlier - one says hover panel is not shown for first result item and another says in the shown hover panel an error message is shown. Please find the link of the other question - Did I missed something?
When i key in a search keyword and give a people search. I am seeing a couple of people results. But on the first result item i am not able to see the hover panel when i hover over that item. same is the case when move to other pages of the result. Only for the first item the hover panel is missing. screen shot when mouse hovered on the first result: screen shot when mouse hovered over the second result item: Am i missing something?
I installed tomcat and removed the comments of cgi script in web.xml in conf folder Now iam not able to understand where to place my cgi script I have read many resources and i placed it in a Webapps/Myfolder/WEB-INF/cgi/hello.cgi here hello.cgi is my sample cgi script I also typed the following in Webapps/Myfolder/WEB-INF/web.xml ` <web-app> <servlet> <servlet-name>cgi</servlet-name> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>cgiPathPrefix</param-name> <param-value>WEB-INF/cgi</param-value> </init-param> <load-on-startup>5</load-on-startup> </servlet> ` Now iam not understanding where should i map my cgi script here I am not getting any idea what exactly this web.xml does Can any one provide a solution how can i do this.
im trying to run a cgi script (.cgi) with tomcat. I am getting the below error and cant find out whats wrong. I know i should really use apache and mod proxy but this really isnt my area of expertise so im taking the easy way out! Thanks for any help. java.io.IOException: Cannot run program "perl" (in directory "C:\Java\tomcat\webapps\my_app_name\WEB-INF\cgi"): CreateProcess error=2, The system cannot find the file specified java.lang.ProcessBuilder.start(ProcessBuilder.java:459) java.lang.Runtime.exec(Runtime.java:593) java.lang.Runtime.exec(Runtime.java:431) org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1705) org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:597) javax.servlet.http.HttpServlet.service(HttpServlet.java:627) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)
Who knows a collection with limit and ability to remove old items before add new, if limit is reached? Old are the entries, which were placed at the beginning.
Please don't say EHCache or OSCache, etc. Assume for purposes of this question that I want to implement my own using just the SDK (learning by doing). Given that the cache will be used in a multithreaded environment, which datastructures would you use? I've already implemented one using and , but I'm curious if any of the new concurrent collections would be better candidates. UPDATE: I was just reading through when I found this nugget: If you need constant-time access and want to maintain the insertion order, you can't do better than a LinkedHashMap, a truly wonderful data structure. The only way it could possibly be more wonderful is if there were a concurrent version. But alas. I was thinking almost exactly the same thing before I went with the LinkedHashMap + Collections#synchronizedMap implementation I mentioned above. Nice to know I hadn't just overlooked something. Based on the answers so far, it sounds like my best bet for a highly concurrent LRU would be to extend using some of the same logic that LinkedHashMap uses.
It seems that an equation factor must be “squared” as a convenient approximation to balance out some other series of factors invisibly . Might $E=mc^{1.95}$ work as well as $E=mc^2$? Might $A^2+B^2=C^2$ also work if all the factors used the same but different power and be even more accurate? Does anyone know of such a triangle that the current formula comes out to an even number.
I mean, why is $F=ma$? Why not $m^{0.123}$, $a^{1.43}$ or some random non-integers or irrational? I hope you understand that my question isn't limited just to force, energy, velocity, etc.; it also extends to the area of a square, circle, etc. and all other formulas. I think the whole thing starts with direct proportionality. Most of them tell about the area of a circle, $A = πr^2$, where π is 3.14159..... an irrational number! It's not about the constant. I am talking about the power of a physical quantity. I know why it has pi. It's because we chose the constant for area square to be one. If we chose it to be 1 for the circle then the area of a square will have a constant, 1/pi. I've edited the question to 'rational exponents' since all are giving me examples of decimal non-integers.
I have a HashMap<Object, Student> where the Object is the ID of the Student, and the Student is an object from Student. How can I resort the HashMap by the Students name, student->getName()?
I am relatively new to Java, and often find that I need to sort a Map<Key, Value> on the values. Since the values are not unique, I find myself converting the keySet into an array, and sorting that array through array sort with a custom comparator that sorts on the value associated with the key. Is there an easier way?
I have been taught that $0.\overline9=1$. Now if we think of the finite series' in turn, each closer in turn to $1$ than the previous: 0.9 0.99 0.999 etc. If we called the difference between this series and $1$ e then this difference approaches zero as the series is extended. Next, I imagine constructing a rectangle of length l and height e. Clearly the height approaches zero as the length approaches 1. Would this mean that the limit of a two dimensional shape (a rectangle in this case) is a one dimensional shape (an interval)? I would have though that for any e the shape would be a rectangle, but that a rectangle of zero width is a line segment.
I'm told by smart people that $$0.999999999\ldots=1$$ and I believe them, but is there a proof that explains why this is?
Quite frequently as a user, I see posts like this: On Linux systems (either 32- or 64-bit), what is the size of pid_t, uid_t, and gid_t? Source: It could probably be argued that this post does not meet the guidelines; for example, it shows no evidence of research. Yet this question was useful to me and a number of other people. I've posted questions like this in the past - some of the questions are well received, some are voted down or flagged for closing. It seems that some people are too ready to vote down or close a question without really reading the question and trying to understand whether the question may be useful to other people. It seems that some users have gotten too pedantic with closing and voting down answers? Maybe a badge is needed for people who try to offer "helpful" comments when they close or vote down a question?
Note: If you're looking for a simple explanation as to why comments aren't required on downvotes, see . I used to get "upset" (though that is too strong a term) when I got downvoted without comment. If my answer isn't good enough then I'd like to know why. Not only does it improve the answer for the OP but it improves my knowledge too. Where the down-vote has been explained I've found it useful & it has improved my answer, or forced me to delete the answer if it was totally wrong. So is there any way we can encourage people to leave a comment? Perhaps they don't lose rep if they explain their down-vote? I must admit though that I haven't always explained my down-vote either so you could call me a hypocrite. I've also grown a thicker skin over the months of using SO (it seems to have come with the higher rep score ;-)), so I'm less bothered about this now.
How to prove that one of $2,3,6$ is a square modulo every prime $p$? I am thinking in terms of quadratic reciprocity but not getting any clue.
To find when $6$ is a square I divided $6$ in to $2$ and $3$ by The Legendre symbol. $$\frac{6}{p} = \frac{2}{p} \times \frac{3}{p}$$ I know that we can multiply the cases of when $2$ and $$ are squares because then it is (1)(1) by Legendre. $2$ is a square when $p \equiv 1 \pmod{8}$ $3$ is a square when $p \equiv 1 \pmod{12}$ so $6$ is a square when $p \equiv 1 \pmod {24}$ ($96$, but the $lcm(8,12)= 24$) but how do I find the cases when $2$ and $3$ are both NOT squares? because then $6$ would be a square then as well, $(-1)(-1) = 1$ by Legendre.
When we do su John I switch as user John. When we do su - John I switch as user John having user John's environment. As far as I can see the first option is useless. What is the use of switching to another user and not have that user's environment? Am I wrong? What is the difference in use cases between these 2 options?
I don't understand why su - is preferred over su to login as root.
I understand what negative velocity means, but how does negative velocity and negative acceleration works together. Although it depends on frame of reference, how negative acceleration with negative velocity make it more negative. (I understand the math but want an intuitive explanation.)
Why is speed and acceleration negative when $V_1$ of an object is say 150m/s, $V_2$ is 0 m/s and $\Delta d=0.50\,\rm m$? I found the time it takes which is 0.0033s and the acceleration to be 90909.09 m/s$^2$. My questions: What do negative velocity and negative acceleration mean? Is it negative because it is slowing down? Why is the acceleration so big? Is that even reasonable?
I'm using PostgreSQL 11.3 (compiled by Visual C++ build 1914, 64-bit) and I want to access a table in another Postgres database using postgres_fdw but since the original table has an SP-GiST index on a geometry column, the query on the foreign table fails with "ERROR: cache lookup failed for type 0", even if the table is empty. Does anyone knows how to query the foreign table without throwing the error and still keeping the SP-GiST index on the remote table? Here's a sample SQL to reproduce the error: Create remote database: CREATE DATABASE remote WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'English_United States.1252' LC_CTYPE = 'English_United States.1252' TABLESPACE = pg_default CONNECTION LIMIT = -1; Create local database: CREATE DATABASE localdb WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'English_United States.1252' LC_CTYPE = 'English_United States.1252' TABLESPACE = pg_default CONNECTION LIMIT = -1; Setup remote database (connect to 'remote' database before running the following SQL): CREATE EXTENSION postgis; CREATE EXTENSION postgres_fdw; CREATE SCHEMA remote; CREATE TABLE remote.locations ( id bigserial NOT NULL UNIQUE, name character varying, lonlat geometry NOT NULL, PRIMARY KEY (id) ) WITH ( OIDS = FALSE ); CREATE INDEX remote_locations_lonlat_idx ON remote.locations USING spgist (lonlat); Setup local database (connect to 'localdb' database before running the following SQL): CREATE EXTENSION postgis; CREATE EXTENSION postgres_fdw; CREATE SCHEMA localdb; CREATE SERVER remote FOREIGN DATA WRAPPER postgres_fdw OPTIONS (host 'localhost', dbname 'remote', port '5432', extensions 'postgis'); CREATE USER MAPPING FOR postgres SERVER remote OPTIONS (user 'postgres', password 'YOUR_POSTGRES_USER_PASSWORD'); IMPORT FOREIGN SCHEMA remote FROM SERVER remote INTO localdb OPTIONS (import_not_null 'true'); Querying the foreign table... SELECT * from localdb.locations; ...results in: ERROR: cache lookup failed for type 0 CONTEXT: remote SQL command: SELECT id, name, lonlat FROM remote.locations SQL state: XX000
I've been noticing something like this popping up every 15 seconds in my server logs: 2020-01-30 21:10:30 UTC::@:[24969]:ERROR: XX000: cache lookup failed for type 0 2020-01-30 21:10:30 UTC::@:[24969]:CONTEXT: automatic vacuum of table "myschema.mytable" 2020-01-30 21:10:30 UTC::@:[24969]:LOCATION: get_typlenbyval, lsyscache.c:2036 When I manually run a VACUUM ANALYZE myschema.mytable; it runs without any error, and the error in my logs goes away. However, inevitably, it returns again at some point. The table in question is defined as follows: tfs_dev=> \d myschema.mytable; Table "myschema.mytable" Column | Type | Collation | Nullable | Default -------------+-----------+-----------+----------+--------------------------------------------------------------------------- level | text | | not null | id | integer | | not null | nextval('myschema.mytable_id_seq'::regclass) text_id | text | | | name | text | | | geom | geometry | | | valid_dates | tstzrange | | | tstzrange(NULL::timestamp with time zone, NULL::timestamp with time zone) adjacent | integer[] | | | valence | integer | | | color | smallint | | | 0 Indexes: "mytable_pkey" PRIMARY KEY, btree (level, id) "mytable_text_id_key" UNIQUE CONSTRAINT, btree (text_id) "mytable_gix" gist (level, geom, id, text_id, name) "mytable_spgix" spgist (geom) "mytable_text_id_ix" btree (text_id, level, id, name) Referenced by: TABLE "otherschema.othertable" CONSTRAINT "othertable_mytable_fk" FOREIGN KEY (level, level_id) REFERENCES myschema.mytable(level, id) TABLE "otherschema.othertable2" CONSTRAINT "othertable2_mytable_fk" FOREIGN KEY (level, level_id) REFERENCES myschema.mytable(level, id) Many other posts with a similar error seem to be about a foreign data wrapper, which is present in this database, but not with this table/schema.
Suppose that the discrete random variable X can only assume values in the interval [0,1]. Among all such random variables, which has the largest variance?
How can I prove that a random variable taking values in $[0,1]$ has variance no larger than $\frac{1}{4}$? If it matters, discrete and continuous proofs are both welcome.
I am assuming that there is a maximum level in Fallout 4 and because taking perks is tied to leveling, there is a presumable maximum number of perks that you can take. Is there a maximum level in Fallout 4? And by extension, is there a maximum number of perks that you can take?
Building a character in Fallout 4 gives you 28 points in total to assign to your SPECIAL attributes during the initial character build - compared to 40 points in Fallout 3/ Fallout New Vegas. In Fallout New Vegas you could increase your SPECIAL attributes over the course of the game via temporary buffs but you could also permanently increase your attributes using perks and implants. Using all available perks and implants there was a maximum of 61 SPECIAL points available (reference: ) I realise it's day one and we've all got a long way to go but hopefully someone else can answer this question before I can: How many permanent SPECIAL points are available in Fallout 4?
My Dockerfile looks like this: FROM php:5-apache RUN docker-php-source extract \ && docker-php-ext-install mysql mysqli pdo pdo_mysql \ && docker-php-source delete Unfortunately, when I click on a cgi file I see the actual cgi script rather than the HTML file inside the browser: #!/usr/bin/perl -w print "Content-type: text/html\n\n"; ... How is it possible to configure cgi? Thank you in advance,
I would like to configure Apache 2 running on Kubuntu to execute Perl CGI scripts. I've tried some steps that I came across by googling, but nothing seems to work. What is the right way of achieving this?
After fixing this error: I received the error: Cannot evaluate expression because the current thread is in a stack overflow state. Here is where I initially get the error (As you can see, it's the same line as the first error): UPDATED: When I add the ignore statement to my CreateMap<>(); declaration: CreateMap<Pages, PagesViewModel>() .ForMember(m => m.PageTypes, x => x.Ignore()) .ForMember(m => m.SiteMap, x => x.Ignore()) .ForMember(m => m.Row, x => x.Ignore()) .ForMember(m => m.Tracks, x => x.Ignore()); I received this message: System.Reflection.TargetParameterCountException: Parameter count mismatch. So i removed the Ignore statement and the CreateMaps are as follow: CreateMap<Pages, PagesViewModel>(); CreateMap<PagesViewModel, Pages>(); the error does one of the following (all three have happened and hard to reproduce a specific one): The first one is the application just keeps running and eventually times out. The program '[5256] iisexpress.exe' has exited with code -2147023895 (0x800703e9). moves on to another part of the code (my PagesViewModel) (UPDATED): private string PagesURL; [Required] [Display(Name = "Page URL")] [DataType(DataType.Url)] [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long and no longer than {1} characters.", MinimumLength = 2)] public string pagesURL { get { return PagesURL; } set { PagesURL = HttpUtility.UrlEncode(value); } } When this third one comes up, I get the same error: Cannot evaluate expression because the current thread is in a stack overflow state. I have tried separating out the code to see where and why it's doing this by trying the following: List<Pages> getPages = db.Pages.ToList(); List<Pages> getPagesOrdered = getPages.OrderBy(o => o.pageOrder).ToList(); List<PagesViewModel> convertPages = new List<PagesViewModel>(); foreach (Pages item in getPages) { PagesViewModel pagesViewModel = new PagesViewModel(); pagesViewModel.pageDescription = item.pageDescription; //...loops through all other properties convertPages.Add(pagesViewModel); } It gets all Pages from the database context, orders it and declared the PagesViewModel fine BUT when it goes inside the for loop, it declares the pagesViewModel variable fine and then right after it, before it even jumps to the pagesViewModel.pageDescription = item.pageDescription; line the application crashed The program '[5176] iisexpress.exe' has exited with code 0 (0x0). MrChief, in the answer I linked at the top, suggested it is how my models connect with each other that is causing this issue. For example, PagesViewModel connects to public virtual PageTypeViewModel PageTypes { get; set; } and PageTypesViewModel connects back to PagesViewModel public ICollection<PagesViewModel> Page { get; set; } My model requires those be connected and it works fine without auto mapper (with the exception of me trying to set each variable manually which cause the application to crash). I'm stuck and would appreciate some insight. UPDATE: After going here: a co-worker of mine was able to get us the symbols for AutoMapper so we can trace into that source code. We added a trace breakpoint to output what was actually causing the issue. Here is what it output a few hundred times: From "Pages"."PageTypes" to "PagesViewModel"."PageTypes" So MrChief's prediction was correct. Now how to fix this, I don't know. This is where the PageViewModel links to the PageTypes view model: public virtual PageTypeViewModel PageTypes { get; set; } and then in PageTypesViewModel is links to PageViewModel: public ICollection<PagesViewModel> Page { get; set; } This is how EF6 generated my model. I went about this doing model first. I might have forgotten to include some important information so let me know if there is anything missing. Thank you in advance for the help.
I know java and would normally put in getter/setter methods. I am interested in doing it in C# with the following code, but it throws a StackOverflow exception. What am I doing wrong? Calling Code c.firstName = "a"; Property Code public String firstName; { get { return firstName; } set { firstName = value; } }
I have 2 questions regarding security issues related to initialization vectors used in AES CBC Consider that I'm using a sequence number (which increments with every encryption) as an initialization vector. Would this be a security issue? Is there some way that an attacker who knows the sequence numbers and in turn knows the IV, be able to decrypt even some part of the data, if not the whole? I'm asking this question because some of the comments on the 1st answer in the following link seem to suggest that using a counter for an IV would not be a good choice. If it is possible to perform such an attack, can you provide an explanation of how this would be possible? I tried searching. But, none of the sources I found seem to answer why the IV cannot take values from a counter. They only talk about safety in terms of storage. The other question is related to transmission of IVs. I searched quite a bit and everyone says that the IV need not be secret. But, if IV is exposed, isn't it possible for a man in the middle to change the IV so that the end result at the decryption end will fail?
I just learned that using CBC encryption with an IV which is predictable is not secure. From what I understand, using certain plain texts, and then guessing the IV that it uses, the attacker can verify if the IV he guessed was right. How does this qualify as an attack?
This is a pretty easy question, but I can't quite figure out the answer. I have: The initial position of a projectile. The gravity vector. The (stationary) target I want to hit. A maximum launch speed of the projectile. I want to calculate the initial velocity the projectile must be launched at to hit the target, assuming it follows a ballistic trajectory.
If I have a point which I want to hit at the end or during a parabolic arc, how would I calculate the needed x and y velocity?
I would be mostly obliged if you can help me: I would like to insert a graph like this: In my case, I need 3 inputs, 4 hidden layers and 2 outputs. I know that there are similar topics, but I do not understand how to modify the code. Thank you. EDIT For example, \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows} \begin{document} \begin{figure}[htp] \centering \begin{tikzpicture}[ plain/.style={ draw=none, fill=none, }, net/.style={ matrix of nodes, nodes={ draw, circle, inner sep=8.5pt }, nodes in empty cells, column sep=0.6cm, row sep=-11pt }, >=latex ] \matrix[net] (mat) { |[plain]| \parbox{1cm}{\centering Input\\layer} & |[plain]| \parbox{1cm}{\centering Hidden\\layer} & |[plain]| \parbox{1cm}{\centering Output\\layer} \\ & |[plain]| \\ |[plain]| & \\ & |[plain]| \\ |[plain]| & |[plain]| \\ & & \\ |[plain]| & |[plain]| \\ & |[plain]| \\ |[plain]| & \\ & |[plain]| \\ }; \foreach \ai [count=\mi ]in {2,4,...,10} \draw[<-] (mat-\ai-1) -- node[above] {I\mi} +(-1cm,0); \foreach \ai in {2,4,...,10} {\foreach \aii in {3,6,9} \draw[->] (mat-\ai-1) -- (mat-\aii-2); } \foreach \ai in {3,6,9} \draw[->] (mat-\ai-2) -- (mat-6-3); \draw[->] (mat-6-3) -- node[above] {O1} +(1cm,0); \end{tikzpicture} \end{figure} \end{document} I do not understand how to add or remove units. Most importantly, what does \ai or \aii stand for?
I need draw some picture, but I don't know how do that. First, the simple graph with basic shapes, arrow,.... And then, draw a picture with math symbol or equation in math environment. Like that: Please help me draw two picture. And if you don't mind, please show me some tools which can help me draw easily and generate to latex code, or some document help me learnt quickly. Thanks for your help
If $90! = (90)(89)(88)...(2)(1)$, then what is the exponent of the highest power of $2$ which will divide $90!$ ? How would I apply one of the easiest method from ? I need help on applying the link to this question. I do not understand which one explains my case, and how I can solve using the method. I would appreciate if someone showed how it is applied to this
How does one find the highest power of a prime $p$ that divides $N!$ and other related products? Related question: How many zeros are there at the end of $N!$? This is being done to reduce abstract duplicates. See and for more details.
We are on our Honeymoon for 6 months. We spent two months in South America and then came to the states. Our 90 days is nearly up and after it is; we are planning on spending the last three weeks of our honeymoon in Vancouver Canada. The problem is that our flights home go back through America. So we have spent 90 days in the states under the Visa Waiver Program. Then three weeks in Canada; and we will have to come back through America to get home. Our problem is that America seems to count going to Canada as part of the 90 days: From the CBP website: When traveling to the U.S. with the approved ESTA, you may only stay for up to 90 days at a time - and there should be a reasonable amount of time between visits so that the CBP Officer does not think you are trying to live here. There is no set requirement for how long you must wait between visits. We only want to come back to the States for 1 day in transit to get our flight home but are worried that the border patrol won't let us back in because we have only been to Canada and not back to our country of residence. Do you think this is a possibility? Will they let us back in if it is just to fly home? We have tried to change our flights to avoid coming back through the States but have been unable to do so.
According to numerous online reports (e.g. ), a VWP national who enters the US by air solely in transit to Canada or Mexico, and then spends over 90 days in Canada/Mexico, unless a resident of Canada/Mexico, will be in violation of the VWP, refused re-entry to the US and barred from future travel under the VWP. Is this really correct? It would imply a VWP national wishing to spend e.g. 4 months in Mexico would need a tourist/transit visa for the US if both the trip to and from Mexico takes place with a flight connection in the US. This would frankly be ridiculous. My understanding is instead that stays in Canada/Mexico do not count towards the VWP admission duration on an automatic, strictly binding basis (as the reports suggest); rather, if the stay in Canada/Mexico is sufficiently short that it can reasonably be considered a mere side trip from the US, the CBP is likely not to grant a new 90-day admission period, but only the remainder of the original 90 days.
Although group of order $p^2$ are well known, the rings of order $p^2$ may not be so well known; I was feeling that there could be more than two rings of order $p^2$. I have two questions related to this, and I don't know whether the questions I am posing are trivial. $\mathbb{Z}_{p^2}$ and $\mathbb{Z}_p\oplus\mathbb{Z}_p$ are obvious examples of rings (with unity) of order $p^2$. Question 1. Are there more than two rings (with unity) of order $p^2$? Question 2. If there are more than two rings of order $p^2$ (with unity), is the group of units of these rings known?
I'm trying to classify unital commutative rings of order $p^2$, where $p$ is a prime. At first, I happened to neglect the 'unital' and 'commutative' requirements, and after an arduous route I managed to show that there are $11$ such rings up to isomorphism. Some are non-commutative and non-unital, and the journey to that result is a bit ugly for a class on commutative algebra. This should be easier if we only consider unital rings of order $p^2$. (It's easy to show that if it's unital, then it's commutative in this case). But so far, I haven't found a solution that doesn't use the fact that I found representations for the $11$ rings. I am certain that a much less technical and messy method to find unital commutative rings of order $p^2$ is possible. For reference on the context, this question comes amidst a review of the Chinese Remainder Theorem, the Structure Theorem on Modules over a PID, tensor products, and algebras. I heavily suspect that if I were more fluent in applying the CRT, I would be able to get there. Do you have any ideas? By the way, I believe there are $4$. They should look like $\mathbb{F}_{p^2}, \mathbb{Z}_{p^2}, \mathbb{Z}_p [x]/(x^2),$ and (I don't know a convenient name for the fourth, but e.g., the Klein 4-group with standard ring structure on top, which I'm inclined to designate $\mathbb{Z}_{p \times p}$). In a more convenient designation, 1 is built on the additive group $C_{p^2}$ and 3 are built on $C_p \times C_p$. I would be content if I could enumerate how many rings are on each additive group, up to homomorphism, instead of actually classifying them.
Let $a,b\in G$, with finite $G$. Assume the order of element $|a|$, $|b|$ is finite, then what i want to know is $|ab|$ finite? First what i know is if $ab=ba$, $i.e$, $G$ is abelian, $|ab|$ is finite. For $(|a|,|b|)=1$, $|ab| = |a| |b|$, and general case i notice that $|ab| = \textrm{lcm}(|a|,|b|) = \frac{|a||b|}{gcd(a,b)}$ I want to relax this by neglecting abelian condition. Then is $|ab|$ finite?, If so how one can prove this?
Let $G$ be a group and let $a,b$ be two elements of $G$. What can we say about the order of their product $ab$? says "not much": There is no general formula relating the order of a product $ab$ to the orders of $a$ and $b$. In fact, it is possible that both $a$ and $b$ have finite order while $ab$ has infinite order, or that both $a$ and $b$ have infinite order while $ab$ has finite order. On the other hand no examples are provided. $(\mathbb{Z},+), 1$ and $-1$ give an example of elements of infinite order with product of finite order. I can't think of any example of the other kind! So: What's an example of a group $G$ and two elements $a,b$ both of finite order such that their product has infinite order? Wikipedia then states: If $ab = ba$, we can at least say that $\mathrm{ord}(ab)$ divides $\mathrm{lcm}(\mathrm{ord}(a), \mathrm{ord}(b))$ which is easy to prove, but not very effective. So: What are some similar results about the order of a product, perhaps with some additional hypotheses?
Whenever I write 23842899791470069 number into my browser's console it becomes 23842899791470068. Observed this in chrome and firefox. Can anyone confirm and explain the reason why is that so. Thanks in advance.
Is this defined by the language? Is there a defined maximum? Is it different in different browsers?
It is well-known that there is "no" nowhere vanishing continuous tangent vector field on $S^2$, by the so-called Hairy-ball theorem. But then, is there a continuous tangent vector field on $S^2$ which vanishes at only one point?
I need to find a vector field as described in the title. I was given a couple hints, and this is what I have so far. Let $\varphi:S^2\setminus\{N\}\to\mathbb{R}^2$ be stereographic projection ($N$ is the north pole). Let $Y$ be a smooth, non-zero vector field on $\mathbb{R}^2$ that dies off to $0$ "at infinity." Since $\varphi$ is a diffeomorphism, we can push $Y$ forward along $\varphi^{-1}$ to get a smooth vector field $(\varphi^{-1})_*Y_{\varphi(p)}$ on $S^2$. But this vector field is not zero at the north pole... it's undefined. So can I just define my vector field on $S^2$, call it Z, to be the pushforward of $Y$ (as above) away from $N$ but $0$ at $N$? And if so, do we still have smoothness?
Let $G×M→G$ be a properly discontinuous action of a group $G$ on a differentiable manifold $M$. Prove that the manifold $M/G$ is orientable if and only if there exists an orientation of $M$ that is preserved by all the diffeomorphisms of $G$. (Each group element $g∈G$ gives a diffeomorphism of M, namely the map $\phi_g:M→M$ sending $x∈M$ to $g⋅x$. These are the diffeomorphism the exercise is talking about) My attempt: since the action is properly discontinous it induces a smooth manifold structure on $M/G$.Let $π:M→M/G$ be the quotient map. If $M/G$ is orientable, then I can choose an oriented atlas $(U_i, x_i)$ on $M/G$. $π^{ -1}(U_i)$ is a cover of M. And here I'm stucked.
I'm trying to solve the following exercise in Lee's book. Suppose M is a connected, oriented smooth manifold and Γ is a discrete group acting freely and properly on M. We say the action is orientation-preserving if for each γ ∈ Γ, the diffeomorphism $x\rightarrow γx$ is orientation-preserving. Show that M/Γ is orientable if and only if Γ is orientation-preserving. Assuming $\Gamma $ to be orientation-preserving, I tried taking a commutative diagram taking an orientation of M to one of M$/\Gamma$ and vice-versa and tried using local diffeomorphism arguments to prove the orientability of M$/\Gamma$. However, I can't make this proof explicit. Nor can I proceed for the other direction. Can someone please provide a proof for both if and only if parts? Thanks in advance.
I want to change the colors of root@MyComputer:~#and when i type the ls command show me the result as colors! I write a simple BB code to display what i want: [color=red]root@MyComputer:[/color][color=blue]~[/color]# I had this command but it does not apply whan open a new terminal window PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\:\[\033[01;34m\]\w\$ ' thank you in advance
My current prompt is colorized and edited as so - #!/bin/bash # GIT Prompt help if tput setaf 1 &> /dev/null; then tput sgr0; # reset colors bold=$(tput bold); reset=$(tput sgr0); txtund=$(tput sgr 0 1); black=$(tput setaf 0); blue=$(tput setaf 33); cyan=$(tput setaf 37); green=$(tput setaf 64); orange=$(tput setaf 166); purple=$(tput setaf 125); red=$(tput setaf 124); violet=$(tput setaf 61); white=$(tput setaf 15); yellow=$(tput setaf 136); else bold=''; reset="\e[0m"; black="\e[1;30m"; blue="\e[1;34m"; cyan="\e[1;36m"; green="\e[1;32m"; orange="\e[1;33m"; purple="\e[1;35m"; red="\e[1;31m"; violet="\e[1;35m"; white="\e[1;37m"; yellow="\e[1;33m"; fi; ORIG=$PS1 HOST=$HOSTNAME PS1="\[${txtund}${green}\]${HOST}\[\[${reset}\]"; PS1+="\$(prompt_git \"\[${white}\] on \[${violet}\]\")"; PS1+="\[${reset}\]"; PS1+="\[ at - ${orange}\W\]"; PS1+="\[${reset}\]"; PS1+="\[ - \u \]"; PS1+="\n\$ "; I know that the line PS1+="[ - \u ]"; will show me my current user. However, I want that section to be red if it is root. All other users should be the default color of gray. Is there a way to change the color in that section based off of current user or should I just declare a variable and use an IF statement to insert that section or a modified section with red as a color? My expected output is gray named user for all normal users. Root should be red. This is BASH.
I'm looking at selling my MacBook for parts. It's completely broken: it won't turn on or charge. Is it possible to obtain files from it? If so, what security measures should I be taking? Should I be removing the hard drive or do I not have to worry about it?
My Mac won't turn on but I'd like to sell it for spare parts. How can I make sure there's no personal information stored on the hard drive for the buyer to retrieve?
I have a landing page that I'm wanting to get my logo centered. Struggling to figure how to get it exactly in the center and stay there on device scale. I have got the video background to scale accordingly, but I cannot get my logo to go exactly into the center. Here is a fiddle shows a black box and in the square I'm wanting to get centered within the landing div. This is the specific div needing to be sorted out. .main_logo{ background:#000; position:relative; float:left; width:300px; height:200px; z-index:2000; display: block; margin: auto; }
I have a div 200 x 200 px. I want to place a 50 x 50 px image right in the middle of the div. How can it be done? I am able to get it centered horizontally by using text-align: center for the div. But vertical alignment is the issue..
I have this question: Let $\omega_1$ the least uncountable cardinal, and for all $n \in \omega$, $n \geq 1$. Let $\omega_{n+1}$ the least cardianal greater than $\omega_n$. Show that $$\bigcup_{n \in \omega}\omega_n$$ is a cardinal. My try: Let $f_n : \omega_n \rightarrow A_n $ a bijectionfor all $n \in \omega$. And let $$F_n :\bigcup_{n \in \omega}\omega_n \rightarrow \bigcup_{n \in \omega}A_n$$. $F(x) = f_n(x)$, where $n = min\{ n: x \in A_n\}$. An d prove that $F$ is a bijection. But I'm not have sucess.
I have to prove the following: Let $\omega_1$ be the least uncountable cardinal and, for each $n \in \omega$ (here, $\omega$ is the set of natural numbers denoted as an ordinal/cardinal), $n\ge1$, let $\omega_{n+1}$ be the least cardinal that is greater than $\omega_n$. Show that $\bigcup_{n\in\omega}\omega_n$ is a cardinal. I suppose the proof has something to do with transfinite induction/recursion, but I don't know exactly how I'm supposed to use it. Any thoughts?
I am working on a development where I should invoke my testcases through the Method Reflect API. Currently, I am able to invoke the method and I am also able to get the output after invoking a specific method. But after the method invocation, the invoke method is throwing NullPointerException. I have tried to add a try and catch so that, I can know exactly which part of my code is throwing the NullException. Based on my observation this code is the culprit here. passed = (boolean) payload.invoke(testcase); Here's my code surrounded with try and catch: public void execute() { try { Matcher m = Pattern.compile("([^()]*)[(]([^()]*)[)]").matcher(getPayloadString()); m.find(); boolean passed; if (m.group(2).isEmpty()) { System.out.println("m.group(2) is empty!!!!\n"); //This line of code is being executed. Because my argument is empty. passed = (boolean) payload.invoke(testcase); System.out.println("Boolean is: " + passed + "\n"); }else { System.out.println("Inside else!!!\n"); passed = (boolean) payload.invoke(testcase, ObjectCreator.convertParameters(m.group(2))); System.out.println("Boolean2 is: " + passed + "\n"); } //If already invoked the method, this line should be executed. But now it didnt print out this debug message below. System.out.println("Already exited the convertParameters()\n"); String output = passed ? "PASS" : "FAIL"; TestCase.printResult(testcase.getClass().getName(), output, "", "", ""); } catch (Exception ex) { System.out.println("Exception in execute is : " + ex.toString() + "\n"); } } I am not really sure why is it throwing NULLPointerException.
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
I have been looking around on Google and StackOverFlow and I have not been able to find a good SIMPLE definition for: @Override when it is used. Can someone help me find a very simple definition for this? Thanks.
What are the best practices for using Java's @Override annotation and why? It seems like it would be overkill to mark every single overridden method with the @Override annotation. Are there certain programming situations that call for using the @Override and others that should never use the @Override?
I want to iterate through an enum so I can call a method with each value of that enum. How can I do that? enum Base { ANC, BTC, DGC }; XmlDocument doc; doc = vircurex.get_lowest_ask(Base.ANC) doc = vircurex.get_lowest_ask(Base.BTC) doc = vircurex.get_lowest_ask(Base.DGC) I want it instead to be something like foreach (var val in values) doc = vircurex.get_lowest_ask(....) Is there a way to do this?
How can you enumerate an enum in C#? E.g. the following code does not compile: public enum Suit { Spades, Hearts, Clubs, Diamonds } public void EnumerateAllSuitsDemoMethod() { foreach (Suit suit in Suit) { DoSomething(suit); } } And it gives the following compile-time error: 'Suit' is a 'type' but is used like a 'variable' It fails on the Suit keyword, the second one.
I can access my user profile, and view all the tabs execpt for the inbox one. I get the "Oops! Something Bad Happened!", and a cute panda falling off a slide. The url bar shows this: It isn't just the profile page link that is broken, it also the Chrome notifications - I get them but clicking on them takes me to the error page as well.
I can't access my global inbox. When I try to , I get Oops! Something Bad Happened!. I am currently part of one private beta, that may be related. I have also noticed that sometimes (but not always), the drop-down inbox link at the top shows old items only. That may or may not be related.
I have Ubuntu 15.04 installed on Lenovo Z5070 laptop. For Nvidia 840m I have nvidia-346 installed. While waking up from sleep I get the following error on a black screen drm: hsw_uncalimed_reg_clear Error unknown claimed register before writing to c7204 drm: hsw_unclaimed_reg_check I sshed into my system in that state. Here's the tail of xorg.0.log [ 70.924] (II) modeset(G0): EDID vendor "CMN", prod id 5579 [ 70.924] (II) modeset(G0): Printing DDC gathered Modelines: [ 70.924] (II) modeset(G0): Modeline "1920x1080"x0.0 136.62 1920 1964 1992 2070 1080 1082 1086 1100 -hsync -vsync (66.0 kHz eP) [ 70.924] reporting 3 4 37 280 [ 71.376] reporting 3 4 37 280 [ 73.380] (II) XKB: reuse xkmfile /var/lib/xkb/server-7C75F152E85183199599C3E0B919739C0EE668AA.xkm [ 76.529] reporting 3 4 37 280 [ 77.733] reporting 3 4 37 280 [ 77.834] (II) modeset(G0): EDID vendor "CMN", prod id 5579 [ 77.834] (II) modeset(G0): Printing DDC gathered Modelines: [ 77.834] (II) modeset(G0): Modeline "1920x1080"x0.0 136.62 1920 1964 1992 2070 1080 1082 1086 1100 -hsync -vsync (66.0 kHz eP) [ 77.834] reporting 3 4 37 280 [ 77.857] reporting 3 4 37 280 [ 110.090] reporting 3 4 37 280 [ 121.436] reporting 3 4 37 280 [ 167.116] reporting 3 4 37 280 [ 178.272] reporting 3 4 37 280 [ 217.841] reporting 3 4 37 280 [ 243.717] reporting 3 4 37 280 [ 1345.073] reporting 3 4 37 280 [ 1533.403] reporting 3 4 37 280 [ 1537.357] (WW) NVIDIA(GPU-0): Failed to enter interactive mode. [ 1537.357] (II) NVIDIA(0): Setting mode "NULL" [ 1537.358] (EE) NVIDIA(0): Failed to allocate primary buffer: error [ 1537.358] (EE) NVIDIA(0): *** Aborting ***
My laptop diagnostic shows several pre-fails and has other issues so I am urgently shopping for a new laptop, my second using Ubuntu. I need a laptop with good graphics capabilities and have come across a couple with the Nvidia GeForce 840M graphics card. In other words, I do not have a problem now and am hoping to avoid one. My research on Ask Ubuntu and elsewhere shows that there have been some bugs with Ubuntu 14.04 and Nvidia drivers (not just for the 840M driver) but that fixes were made or a least suggested. But I have seen nothing definitive, e.g. the Ubuntu Certification for laptops is barely starting with 14.04. I am about to spend a 1000 dollars and would love a little more assurance before I proceed -- my understanding is that a Live CD cannot perform a full simulation. Are there easy-to-recognize concrete factors which make compatibility (more) predictable, such as specific models of computer and their processors? I am a considering a with an Intel i5 4200M and an with an Intel i7 4700HQ. Both use an Nvidia 840M graphics card.
I was just looking through the itertools documentation, looking for a way to get rid of a nested for loop like this: for a in b: for c in b: <statement> However, I couldn't find anything. Is there not a function for this? Should I just keep the nested loops?
Is there a simple way to flatten a list of iterables with a list comprehension, or failing that, what would you all consider to be the best way to flatten a shallow list like this, balancing performance and readability? I tried to flatten such a list with a nested list comprehension, like this: [image for image in menuitem for menuitem in list_of_menuitems] But I get in trouble of the NameError variety there, because the name 'menuitem' is not defined. After googling and looking around on Stack Overflow, I got the desired results with a reduce statement: reduce(list.__add__, map(lambda x: list(x), list_of_menuitems)) But this method is fairly unreadable because I need that list(x) call there because x is a Django QuerySet object. Conclusion: Thanks to everyone who contributed to this question. Here is a summary of what I learned. I'm also making this a community wiki in case others want to add to or correct these observations. My original reduce statement is redundant and is better written this way: >>> reduce(list.__add__, (list(mi) for mi in list_of_menuitems)) This is the correct syntax for a nested list comprehension (Brilliant summary !): >>> [image for mi in list_of_menuitems for image in mi] But neither of these methods are as efficient as using itertools.chain: >>> from itertools import chain >>> list(chain(*list_of_menuitems)) And as @cdleary notes, it's probably better style to avoid * operator magic by using chain.from_iterable like so: >>> chain = itertools.chain.from_iterable([[1,2],[3],[5,89],[],[6]]) >>> print(list(chain)) >>> [1, 2, 3, 5, 89, 6]
I'm currently using precise. I need to upgrade a certain package (namely and it's dependencies) to a newer version, which is currently found in raring (alfa at the time of writing this). How to do it ? What will happen if I just add to my sources.list: deb http://archive.ubuntu.com/ubuntu raring main Will the next apt-get update / apt-get upgrade, upgrade most of my system to raring then ?
I need these packages with the latest upstream version backported for ubuntu/natty libccid_1.4.5-0ubuntu1_amd64.deb libpcsclite1_1.8.1-0ubuntu1_amd64.deb libpcsclite-dev_1.8.1-0ubuntu1_amd64.deb libusb-1.0-0_1.0.9-0ubuntu1_amd64.deb libusb-1.0-0-dev_1.0.9-0ubuntu1_amd64.deb opensc_0.12.2-1ubuntu1ppa1~natty1_amd64.deb pcscd_1.8.1-0ubuntu1_amd64.deb pcsc-tools_1.4.18-0ubuntu1_amd64.deb I tried to build them from source with update but it failed. I am not an expert at packaging and there are so many tutorials and recipes out there. Do you know a good and up to date tutorial for backporting Ubuntu packages? How do I get packages from other releases without having to build them myself?
When iterating over an object's members with a for .. in loop, the enumeration order . But, assuming the object is not modified, is iterating over it twice in the same browser during the same page visit guaranteed to give the same order? Here is sample code that tests the property I'm talking about. The question boils down to whether or not a browser may throw "not the same": a = [] b = [] for (var e in obj) a.push(e); for (var e in obj) b.push(e); // Are a and b's contents now the same? // Or is the same-ness implementation defined? for (var i = 0; i < a.length; i++) if (a[i] !== b[i]) throw "not the same"; I'm interested in the answer both according to spec and in practice on existing browsers. To be clear, I am not asking . I am asking if the order is consistent across multiple enumerations of the same object, within the context of a single visit to a web page and when the object is not being modified.
Does the "for…in" loop in Javascript loop through the hashtables/elements in the order they are declared? Is there a browser which doesn't do it in order? The object I wish to use will be declared once and will never be modified. Suppose I have: var myObject = { A: "Hello", B: "World" }; And I further use them in: for (var item in myObject) alert(item + " : " + myObject[item]); Can I expect 'A : "Hello"' to always come before 'B : "World"' in most decent browsers?
I am a Javascript beginner. i am creating function expressions dynamically and calling parameters with JSON from text file. the functions are being created correctly with the correct parameters and looping is incrementing fine. i.e it is all working. my issue is that when i call the dynamically generated function with an onclick event nothing happens and no errors. this is the function: function imgurl(arr) { for(var i = 1; i < arr.length; i++) { arr[i].fname = function() { addImage(arr[i].image, 0.5, 0.75); }; /*$scope.addImage1 = function() { //this is a sample of the function addImage('image.png', 0.5, 0.75); };*/ } }; here is the onclick event <button type="button" class="btn image1" ng-click="addImage1()">Image</button> the code imports an image into canvas when the button is clicked. i tested the dynamically generated functions by invoking them immediately with () and as they were invoked when the page loaded the function looped and imported all the images into the canvas perfectly i.e the function expressions work as expected. but when i try the onclick event i get nothing, not even an error. then i manually wrote out a test function expression and the onclick event works. from the code above: $scope.addImage1 = function() { addImage('image.png', 0.5, 0.75); }; so when i manually write out the function expression then the onclick event works but when i try with the dynamically generated expressions then the onclick does not work. i just want to mention again that the dynamically generated functions do work when i invoke immediately, i just cannot call with the onclick event.
How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves? I have seen given on Wikipedia, but unfortunately it did not help.
So, once this is calculated (10 plus modifiers), who rolls (assuming a d20???) to see if something is seen/heard/etc...and since modifiers push the number higher for the character, I would assume the roll needs to be under that number for the character to have success? If I am wrong, how does this work?
Total noob question, but the passive perception is confusing. I don't understand how to calculate it or use it, and I need help.
I am planning a visit to London for a couple of days. I will be staying at a hotel near Heathrow airport. I am planning to use the underground as follows Upon my arrival, from terminal 5 to Hounslow West, where my hotel is situated in From Hounslow West to terminal 5, to meet a colleague Then from Hounslow West to somewhere in central London, to see Big Ben and London's Eye(perhaps I will do this route once more, so 2 in total) From central London to terminal 5 What's the best way to organize the tickets? Shall I buy a card? Is it better to use simple paper tickets? In case it is better to buy a card, where to buy it from? Is there a possibility to get such a card in the airport? How much money should I load it with? Note that I will be having Euros and not British Pounds, so I was wondering if Euros are accepted both for cards or paper tickets?
I'm visiting London for a couple of days, and planning to use public transport while there. What kind of ticket(s) would it make most sense to use? Do I get the most value out of single tickets, day travelcards, an Oyster card, or something else? (I'm guessing the Oyster card is more geared towards residents of London, but I'm not sure.) I'd mostly move around in central London (within ) with accommodation being located a little further away (). Most probably I'd take several trips each day (some of which might be during rush hour). Bonus question: while I would surely be using the tube the most, are the same tickets generally valid for buses too?
I know that the answer involves Bezout's theorem in some way. I tried this: Let $(a, b) = d$ Let $a = dk_1 and b = dk_2$ So, $ax + by = d$ becomes $dk_1x + dk_2x = d$ Dividing by d, we get: $k_1x + k_2x = 1$ So, $(x,y) = 1$ Is this sufficient?
Suppose $a$ and $b$ are positive integers, and that $d=\gcd(a,b)$. Suppose we have found integers $x$ and $y$ such that $ax+by=d$. Prove that $x$ and $y$ are relatively prime.
First of all, I do not think this is a duplicate of . This question was about several answers that referred to the same question. If I ask several questions or a question containing different parts, what should I do if different answers refer to different questions? Consider a question about a math task that consists of two subtasks. IMHO there is no sense in creating two different posts for each subtask, if they are directly related. So what do I do if person A answers the first, and person B answers the second subtask in a separate question? Of course I could (and should) upvote both of them, but I really think that awarding only one answer by accepting it isn't fair to the people who spent their time trying to help me. This is why I would vote for a new feature that allows accepting more than one answer, if the provided answers are equitable.
Or at least have maybe the ability to set some other answers as assisted answer. I find myself finding an acceptable answer unusable while other answers underneath it might be more suitable. Would it be safe to say that the accepted answer should only make sense to the asker whether or not the question is important to others?
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_15.10/ /' >> /etc/apt/sources.list.d/arc-theme.list" sudo apt-get update sudo apt-get install arc-theme After this I am getting this error in Synaptic: E: Type 'dep' is not known on line 1 in source list /etc/apt/sources.list.d/arc-theme.list E: The list of sources could not be read. Go to the repository dialog to correct the problem. E: _cache->open() failed, please report. I can't even carry out any updates.
Every once in a while I see users having issues to update due to errors like this: E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list' with varying types/line numbers/source list files (often after removing a PPA). How can such an error be fixed?
I want to learn cryptography. I just wanted to ask people who are experienced about the field where I should start. Any recommendation would be something for me. Thank you in advance.
What mathematical fields of knowledge would be required in order to get a good understanding of encryption algorithms? Is it basic algebra, or is there a "higher education" mathematical field dedicated to encryption? I know there is the cryptography field, but what is the subset of knowledge required for cryptographers?
I'm pretty sure that this was an entire book, written before the 90's, the protagonist was a teenage male, and his family was emigrating to one of the moons of Jupiter. When they got there they found that the younger sibling couldn't take the lack of pressure, so had to live in a sealed room with higher pressure. They were farmers, and he had this plow which broke up the stony surface. There was a crisis, and the sealed room broke and the child inside died. I think the rest of the family went back or left, but the boy stayed to continue the colonization.
A magazine connected with (Boy) Scouting, possibly "Boys Life", in the early 1950's ran a short story in which a group of interplanetary explorers on an extraterrestrial planet, which may have been postulated to have a breathable atmosphere, encountered a functional alien transport designed to travel across rough terrain. The machine was half hidden or buried when a member of the team discovered it and when he reported back was asked to "roll it out." He replied, "It, 'er, walks." The alien inventors turned out to be long gone. The machine resembled a large multi-legged insect. There may have been a drawing accompanying the story. The link I'm attempting to add here may not work, but if it does it's the only source to the Boy's Life image of the alien walking machine that's currently accessible. Boy's Life issues from 1950 are not to be found. If the link works, open Boy's Life November 1950 issue and scroll down to page 21.
I have written a python code, to solve a puzzle. It was not working as expected. So while debugging I saw something very weird. Row is a list of lists. The append 1 to single row[n] appends to all lists inside row! def trap( height): row = [] for index, i in enumerate(height): if i == 0 and len(row) == 0: continue else: if(i > len(row)):#time for a new row #to old rows append 0 below for j in range(0, len(row)): row[j].append(0) row = row + [[0]] * (i - len(row)) else: for j in range(0,i): row[j].append(0) #PROBLEMATIC CODE START for jo in range(i,len(row)): if(index == 1): print("jays are",row) print("jo is",jo, row[jo]) row[jo].append(1) #PROBLEMATIC CODE END (I GUESS?) print(row) #print this, it gives an idea trap([2,0]) When I try this independently, it works fine, see: row = [[0],[0]] index = 1 for jo in range(0,len(row)): if(index == 1): print("jays are",row) print("jo is",jo, row[jo]) row[jo].append(1) print(row) The problematic code has been marked in the python as comment #PROBLEMATIC CODE START and #PROBLEMATIC CODE END. Call the trap() with [2,0] row variable should be [[0,1],[0,1]] but row variable is coming [[0,1,1],[0,1,1]] I have been at this for many hours! I just don't understand why does .append() appends to all the lists inside row, but when I try the smaller code it works. Please help me and guide me
I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3 The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]] Then I changed one of the innermost values: my_list[0][0] = 5 Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]] which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?
so i'm a newbie in blender and i don't know what happened to my scene, but my hdri doesn't show up in the final render while it works just fine on the viewport. Please help me, Thank you. viewport: render: additional information please contact me right away
I'm trying to make a test render of my model. But everytime I render it the render looks completely different from the viewport. The viewport is in render mode so it should look something like that, but this doesn't come even close. I'm using cycles renderer. And my world note is just the standard one so nothing installed there. There are 2 sun's in the scene both set to 0.5. I've tried different hdris but they all have the exact same outcome. I've pressed alt+h to see if there was anything hiddden in my scene that blocked the background and nothing shows up so I don't think that's the problem. I've also copied it to a new Blend file to see if there was anything wrong with the file itself but it also happens there so it must be something in my settings I guess. But I just can't find out which one this is how it looks in the viewport render. And this is how it looks when I render it. I really don't know how to fix this so I hope someone can help me here