query_id stringlengths 4 64 | query_authorID stringlengths 6 40 | query_text stringlengths 66 72.1k | candidate_id stringlengths 5 64 | candidate_authorID stringlengths 6 40 | candidate_text stringlengths 9 101k |
|---|---|---|---|---|---|
273edd07044d704cbac9536aef22c1e45a22452c31a0e984a142ef0366fc67a0 | ['e04a1f3656db41dc90891b6f008710c8'] | Ah I tried it out (after some Googling) and it works perfectly and you're about applications relying on the GPU will crash but since I will only run it at boot, that will be no problem! Sorry that I cannot upvote your answer mine reputation isn't high enough. | 2bed42e26b8bca90614a115b4587eaef579f13a2e62d6751d7a67abb64c0911f | ['e04a1f3656db41dc90891b6f008710c8'] | i had used linux once when i was 8 back in 2001 and i used to love it as i played the games that came with the OS, then i left linux until recently since i have been hearing about all this new linux hype so i decided to give it a try.
I have used this OS since one semester now, It lives upto its hype and i am seriously... |
e1b188edc7f3a342983f0cb1a34eb2c2512a12e20c15858292b996849931674d | ['e056e1b3379c4b6eb0eb9c89d6267f30'] | what's the difference between phalcon beanstalk queue's choose and watch methods.
the comments of the two are same.
namespace Phalcon\Queue {
...
/**
* Change the active tube. By default the tube is 'default'
*
* @param string $tube
* @return string|boolean
*... | 6b1917cf011e336714720d53deb1804381104aa3566ceb7932f78a0d60bbf11b | ['e056e1b3379c4b6eb0eb9c89d6267f30'] | I have a custom vagrant box based on the offcial box ubuntu 16.04.
I simplly run like this to get the packaged box.
vagrant init ubuntu/xenial64; vagrant up --provider virtualbox
<PERSON> up
vagrant ssh # enter the virtual machine and do some custom change on it
vagrant halt
vagrant package --vagrantfile Vagrantfile... |
aaaf75d3ecba6197949ddd53e48284233103cf74d404fc30fae4d0e7428d1a84 | ['e07059bada9147a5bed18aa1077a2810'] | I am making an app using the qrCode scanner and when i open the app on my iphone and touch the button for the qrCode scanning it shuts down automatically , not opening even the camera.I used barcode_scan in pubspec.yaml and the code is:
String qrResult = "Not yet Scanned";
onPressed: () async {
... | 72d15b47001aef95525d532e8180f94e9e7ea9b3797a901524ef93bae4755c9e | ['e07059bada9147a5bed18aa1077a2810'] | I am trying to make my UI scrollable but when i add the SingleChildScrollView i get this white screen not showing anything at all.I should erase the Column from the begining?Use a container?I already search on internet but i don't know what to add.
Here is my code, please tell me what i can erase or add to make it work... |
f2de41c16fac9da421f530a1df7388de63ea55f771a6778f0f515b5aa29cbdd4 | ['e077741ab24248c4ac6722fa9ccc7e33'] | In an assignment, it asks to "Draw two separate samples of 100 independent standard normals" using R. I assume that I use the rnorm function, which returns a value from a normal distribution. Given that the standard normal is the same every time, if I just use rnorm(100, mean = 0, std = 1) will that meet the requiremen... | 512338e11daa8703a17ed751ad8b536719a792104f16dcb48977b2338ff4d8ad | ['e077741ab24248c4ac6722fa9ccc7e33'] | I'm trying to get all the URLs for the class='profile-search-school-link' but cannot even get a soup object.
I do the following:
site = "http://www.geteducated.com/profiles/search/Computer%20Science%20%26%20IT&SS=Search%20by%20Subject%20%3E%20Computer%20Science%20%26%20IT/?start=15"
""" gets a list of the urls for th... |
26dd48abb7a8b8da7de53311245456d829fb325b6a8ba965da87a9712b86002c | ['e07ff19788104eddbbdd47623690c61c'] | In my calculation, I got
$$x^{3/2}e^{-x}=C$$
$$ \frac{3}{2} \log{[x]}-x=\log{C}$$
Where $C<<1$, I know that the general solutions to this equation are Lambert Functions, but considering $C$ value I was hoping maybe I can use a simpler, asymptotic behavior of $x$ to make the rest of my calculation easier.
Can anyone ... | eedc194f6e4aaddb06a2605ba8eff67e12ac1b89c837028bfcb3cd960fd0d705 | ['e07ff19788104eddbbdd47623690c61c'] | I have designed a PC program using Profound UI. PUI presents IBM iSeries software to the user in a Windows format. One program is for recording inventory of items that are moving from one location to another. There is a grid -- table that includes various fields for description and one field for a jpg photo of the i... |
72101979533bcc15065a1b30caf6a9cd5a2f729ea3b679eec7cddcfc50ceb612 | ['e0869e7ef768465a8afd42b7ff891576'] | I ended up using PortAudio (very low-level, flexible license) and wrote a mixer myself. See this topic i made on the C++ forums for some other people's tips on writing a custom mixer. It's not hard at all, really; i'm surprised that there are so many mixer libraries out there. For a breakdown of the WAV format (ready-t... | 5fe7449ae0c8ef65bededf83fb31e08172a4eec41ec4d68af6649dd67b8f1848 | ['e0869e7ef768465a8afd42b7ff891576'] | I'm looking for a simple-ish library for outputting audio. I'd like it to meet these criteria:
Licensed under LPGL/zlib/MIT or something similar – i'm going to use it in an indie commercial application and i don't have the money for a license.
Written in C, but C++ is fine.
Cross-platform (Windows, Linux, maybe OSX)
A... |
92a1b225518b0560097ac4289deb8664899048a4343366a15d3c2ac5c9bd68ec | ['e0918e4f812d430ba9cfd63488c69c70'] | Using command-line :
docker run -it --name <WHATEVER> -p <LOCAL_PORT>:<CONTAINER_PORT> -v <LOCAL_PATH>:<CONTAINER_PATH> -d <IMAGE>:<TAG>
Using docker-compose.yaml :
version: '2'
services:
cms:
image: <IMAGE>:<TAG>
ports:
- <LOCAL_PORT>:<CONTAINER_PORT>
volumes:
- <LOCAL_PATH>:<... | 35f5e015f52b885d868b42d72a23c13e3f146d68193406483b08ee37b86f01d1 | ['e0918e4f812d430ba9cfd63488c69c70'] | Fist you have to careful with the / (trailing slash) on the proxy_pass :
The configuration should look likes below :
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
... |
963cd6ebbf22e86ee42994f496dad93773b17fb5a46f36c9b64fbf76972ab680 | ['e0932cc23fae430d9b8484af6d900b07'] | Here is an example of the method you can use with the map view:
[googleMap setRegion:MKCoordinateRegionMake(location, coordSpan];
googleMap will be you MKMapView object and the location would be a CLLocationCoordinate2D (The lat. & lon. values) struct and coordSpan would be a MKCoordinateSpan struct (Specifies how la... | c27cc57c589df00397fe3d6fdb91fa877eae8cffeb09d4e5e69c267d6091b82d | ['e0932cc23fae430d9b8484af6d900b07'] | I trained a CNN on CIFAR10 (implemented in PyTorch) with the following architecture:
INPUT: (3,32,32) -->
Conv2d layer (kernel: 3x3, stride:1x1, filters: 64) -->
Activation: ReLU --> Max pooling (kernel: 2x2) -->
Conv2d layer (kernel: 3x3, stride:1x1, filters: 16) -->
Activation: ReLU --> Max pooling (kernel: 2x2) -->
... |
c7a9f20e629a4791ebe37ab1907bd384eda50252ad7045cdd95c17062673c10c | ['e0a273d9a0294116a017569eac6a05c1'] | I'm struggling with understanding hazard in the context of survival analysis. Unfortunately I can't find any example calcuations online with simple values, and I struggle with the respective equations, so I invented an example and would be very grateful for comments if I understood the matter correctly.
Let's assume pa... | 2f45134608a21aa09c34b9f54ae2f9fadaae9e45776ab6fc44dfe091fe371085 | ['e0a273d9a0294116a017569eac6a05c1'] | I have a very large file on a different company's server (not the company I work for, just a company we work with). I have FTP credentials to login and download/upload files from them. I need to get this very large file onto our website's (the company I work for) live server.
What I'd like to avoid is the step of downl... |
2669768baceebcc5cf9cc78c0ce7e660e719863039c91b819f036218144019c7 | ['e0b09fb8ddc64af3a80ffd70ba0664b2'] | You have probably added the list to a sitepage.
Permissions work differently for sitepages and apps.
If you grant a user permission to view a sitepage you implicitly grant the permission to view any webpart on that sitepage.
If the user does not have permission to view the contents of the app inside of the webpart, the... | e2cadb8bfc0257f331d5fef6fe0b87911776c94f8f2960314dc024b27a2c8531 | ['e0b09fb8ddc64af3a80ffd70ba0664b2'] | What you are doing is not migrating the appointments, but creating new ones.
The property "organizer" is read-only and can't be changed, so you will not succeed this way.
What I'd try is to get the organizers of the appointments from User A, impersonate those (or using delegate access) and send an invitation to User B.... |
f2f0bcbe460ccc13b00534e8a50a6dc5f2db4971303a758c33324e633e7663e4 | ['e0b43fdd3bdf42fe9ce8ac159a88f396'] | There are 2 problems. A problem with Scanner and with the condition
keyboard.nextDouble(), keyboard.next() etc... (all except .nextLine() ) leave the newline ( \n or Enter ) in the buffer. This can cause problems etc..
I suggest adding a delimiter using keyboard.useDelimiter("\n");. This only needs to be done once and ... | 89e352a5f5ee2d52d2a2fb8b9fd680714182089d3e1e9cad7a1720f63955d00d | ['e0b43fdd3bdf42fe9ce8ac159a88f396'] | The ButtonListener needs to be added to the button only, so that it will be activated when you press the button and trigger the event.
You can remove 'digitN.addActionListener(new ButtonListener());` and instead use:
button.addActionListener(new ButtonListener());
Like that, you are instructing Java to listen to the b... |
9947077950bf55d13be595de63063fc6c7a08b8c0ad8d281c7b61dcd70ae59b0 | ['e0b58f80a88944d49b1521aba97e29fd'] | I just do a coding challenge and I know how to solve it with a classic if-else statement using a forEach loop without arrow functions.
Now I wonder how can I achieve this using ES6 within the forEach loop?
// Create a function that returns the product of all odd integers in an array.
const odds = [ 2, 3, 6, 7, 8 ];
co... | 0a7926d3bfaefad26aaa14280446db2ed919219264c580af222e7771656d09a4 | ['e0b58f80a88944d49b1521aba97e29fd'] | I am creating a script with Python3 that runs a couple of Linux terminal commands for me (https://github.com/stefanrows/ceos3c-baseline-installer)
Everything works so far except the following line:
os.system('sudo -u {} sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://pac... |
3f9d2308507ad4b5c6ea2ccd9c7ab194ff32e1e62b3f6d6ef6d174f807e7daa9 | ['e0b71478e3584aee9c9a0607f2ab2374'] | I have some text with non-breaking hyphen in word. I need that text as it is in output. But am getting text with non-breaking hyphen removed.
Word.Range rangeObj = _wordDoc.Range(ref x, ref y);
txt += rangeObj.Text;
I am using the above code. And in txt variable I am getting output but with non breaking hyphen removed... | 1efbf8635c1eb34e81bb99ca3c87207e728e6c625704df7e86c68ae38026316d | ['e0b71478e3584aee9c9a0607f2ab2374'] | is there any way to find a next match in a specified range if there are 2 matches in the range. or if there is any way to get a list of all the matches.
currently I am using the below interop method to find the match but it will highlight only the first match.
bool found = foundRange.Find.Execute(ref oFindText, ref mis... |
e002ac2cb1e0dc39dda2ddc25fb42766bb562f4545833c52d7163398820e45f8 | ['e0bcf080b1424f21967c1e61826deb68'] | Good day,
Currently I am working on an EventSystem for an Unity Porject.
Therefore I want to make use of the UnityEvent (which have been improved during the last year as I heard).
The EventManager shall be as generic as possible and therefore register the Events by their EventType. Therefore I created a generic BaseEve... | 0914aeccd398bc745f647b2555ca1ce57e4005b5c3070509f3dc94fe444cb31e | ['e0bcf080b1424f21967c1e61826deb68'] | For everyone who needs automatic SDD payments in Odoo v13, here's the Automated Action that works for me (one more, thanks <PERSON> for your assistance):
Modell: account.move
Trigger: on update
Action: Execute python code
Domain (before update):
["&","&","&","&",["sdd_paying_mandate_id","=",False],["partner_id.sdd_mand... |
19752042f0068389df24cf2999a2fb8a31b9f7fb6a009a699c6dfc49303ad714 | ['e0c295eb11524776a2e37006a1a80f1c'] | so i have this:
def main():
num = input("Enter a number:")
total = 0
for digit in str(num):
total += int(digit)
print(total)
main()
what this does, is take the digits in a string and add them together (321 would have an output of 6). What i need to do, is do a for in range loop that takes all o... | f5143b5c0b558eb31c5dbb21c7aac456747aec3ecbd6cc18d6dacf1b5955c546 | ['e0c295eb11524776a2e37006a1a80f1c'] | import random
#set counters
counter2=0
counter3=0
counter4=0
counter5=0
counter6=0
counter7=0
counter8=0
counter9=0
counter9=0
counter10=0
counter11=0
counter12=0
doubles=0
def main():
#get input from user
rolls = int(input("How many times would you like to roll the dice?")
for count in range(rolls+1)
... |
7d263247d09f1c27195e865449765efc4ef74aabbfcd1221cbfaa3c822bd298d | ['e0cda6ae6f4141d8a378e75ae1a04449'] | I have created a JFrame with a JPanel containing different components, and for example I want the JPanel to have a visible border and a visible image when the mouse is inside the bounds of the JPanel. My problem is that as soon as the mouse hovers over an "interactable" component inside the JPanel it will register as t... | 88ae402a29cd31778f8e44e2e511df26a48664e9cfac1b0621a9922edd0727d1 | ['e0cda6ae6f4141d8a378e75ae1a04449'] | I want to create a list of Views, where the images shown in each View is downloaded from a server as you scroll the list (lazy loading). This is the code I have got so far:
public class CustomAdapter extends ArrayAdapter<Component> {
private final List<Component> components;
private final Activity activity;
... |
b8170792ae3ad5cbe9ea97c15076835681677f40b177b5d7d16779db3cda51d9 | ['e0e08bef37ec43bdb702e294a34409e1'] | I was having a similar problem with my react-redux setup and realized my events array of objects wasn't formatted correctly. Other than checking this, I'd also check to see if BigCalendar is getting rendered with anything from this.props.events in the first place. Every time the events prop is changed for BigCalendar i... | 04fc9410788fff408487b2f9391d19e97a070abf3bde76440c090b4735317da9 | ['e0e08bef37ec43bdb702e294a34409e1'] | I'll weigh my 2 cents on the issue as I just spent a good deal of time getting it to work. It's a medley of answers I've found googling the issue.
var doc = new PDFDocument();
var stream = doc.pipe(blobStream());
var files = {
img1: {
url: 'http://upload.wikimedia.org/wikipedia/commons/0/0c/Cow_female_black_white.jp... |
35308d94b7dd63be381b12d06cd99c50aa9dafbe3fb9848d53f591a776a26c69 | ['e0e3399333d14847b1ac99c72878f5a7'] | What is the difference between the not() operator and !=?
See this example:
<?xml version="1.0" encoding="UTF-8"?>
<body>
<test>123</test>
</body>
<xsl:template match="/">
<xsl:if test = "/body/test = (123, 2)">true1</xsl:if>
<xsl:if test = "not(/body/test != (123, 2))">true2</xsl:if>
</xsl:template>
http://xs... | db978a8359f38439484ff2a1b4cde20d514f2eb3c6e325d4ad40253e1bced8a8 | ['e0e3399333d14847b1ac99c72878f5a7'] | I found a way to solve this with a different approach:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:apply-templates select="@*|node()"/>
</xsl:template>
<xsl:template match="root">
<root>
<xsl:apply-templa... |
b2dd0b64269bff2ce780e690dd17cb15239fd6f8ac7390d396bc012fbc877670 | ['e0e683ed9ea4497499ff24586e064a41'] | `for (var i in this.current.questionnaireProfil) {
if (this.current.questionnaireProfil.hasOwnProperty(i)) {
console.log(i + " -> " + this.current.questionnaireProfil[key+1]);
};
}
for(var question in this.current.questionnaireProfil[i]){
this.current=this.current.questionnaireProfil[i][question];
}`
with this, I ... | 90bb0be3de34ca06f9085c634e5ce622296f21e05ddbcaf1c0fa67caf7abff03 | ['e0e683ed9ea4497499ff24586e064a41'] | for(var i=1 ;i<=this.current.response.length; i++){
var result = this.current.response[i];
while(verif < this.current.response.length){
if(result[verif]==true){
console.log(result)
ok= true;console.log("ouououo");
}
verif++;
}
}
if(ok==false){
... |
6ba2003cdd1581b227727a19d455b518dca1ba6a5020b1e54f9eb3856ddf82b0 | ['e0e9dd29ce2f4ba6802ee43f0cfb2b38'] | The JavaDoc of DB.getCollection states:
Gets a collection with a given name. If the collection does not exist,
a new collection is created.
However, it seems that the collection is actually created later. Right after the getCollection() is does not exist. When I e.g., insert a doc, then it created.
Consider this:
m... | ccfef93e2616c246e6748e4abfbfb4bbc8095d524395a2c6f793e82bfc471d5d | ['e0e9dd29ce2f4ba6802ee43f0cfb2b38'] | I think both advantages are there but are not that useful. The main problems remain the same: UnmodifiableList still is a List and thus all the setters are available and the underlying collections still are modifiable. Making the class UnmodifiableList public would add to the illusion of being unmodifiable.
The nicer w... |
e7fdfe94fc8c4aca81fd955404f09ed0bca6baa8eee5b7f184794b7bd9eda844 | ['e0ebdfad823a48839de8638808c137fd'] | This is a widescope question. (like the length of a piece of string), but Ill try to make this helpful:
If you have values in local store in webserver I assume your webserver is JSON? Or did you use the sql local storage option?
Regardless of type of storage, you need to build an interface that both handles:
a) Rea... | b1c31d7fc43b5770a55c7c04b01cefc48c3e5af2614089e96ecfea83be7c628a | ['e0ebdfad823a48839de8638808c137fd'] | Basically I want to chain multiple calls from the server to the databse but only with one call from the client... yes i know its suicidal for cost but necessary unfortunately :(
The groundworks:
So I am abstracting this to a high level design of my "servers". (Ignore the fact that I have left protocols and firewalls ou... |
5230cda7ac2ecaa56baa739bef6acf3666c7426c5c2aaf6ff7cc043a8402b2df | ['e0fd824821c6443ab5fe586ca7bf83ee'] | How do i increment camp by say 3 instead of 1 , each time over here?
<div class="row" ng-repeat="camp in camps">
<div class="col-lg-3">
<img src={{camp.img}} alt="" height="200pt" width="250pt"/></div>
<div class="col-lg-5 col-lg-offset-1">{{camp.email}}<br/>
<span>{{... | ab5d3a2e3257609b37157ecb02e3af41c523619436bc2603a9d42aecab88bc6c | ['e0fd824821c6443ab5fe586ca7bf83ee'] | After last software update,I'm find a new problem:
When i use my speakers from jack,don't use any players - i hear when switch on auto mute,and noisy sound like ultrasound.
First of all i tried switch off "auto mute" in alsamixer - not solved my problem.
Then I tried to delete alsa and pulse - not solved my problem.
... |
1daf47a979a08db7840be20ce113b9a2952395afe909efdc6b1869698bf06d03 | ['e102fe4399d44891ace5ba304237480f'] | I have fixed the issue by checking if the user has any current active subscriptions before I subscribe them, I am not sure why it was happening in the first place but I presume it was due to internet speed or disconnection on mobile devices, so javascript was sending the request but before it redirects the user, it wou... | b5d5df8cb40d4df56e2cc94e343a837b446e3dd989bea637ac6b2e132ac0a956 | ['e102fe4399d44891ace5ba304237480f'] | I have got the following javascript which I wish to use on my website, but it doesn't work, can somebody check this and tell me why? Thanks
I have taken the code from this website https://codepen.io/anon/pen/wrrYZN
I am new to Javascript and this code seems quit advance to me but I need it for a project. Below I have i... |
094cb1860828a3f6058a582417e84ccc2a1ec31df0f88c7ed8e3492272f1100b | ['e105a066f7f541758a03602471b07c0a'] | you are not specifying any where criteria for your specific item...so you are getting all results..try specifying criteria for the item (id , name etc) you are looking for. And keep in mind cross partition queries consume much more RUs n time, you can revisit architecture of your data model..Ideally always do queries w... | f88ef79cc83915445026a749e44f4899f5d05859d11e1afa500c750111be44c3 | ['e105a066f7f541758a03602471b07c0a'] | I use Azure Service Bus Queue to receive message and start a long running activity which can last from couple of minutes to couple of hours. During the activity a separate thread renews lock each 30 secs until activity is complete. On BrokeredMessage.RenewLock(), exception occurred, full trace below: "Microsoft.Service... |
6a2da0e864d26ecea36f0235abd2c97881b202eff99af9680caca3ac4b69f934 | ['e11b3bbad56b4e858e36268b60cea252'] | I have a snackbar handler in Main that I want to pass down to each Route component as a prop. How can I achieve this ?
<Router history={browserHistory}>
<Main history={browserHistory}>
<Switch>
<Route path="/comp1" component={comp1} />
<Route path="/comp2" component={comp2} />
<Route path="/comp... | eea462a9dc3b7777bdf89d3e6862785346000eb7d11bff194482919fefbcd2ea | ['e11b3bbad56b4e858e36268b60cea252'] | It seems that you want distinct non-numeric values. You may change data_len as len(data_r) if you want the longest non-numeric records
ALTER TABLE <yourtable>
ADD
data_r as REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE (data, '0', ''),'1', ''),'2', ''),'3', ''),'4', ''),'5', ''),'6',... |
d1bcb434a2b2c2cac9e640843854968ad7d06897237e596d8cdc2b369f02a75e | ['e11f15d29271476396b7f514fd5503b8'] | You might want to iterate over the json:
var arr = [ {"id":"10", "class": "child-of-9"}, {"id":"11", "classd": "child-of-10"}];
for (var i = 0; i < arr.length; i++){
var obj = arr[i];
for (var key in obj){
var attrName = key;
var attrValue = obj[key];
console.log(attrName + " "... | f1ef0aa7ce47aa788345bea25372fd243e6a5248512eeb97d5a3cbc25c51f6f2 | ['e11f15d29271476396b7f514fd5503b8'] | Since sorting is only possible for the timestamp and tags, you might think about using a tag instead of a field for value2. But beware that this is only reasonable if the content of the newly created tag is not too variable. Otherwise you might kill influxDB with too many timeseries.
Details to be found here: https://... |
712a7e7ed3b6525ae1488bf1c9b2476fd661c980add743e6d31099ad1361602b | ['e122455960f44afea0109f1e029e1892'] | I need to design a truck fleet monitoring system and make a prototype of it during my traineeship this year.
I've been looking into the different buse networks that are already implemented in trucks nowadays notably the famous OBD II.
I wonder if it is possible, if I want to add new sensors to the trucks, to implement... | 65c8301e2313f7bc63b3a37214bccac04d203321765e884ca931bf88b464f734 | ['e122455960f44afea0109f1e029e1892'] | I could suggest ultrasonic welding boots!
About Ultrasonic welding
This welding technique has a minimal damage on the surfaces, and can weld together or eventually release all type of materials
If the damage is still an issue and as it is science fiction, you could even make it so the welding happen at the atomic level... |
0b5b908633f77de66a4c83a7f55272d1088e0ba301c23e318dff109f6556356a | ['e1301b887bca416d8ebd5ab40e6a2fe4'] | everyone
I am currently having some problems with shutting down my Lubuntu 17.10, it hangs on the logo screen, but is able to reboot normally.
I have already tried a few tricks, but none of them seem to work. I have edited the grub file, excluding the 'quiet' and 'splash', and also edited the blacklist.conf file and al... | fb4922bb4501a108de999cd7c7abe59d0709894c3fd12c67f4f9670785002261 | ['e1301b887bca416d8ebd5ab40e6a2fe4'] | Let's say a student takes a set of tests, each with different difficulties of multiple choice questions and a different amount of questions.
If I take the percentage of each test, how can I compare them?
E.g. Can I say based on the difference of percentages between "test A" and "test B", the student did a "difference o... |
c963a1b36e8e62db4a44895502a6df984fa4a0701b5edc72998ca4129b889ea8 | ['e133104e5fe44e0696c4d7954fd4f107'] | Use JavaScript/jQuery for form validation. All you need to do is add an id to form, and in the corresponding Javascript, do something like
document.getElementById("#form").onsubmit = checkForm();
or using jQuery
$("#form").submit(checkForm);
where checkForm() returns true upon successful validation, and false otherwi... | 1d679a78aede5bbece4823bf26ec45a907e69ba67f6d5a746035e6c1e71da136 | ['e133104e5fe44e0696c4d7954fd4f107'] | Unless you're willing to get down to the nitty-gritty and configure, run, and host your own Apache Server (or another server config) AND register a domain name, you CANNOT change the domain name from within Python/Django.
Django only handles everything that comes after the domain name, such as the /home/ portion of the... |
6dc1d959e791dde8e58a777b9cf30b710379418545a90c98114f9a00ae2b67fa | ['e137a9011e1d4512839610fe4eb05287'] |
One of my static pages(generated by <PERSON>) is loading slow on mobile mode, but the exact same page was fine on desktop mode. (google page load speed desktop score 97, but failed Core Web Vitals on mobile)
On the chrome-devtools desktop mode, the stalled time was only 2.6 ms, but on mobile mode was 458.74ms.
There w... | eaf676b130b6560a2a501f27876d251532745722fde64632ca3d110339ec264c | ['e137a9011e1d4512839610fe4eb05287'] | I am new to Solr. I tried to do Atomic update, the .json update file not only changing field values, but field name also has become "fieldname.set", for instance, "price" become "price.set".
Any help will be appreciated.
# /usr/local/solr/bin/solr version
8.5.1
# curl http://localhost:8983/solr/books/selec... |
904479f2d74f85e8b54267d4eef94c7c62983806d8294ea9a30d1a3389a27b4d | ['e144680009ff4ba49cfd86f10ac9dd3d'] | I have two hiveserver2 instances running. One uses Binary Transport (for HUE), the other uses HTTP transport (for ODBC connections).
I am trying to grant access for one user (ra01 in the screenshot) to only a specific table in Hive.
The user account is intended to be used for ODBC connection from PowerBI.
I set the pol... | 118779e86b6187a37ffcec7583de5b4f30a5aaf74e0a834af6c4f7f7fe288fe8 | ['e144680009ff4ba49cfd86f10ac9dd3d'] | I am trying to POST a JSON file (using Apache NiFi) onto an app that only accepts values with max 10 decimal places.
JSON format:
{
"timestamp" : "2016-04-17",
"zoom" : 13,
"dc" : 100,
"CloudCoverPercentage" : 74.707,
"mean" : 0.18735192480231655,
"num" : 127,
"FirstQuartile" : 0.142807444773004,
"media... |
b7eaa3a5e0ec3dbc1403cb840594c84a6007ab27aa026ce5fd912a68091e5136 | ['e1613a029d8f423dbafdc96afeee3273'] | I updated from 18.04 to 20.04 a couple of weeks ago. With 18.04 the mean temperature was between 28 and 40° in light usage (YouTube, browsing etc.), now with 20.04 is always over 40°, also while in idle. I tried updating the Kernel from 5.4 to 5.6.10 and now 5.6.14, but nothing.
I have an MSI Prestige 15, with an i7-10... | b9295eb8d46a9126566038361e7e296b7c3cda44360b1da1d0ce7a9eca3d00f9 | ['e1613a029d8f423dbafdc96afeee3273'] | Try to run pip via desired python binary as a module -m pip:
python3 -m pip install --user --ignore-installed pywinrm
Then test it:
test if python can find winrm module:
import winrm
s = winrm.Session('windows:5985', auth=('user', 'password'))
r = s.run_cmd('ipconfig', ['/all'])
print(r.status_code)
print(r.st... |
72bb97457ed1a995ed73113a056ebd2233baa773ee3a52628bab3063fdecaec7 | ['e16982d05a354ecbaba042ef00c055ec'] | I need to do a mass insert into my database. I have French characters(e.g é) into my table
When i connect to SQLPlus and run the query manually
INSERT INTO TEST VALUES ('é');
Data is inserted properly.
When i save the same query in an Sql file and execute same through SQLplus
I get below error:
SQLPLUS>@test.sql;
ERRO... | 40777757ab45b8726496413df40396e00ba45cc0788e3e0d9b53106694a90ddb | ['e16982d05a354ecbaba042ef00c055ec'] | I need some help in regards to a batch scripting. The purpose of the script is to open a web page when the user login into windows.
The web page is hosted into our local servers.
My issue is that the page still open(Obviously it does not display anything) even though the user is not connected to the network.
Unfortunat... |
9c0ea986d65b09e52d6b8f02cc40e6ca08fd9dd31bc137b83a3501e4ce387910 | ['e169a4cc26d947ab87b8cbfed258b6ef'] | I have created one structure which is followed by web content. Structure Contains 2 fields. One is Area name and the second is Zip Code. I stored data in web content followed by this structure.
I want to search for data based on zip code or area name entered by the user. I want to provide a dropdown to the user to sel... | 9a37092fb76c14aaf06d6166f5f7db3bc8b8d57986c6bf7ee069382fb25b5157 | ['e169a4cc26d947ab87b8cbfed258b6ef'] | As of now, instagram APIs are changed. You need to get media id as described here https://developers.facebook.com/docs/instagram-api/reference/user/media#get-media and after of that you need to call API for each media post and get image and other post details. Here you can restrict your API calls.
|
56a6729e1e645be2719d17ca3afdc46f4c604fe0df0ba19808e2fde7bdc33987 | ['e16e9ef720cc4326b3aab42a31a78725'] | As stated at Google Maps Android API v2 Documentation:
Note: The info window that is drawn is not a live view. The view is
rendered as an image (using View.draw(Canvas)) at the time it is
returned. This means that any subsequent changes to the view will not
be reflected by the info window on the map. To update t... | c1d580bd084c360aefc2979d31195584bc8b19933e063f6ea457d3855a04f1ee | ['e16e9ef720cc4326b3aab42a31a78725'] | There are a couple things you can try:
You might want to try drawing a 9patch in top of your image.
There's also this short tuto by <PERSON> : http://www.curious-creature.org/2012/12/11/android-recipe-1-image-with-rounded-corners/
BitmapShader shader;
shader = new BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.Til... |
68062329c00cde96b780584fab7a0f0eb9d4274f0eeb98275e686a6603e88f06 | ['e1746355b7c1493495fc9227a5878460'] | I have screengrabbed the relevant code here if it helps: https://imgur.com/a/5kGZwxW
Once again I truly appreciate your efforts here <PERSON>. I need to get this resolved soon. The Ajax based search is superb in BuddyBoss, however it must be revealing data to non-logged in members, hence the need to remove it. | 307058ca008541ea1547bff83e012016733afe07df4c62b07b21785299a15c5a | ['e1746355b7c1493495fc9227a5878460'] | Hi <PERSON>. Thanks for your response. Makes Sense. I do not have code but can supply what is needed. I am indeed using the child theme for BuddyBoss. I would rather not just hide the search button with CSS, but remove it from a few pages, most importantly home. I have 2 headers, one is the buddy boss native header, th... |
ef6b4ac2603213e1c090ea35ed896b505371f1545b4c89c8cde0c049db8dda60 | ['e18e4f414b4d477d831d94453d04f604'] | It seems you have trailing whitespace enabled in User Preferences too.
I'd suggest opening your configuration file of VSCode using
CtrlShiftP or
CmdShiftP in Mac and then go to Open User Settings.
I'm sure the next line is around there somewhere, delete it or change it to false.
files.trimTrailingWhitespace": true
| d5e9e52439718a2a6cc8a984efb8086be38e50c49ef76a7d631209731aff70fd | ['e18e4f414b4d477d831d94453d04f604'] | I don't really understand what you are trying to achieve using a submit button, if it's not mandatory I'd use an <a>.
With pure HTML5 using the download attribute
<a href="test.txt" download>Money Dispenser</a>
Or with Javascript if you have to use a <button>
This has already been covered grealy in this question
But t... |
a4834914996c5d24fd056c52c52ec2d2dd8763fb0dfc15df66a5708a401e3980 | ['e18edca17b1046eea446403f0c52c25b'] | I have a trouble when using %C in ConversionPattern with AsyncAppender.
My Lo4J configuration is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="console" class="org.apache.log4j.ConsoleApp... | 72953f7de2d473aa0bd11bb6fc9724079b680d9d51a6953079bcc709f728e0ac | ['e18edca17b1046eea446403f0c52c25b'] | InfluxMeterRegistry is a StepMeterRegistry, so the created Counter from it is a StepCounter. StepCounter.increment() increments the count in the current step but StepCounter.count() will return the count in the previous step. That's why you're seeing 0 with count() although you've already invoked increment() several ti... |
e0aedb3bab6680ca2c50fb3e2aa0916ab28ba72ae0596d4b7dfe29f3327161e6 | ['e18f2baa59a8459f9deed44be0e83a49'] | Broadcast receivers have nothing to do with the life cycle of your application, Android reads your Application's Manifest and sends the Broadcasts to respective app expecting the particular action. If you wish to stop receiving broadcasts when App is not active then you need to unregister your broadcast in onDestroy of... | 4456cbc10c3a528c49e49d4d4b7b522676a23c16e6d0fc95c4ff921f3e726c8c | ['e18f2baa59a8459f9deed44be0e83a49'] | Scheduling a job must have these basic functionalities
Scheduling Job
Unscheduling/Deleting scheduled job
Processing based on priority (Will be useful in long-term), Maybe you
can prioritize based on the categories you have. Explore redis here as it has amazing capabilities to save ordered set
I would suggest keepi... |
eec2ef40c630d22c66778533c4b534510f5881200230bd14ef9d6744816b63ea | ['e192e254bfe04c7bbeb3d83d9bfedd03'] | Maybe. Test your application in your test environment, same as production but distinct and upgraded first. Now would be a good time to create such an environment if it does not exist yet.
A newer Python, or keeping the same Python, has never been easier to test with lightweight virtualenvs and/or containers.
Also test... | 7cd676a775400128b5c6c8b03308019f78c95966583f5f394f0e6e72975453cb | ['e192e254bfe04c7bbeb3d83d9bfedd03'] | Do both to a test host and see what happens. As IP packets are higher level than either of them, your connectivity may be impacted. Unless your host has interface level redundancy.
Administratively down is a thing for interfaces, including Linux. From https://www.kernel.org/doc/Documentation/networking/operstates.txt
... |
11d610204ce88cebeab08209d3b06e298f35070db954f6db8fa1452f0bd2d6b2 | ['e195ccc075224d9ca7675c61b34afa0c'] | I'm a newbie to Graphics.I'm drawing a rectangle which will change its color after one second.
- (void)drawRect:(CGRect)rect {
[self setWidthHeightOfRectangle];
[self changeColorOfNumbers];
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextClearRect(ctx, rect);
// Draw a solid square
... | 2feb0d3b20411867e4c18aacd509b87c81a09c55eb918fcac2fe950b8f8b31ba | ['e195ccc075224d9ca7675c61b34afa0c'] | Let's put it this way,
First we create a UIImageView to the size of the circle you want.Let's say you want this image to be a circular image,
http://united4iran.org/wp-content/uploads/2010/11/cell-phone-in-canada.jpg
Then you create another UIImageView one top of the previous one to the size of 320x480 and set th... |
7d36c0813817c1cf5d2d7f4b6d1a3d3b4bec2539a1e980f2f1bc7ba9e7e81f88 | ['e1aacaf28e7744afa0a260d3c9671aca'] | I have a table like this
+----------------+---------------------+--------------+--------+
| student_serial | reg_date | batch_serial | status |
+----------------+---------------------+--------------+--------+
| 1 | 2019-10-31 10:25:17 | 1 | C |
| 2 | 2019-10-31 10:32... | 0f8cf1e7eb525eb39b096d0dcfbe14c50e8ce2f2c8d54102dada11631f765b64 | ['e1aacaf28e7744afa0a260d3c9671aca'] | We have a situation where procedures with DML operations are often run by different users at different point in time, and I need to shutdown my database for recovery purpose.
So, I want to know what happens to the PL/SQL blocks (procedures with DML operations in this case) if shutdown immediate or shutdown transactiona... |
8193aa285020390919980eb0105958dcfaf04c1af7bc59a570fd104141615a15 | ['e1abc14a5f8249f3af1cb520cbf13f8c'] | For what I can understand one can build Logic Apps with Terraform. However, the docs are still not very good, and it looks like this feature is pretty new.
What are the limitations when it comes to TF and Azure Logic Apps? Are there any?
I want to build a two apps, one that is triggered every month and another that i... | 77674456b066bbbd4e964126ceab0881fbebd7ead01849588f496d5177124cca | ['e1abc14a5f8249f3af1cb520cbf13f8c'] | I'm trying to use this Azure Function App python library, and following the small Hello World tutorial in the readme.
The push to Docker hub works fine, the function is created and appears in Portal, and I can access the main URL in my browser (Your Functions 2.0 app is up and running).
Everything seems fine until I tr... |
7bd7c4477d96175655e6672f839646302ee42f1c241aaf4be8ee85c2a3fa5293 | ['e1d9aeb4bb0247bca9786967a761d28f'] | Ok, I found a solution.
Tomcat as service runs as system user, therefore we need to add certificate to that user's folder.
Initially, as home user I have accepted to permanently trust my svn certificate
Then just copy matching file from C:\Users\[username]\Application Data\Subversion\auth\svn.ssl.server to C:\Windows\... | ed68998ccccb2ee05570afb1ec5542a866ea394fbe258dd6b3a7dba490ebe4c9 | ['e1d9aeb4bb0247bca9786967a761d28f'] | I do have a problem with configuring svn to work with OpenGrok (on Tomcat85) on Windows 10 as I need the svn https certificate to be added to trusted ones.
According to http://www.microhowto.info/howto/configure_subversion_to_trust_a_given_ssl_certificate.html and https://github.com/oracle/opengrok/issues/846 it seems ... |
a8c99effe56a4353abc0d56a94509d079388ae207e3cb99ecd28e15da57f0e5f | ['e1dcc9465be94e2ab005290d28576c0b'] | I am using the Python library smtplib to send Email messages with Office365 as the SMTP server. Everything was fine until a few days ago when my From: header seemed to not be processed. The Python code I am using:
import smtplib
from email.mime.text import MIMEText
def login():
server = smtplib.SMTP(mail.mail_ser... | 6ccf67864a2c75a12ba1212813d3ac860e9fc30a1e3e68f8cb82a7b7f76c4cd4 | ['e1dcc9465be94e2ab005290d28576c0b'] | If I have a list as follows:
[
{
"a": "1",
"b": "2"
},
{
"a": "3",
"b": "4"
},
{
"a": "5",
"b": "6"
}
]
How can I rename the keys of the first list and append static items to each dict using a Jijja2 filter?
For example:
[
{
... |
f57b52ee5061fe8f724425d47c5f5cb196b6e042c41253361a18af7475f1d89f | ['e1e09d80df3741729a0cb503d45fd042'] | They are sort of free.
As you already know, the pricing documentation only mentions charges for
Simultaneous connections
GB stored
GB downloaded
However, if you refer to the Understanding Realtime Database Billing, you can see that writes contribute to billing through connections and writing data using the Firebase C... | ae255948a26fe13b2f249d6083a79297166c6fc28dd84240e9cc441982c196d2 | ['e1e09d80df3741729a0cb503d45fd042'] | According to the predefined variables documentation for Realtime Database, the auth variable contains the token payload if a client is authenticated, or null if the client isn't; the token itself, contains an email key. This means that you need to add the email key to the token variable in the simulator.
Try writing th... |
7aeeab426bd6449c86c0db21051718deda751d1b860ff71c8da9d94fe8365fff | ['e1f622d0ad0841368a459652f4ed092b'] | Trying write javascript that prints "username=john01" and "password=password123" from the url below. Currently it prints nothing...
index.html?username=john01&password=password123<=_c1F9F2B16-96B3-9D7B-CC19-D22A43D4FCA1_kA54D6D0E-881B-2792-22D3-B857150B1EFC&_eventId=submit&submit=Sign+In
<html>
<body>
<p> This co... | 35311f77bf530b12a6d6fd2e1a0a22ecaa04c35375e2f26deb6701b78c045953 | ['e1f622d0ad0841368a459652f4ed092b'] | I am having trouble layering the images circle and line with the actual text. My goal is to have all of the elements lined up in the center of the page. Should I use a table to float? What the best method?
Currently looks like this
Goal
HTML
<div id="two">
<img src="line.png" id="line">
<img src="circle.png"... |
08ac297db7a97b91f127ef4a9323175977da3c08ccbc2e2339ff01721e90690e | ['e21b4179844048e4869c9ac16974b509'] | After sorting out my code I keep getting a null on my second screen when i hit the submit button having trouble spotting my mistake any help would be appreciated.
first class
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import... | a4f672b38b3fce1d3c5a634bd3615e9b1802ef3d658d161eb286abb0e3b8d236 | ['e21b4179844048e4869c9ac16974b509'] | I have written a log in function for my android app, I am wanting to make it work on API 17, right now it give a network on main thread exception, which I understand you cant do network operations on the main thread, I have played around with trying to put threads in but it doesn't seem to go. So i am trying a asynctas... |
7d44b1ea2fd1eabf6c1f05fe17dcc3459c18d21f42f6e0bf5ee14936a204735b | ['e21d50c8a6f643feac5fe13bad0eb169'] | If you need to load a module both locally AND from a remote URL, you should name the module when defining it and add an "alias" module which is named like the URL, with both modules defined inside the same file.
Example:
//define a module NAMED "moment" using the first optional name paramter
define("moment", ["... | 4e4b3d267ea27510c98d028f518fd1b500bb58d5bdf109619d87bfbd78edfad5 | ['e21d50c8a6f643feac5fe13bad0eb169'] | Running the following comparison by using jQuery's "is" function will return false, since the DOM elements aren't exactly the same, although visually and functionally they are the same:
var $a = $('<div id="test" href="http://www.google.com"></div>');
var $b = $('<div href="http://www.google.com" id="test"></div>');
$a... |
24955406743ac6050d5c58d11aee1a8b31e64ad8409aa78e305601bc5767ff7a | ['e21fd2e1d2cb4c81b3de638c15a471af'] | I am generating report in Microsoft Word from HTML content and right now I am using html_to_doc.inc
It is working perfect but fails to display the Images as they have used image path from the server so the document will not display an image if the internet is off which is wrong. I have also tried to use base64 for this... | 5ff839b2e02d186f9cd373ceb7e19d82828fec54baa4ceee9ebc2d38fe07817f | ['e21fd2e1d2cb4c81b3de638c15a471af'] | I am sending an email from the PHP code. But when I send the email it return the error status. But I do not know how to get the stack trace/error.
Below is the code snippet which I am using.
if(mail($to, $subject, $message,$headers))
{
echo "Success.......................";
}
else
{
echo "Error.................... |
be6fb10ba1f583914e1efd326652fe8e0da8f25f17698b6b1cedef04517e9134 | ['e220bb1a3afc4e7984afc3642bcb6f6a'] | Zomg, way late but I spent 2 hours figuring this out and want to share!
I used Android Studio to create the icon, starting from a new blank project. I was able to figure out how to get to the icon generator from the description here, though I feel like I got lucky finding it, so if you need it, you can pay the $40 to ... | cc5aeab5cbf4112e058ae10e1494327602b31bcbb253cb4a433febeb951a3ae0 | ['e220bb1a3afc4e7984afc3642bcb6f6a'] | This should be a simple question, but I'm having trouble with it: how can I get php to trigger a 404 error, so that the page the user sees has a true 404 header? I've seen several answers to this, but none have worked for me, maybe because I'm on nginx. I've tried:
header("Status: 404 Not Found");
header("HTTP/1.0 404 ... |
99401acd586ed0f4d40b7b48aaa38b43f4ca076d4de5bad96853eceb58378ac8 | ['e22396ece4e448669ba70e1fbd7eea9c'] | This is my code
#include<iostream>
using namespace std;
int main()
{
int s,count1;
long long N,R,max1;
cin>>s;
for (int i=0; i<s; i++)
{
cin>> N>>R;
}
cout<< N << R <<endl;
return 0;
}
for input
1
5 6
output
56
but I want the output as
5 6
I am good in c know how to do the same in c,now started l... | c44a45c3d05eea13dc93ee4e388dc8b63e35959fc086949496ca50bf91685f09 | ['e22396ece4e448669ba70e1fbd7eea9c'] | I know how to take the mean of the whole image which is of size mxnx3 uint8 by using the following command
m = mean(I(:));
my understanding of this command is supposed we have a matrix
A=[1 2 3;4 5 6; 7 8 9];
mean_1=mean(A(:));
output is
A =
1 2 3
4 5 6
7 8 9
mean_1 =
5
... |
9381893d478f24bdbf7fb69af8742434f8f1a325ef35d7144d99d35243e10bee | ['e223aff9c1b542fc8c31c866450b5958'] | This is a more explicit approach. I assume you want to count the number of characters per birth year, per your example. In this case, we handle the ranking first, then add a column to the original dataset, then plot. The new 'label' field is either blank/NA or has members of the top set. I suppress the pesky missing da... | a22c3f7d74a567e367dab4d8af4c64f472c8ac5ecf696236e4675fc460dcd7f1 | ['e223aff9c1b542fc8c31c866450b5958'] | This doesn't answer your question exactly, but if your use case is EDA only, you can take a massive shortcut and just use the skimr package. Basic histograms are printed in the console output.
skimr<IP_ADDRESS>skim(iris)
Skim summary statistics
n obs: 150
n variables: 5
-- Variable type:factor -----------------... |
f9e1d140666e8b820601adbd7071430252cd1f64356d60650d215bc6577c924e | ['e2273c4af244420384cf2173aff7f22e'] | Make sure that you're calling [super viewWillAppear:] and [super viewDidAppear:] in all the places where you override viewWillAppear or viewDidAppear.
Probably true of all the other viewDidWhatever and viewWillWhatever methods as well.
The problem you're having suggests that the UITextView isn't getting the message to ... | e274f94b12f782ade90ac77305f65a38482522d136827b9282e3d30b145ef6fe | ['e2273c4af244420384cf2173aff7f22e'] | This seems like a case where you'd want to actually have two different actions handling the cases if it's that much of a concern, but you can hack around this by using the defaults hash -- http://guides.rubyonrails.org/routing.html#defining-defaults -- to specify a parameter that tells you which one you're following to... |
d70f5a01dff17d2849a0cd3af407d415539e150abede55ef71c19af97209bf43 | ['e22ef513dafb40b393cb66677a4e6dfd'] | Facing issue with getting control handle of the WPF window, Is any solution for this?
am not sure about the below procedure is the right one
[DllImport("user32.dll", EntryPoint = "GetWindow")]
public static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd);
//windowObj is the object of WPF window which contains the scr... | 56911689370433d52271d6029e65e6d130ccb77f680a49dfd13b7e17e00adfd8 | ['e22ef513dafb40b393cb66677a4e6dfd'] | Facing issues with XML validation. My XML data look like this
<Sections>
<Section Id="DateAndTimeSection" Enable="True" >
<Column Id="Date" Format="YYYYMMDD" />
<Column Id="Time" Format="HHMMSS" />
</Section>
<Section Id="ComponentIdSection" Enable="True" >
... |
f6835ee44e503b559e2f2fcdbb7267a4a6bc3b1e686c5ac5a420ced71653719a | ['e22fbe9f25ef4e468e8bcde30bbbe513'] | I am working in a mongoDB + node (with express and mongoose) API.
I have a document with more or less this structure:
// npcs
{
"_id" : ObjectId("5ea6c0f88e8ecfd3cdc39eae"),
"flavor" : {
"gender" : "...",
"description" : "...",
"imageUrl" : "...",
"class" : "...",
"campaig... | c64cdbf32bd15b9b2e05d316256b77f264f613982c07d224bf760b514df98d9b | ['e22fbe9f25ef4e468e8bcde30bbbe513'] | I have the following code in a ReactJS app:
this.state = {
type1: 0,
type2: 0,
type3: 0
}
const setCount = (num, type) => {
let newNum = this.state[type];
newNum = newNum + num * (this.state[type] >= 5 ? 2 : 1);
}
But now I'm working in a functional component and using hooks to manage state, so my cod... |
999b73c7b634f841cfe3cf857a7ccfc5e209655edeb275423e7cc57681de7e28 | ['e23aff1008cf4aa9905523acd5e0fd76'] | I think you are misunderstanding my question(s). For the plane case, I am asking for (a) a set of angles and (b) whether or not the (fixed) plane intersects any rotated ball. You seem to think that I'm asking for the distance from a given ball to a given plane. That is indeed an elementary problem. | 216860158881e033b38f0f626daa80451e6778b486422f048e28fa5f069f9975 | ['e23aff1008cf4aa9905523acd5e0fd76'] | I think I figured out a solution. Let $\mathbf{v}$ be any eigenvector of the rotation matrix $R$. Let $\mathbf{w}$ be any vector independent of $\mathbf{v}$. Let $\theta$ and $-\theta$ be the arguments of the complex eigenvalues of $R$.
The angle of rotation is the argument above with the same sign as $(\mathbf{w} \ti... |
a4d850668b4d2d2c5d7e047ccb50599c812a7b9196573e366fd4e5a2a7207990 | ['e248e098cb2d4178b050a39f19ba599a'] | Finally I found the solution, The issue was in shouldOverrideUrlLoading
Please find below correct shouldOverrideUrlLoading function:
@SuppressWarnings("deprecation")
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (!Global.IsInternetConnected(MainActivity.this)) {
... | adbde30fabdecba76ca8027c037086f1551ace428a4b28b5c94ced286a3e34fc | ['e248e098cb2d4178b050a39f19ba599a'] | Is it possible to add styles to an image which inside an iframe on the page using CSS only?
The following css is not working:-
<style>
iframe img
{
zoom: 0.8;
}
</style>
I tried the following scripts:-
<style>
.zoomingAds
{
zoom: 0.8;
}
</style>
<script type="text/javasc... |
6ecd0a73d0db45db172f7740c40fb041ae070cb52fcaffaf18d687d40d273c40 | ['e249ec7a96d6446799f941da343a18f2'] | I don't know if I understand your question 100%, but here is my suggestion for you
<div>
<div className={`artjom-select-${!!reason}`} id="artjom-select-container">
<Select
value={reason}
showArrow={true}
placeholder={"Please select reason here"}
onChange={this.handleReasonChange}
... | 1f4fda42a726cd55557f3543b25cdab206aa131aafd52f68b00519c6e7836e98 | ['e249ec7a96d6446799f941da343a18f2'] | Trying to modify your code as less as possible. I would sagest 3 changes
1 - Remove the searchQuery dependency from the first Effect
useEffect(() => {
async function callApi() {
const response = await axios.get(`https://jsonplaceholder.typicode.com/users`);
const devices = response.data;
setDevi... |
f1e56e29cbe0c470243c41a17c7fbd63ab506aa04c20baff1b882e70b06cbcd4 | ['e251943076ef438a83aba35f18104167'] | In java if u pass a variable as an argument, it always passes the referrence/memory location, thus if u change the value inside a method, the original value will also be changed. Thats why the linked list is changing.
Now for the string, name.toUpperCase() will return a new string containing the uppercase version of th... | 3e66887cdcb7181b387b2a3804443143156c7a526c01db2355d20f44fbdad945 | ['e251943076ef438a83aba35f18104167'] | On page load, input id="act1" will get the value from session. After that, even if the value in session attribute changes, it wont change the value in input id="act1".
Solution : I am assuming you are using some js to change the value in session variable. You can manually set the new value into hidden input and then tr... |
b50b041b13b3ba89863567ebd3a22eb44f33cbc0aa134947e280a86892a9b27e | ['e256ee71c1304f92a95a7e2e09d5dcb6'] | I am using bootstrap with jquery and I am trying to figure out how to have this textarea line up on the right side of the screen instead of the left. Will someone please assist me in how to move it to the right side of the screen.
<div class="col-xs-7">
<div class="row">
<div id="overdueSection" class="col-xs-6">... | 28e86c696c89e3d85cad5643624a82f254f06309ec42eb2e897b32fed641002b | ['e256ee71c1304f92a95a7e2e09d5dcb6'] | I am creating a single page application. I am using ajax to set coldfusion session variables. Am I unable to call more than one ajax call with jQuery?
http://jsfiddle.net/1zka4soy/15/
If you click on the print labels button and enter a number you will see the ajax call and what it sets on the alert. The New button is s... |
43013f8fa276e0316578b6294a52777fe80b8a2646ef2235a57f746e578f1cf8 | ['e25b3dd602a64cc382a070abc5791d7a'] | I want to hide my MainActiviy Toolbar in my fragment, i'm using:
getActivity().findViewById(R.id.appToolbar).setVisibility(View.GONE);
and:
((AppCompatActivity) getActivity()).getSupportActionBar().hide();
and is not working. My fragment has his own Toolbar, and is already been showed, but my Activity Toolbar is bein... | 555b5d2bd543b5a39ba762c42f87096d330105e0217c2337d7f9aa3710926358 | ['e25b3dd602a64cc382a070abc5791d7a'] | I'm using 3 ToggleButtons (A,B,C) to filter the content of my array (with an AND condition) and show the result in a listview.
For example
if A is true and B,C false... the listview will only show me the items in my array that only contains A. if A,B is true and C is false. The listview will show the items in my array ... |
9bd8f3b80b5b8cb944a0b7bb045eb943bc430946e4b194b9e086c08d0f86cbb5 | ['e25d4e698dbe405c877d82028e8520d6'] | According to the documentation:
TensorFlow uses the tf.Session class to represent a connection between
the client program---typically a Python program, although a similar
interface is available in other languages---and the C++ runtime.
It means that when you do values = tf.constant([0, 1, 2, 0, 2], dtype=tf.float... | 98366f00d7da8f86e48daea2809a1feff1255af3332556a44db0db56d6aec9c1 | ['e25d4e698dbe405c877d82028e8520d6'] | For this problem I wouldn't use SkLearn. Reather with a simple nested loops it is possible to solve it.
Assuming that you just want to find the Dictionary that has the most number of items equal to your Query Dictionary (Dic1) divided by the number of items in the Query (the similarity) the simplest answer that I can t... |
847bd0d1179df9a6305965c971470218d13694605e48560449d4d24cd722e391 | ['e2662d5868644fde8449112f67aee199'] | In this scenario Tomcat wouldn't do anything but serve static content. The words application is pure static client code (no servlets, nothing...). So you can use a simple browser to access the index.html on disk. If you insist on using tomcat for development: There's no need to redeploy. The only thing you need to do i... | ec1e05a38eed926385c8de910c8713d28f45606e1e587ecf6bd1fda77a3ee3b7 | ['e2662d5868644fde8449112f67aee199'] | The problem is in VirtualFlow. In layoutChildren() there is this section:
if (lastCellCount != cellCount) {
// The cell count has changed. We want to keep the viewport
// stable if possible. If position was 0 or 1, we want to keep
// the position in the same place. If the new cell c... |
530265ddb1eb0fb72dda58045896d0995171c45808091334ded6daae11d379d6 | ['e26e46ee70744edcaf015c47390cbbf2'] | Форма, в которой Вы задали вопрос крайне раздражает форумчан, которые могут Вам помочь (меня в том числе). Во-первых, есть смысл разбить исходный Ваш вопрос на четыре вопроса; Во-вторых прочесть это https://ru.stackoverflow.com/help/how-to-ask и это https://ru.stackoverflow.com/help/on-topic (особенно по части учебных ... | 93ae186dfc6ea1de7c371def0f5589a7b83a0ac8314050635c42819102f4ca7f | ['e26e46ee70744edcaf015c47390cbbf2'] | @Владимир я пишу ответ на колене с планшета в метро. Если Вам что-то не понятно, то я дополню ответ, но Вам придется подождать, пока я не окажусь рядом с нормальным компьютером. Советы по поводу параметров в командной строке, которые Вам дали в другом ответе - абсолютно правильные, но это я тоже распишу позже. |
028627c3ed0fa4b07d38858f89249922c273bb2d31942f3beee23d31fe75757f | ['e2758abc1bbe4db0917f03a6e5b31ec8'] | Thanks <PERSON> !! I just had to login and give this answer a thumbs up. Solved my problem. Better answer than any I looked up from last few days :)
Here's my piece of code of how I solved it
Using AppCompatActivity as ActionBarActivity seems to be deprecated.
public class SelectActivity extends AppCompatActivity /*Lis... | baa6b48c35d0df4c869c714857a4a78633a2a4c57fb8e386f83fdbcb600636b1 | ['e2758abc1bbe4db0917f03a6e5b31ec8'] | To make the application remember the last selected spinner values, you can use below code:
Below code reads the spinner value and sets the spinner position accordingly.
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
s... |
973b2740b7a0ffac98bd8acaee35c22b33073328d13505959d2b3a68836da778 | ['e27816333f954139b038ec26f229c56f'] | I'm having a problem with my home page in Joomla! 1.7. Everything was fine layout-wise first. I had a three-column set-up, images to the left, main content in the middle, and testimonials to the right. I then added a News Flash menu module to the left position. Subsequently, the footer section shot up to the top of the... | 21de038cab22fc150ecde691254e270fd073b1a125af072cb109dbed81ee1c6a | ['e27816333f954139b038ec26f229c56f'] | I have the following nav element in regular html. I would like to convert it to a dynamic loop in wordpress. I have already created the pages in Wordpress. I just want to register the nave menu. The problem is, I have more than one ul tag, so i'm not quite sure how to proceed. Here is the following code:
<nav id="foote... |
9df64ea7cdc4a1e5db02791de0f99f722d1040a1298198c85d1d8f6315468824 | ['e27e3d5d2bec46078c532a36cfc5f7a5'] | @rs.29 Since you seem so knowledgeable about her death, did you bother to read up about this girl's _life_? **The only decent response to her story is mournful silence.** Maybe you should put your energy in contemplating how society failed this girl time and time again. In stead of spreading hurtful theories that have ... | 77b8ea8fa1cdfeb24cd2e7055bf3b3d544bd46d421ca2e0cf7b0b4fcca13d1b1 | ['e27e3d5d2bec46078c532a36cfc5f7a5'] | Will try, thanks. I've just found another problem: With Page Viewer, the links I have in my content open inside the same web-part. I'd like the browser to just go to the linked page. Is it possible? I would like my content to appear as an integral part of the page rather than an embedded external page. |
504ee28c1c39fb8393cf738dfb94f3a564ddf8cc59ac9dc1d48182db19d2ceaa | ['e294295de0254eb7b0f5c0be69646122'] | Near a bifurcation point, a dynamical system will undergo what is called critical slowing down -- A loss in resilience to perturbation from equilibrium. See here for more on this phenomenon.
A hallmark of this slowing down is an increase in the variance and lag-1 autocorrelation of a stochastically forced system. As t... | cdf337ca337affabf7113e16e29fe46a1bd94e2ba224984844b9f09a7a672455 | ['e294295de0254eb7b0f5c0be69646122'] | Hi I am stuck in this problem for long time. I expect output "ok" for this makefile. But I get syntax error on calling make:
ifeq (0, 0)
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
make: *** [default] Error 2
Code:
CHK = 0
default:
ifeq ($(CHK), 0)
echo "ok"
else
echo "not ok"
... |
78fe2f4c268330c5db9da2569f21762f071e2c5dd60f164fdeb8ef94ddacf7c0 | ['e29885c70c174c2a8d3f9974a4c1e5c8'] | Given an isomorphic class, let's say a GraphNode, which should emit signals and receive signals in slots which have as parameters objects of the class itself, how to properly declare this with the new style signals and slots mechanism?
One workaround for signals I've found was to declare it after the class definition h... | cd3d34240aac102864f28045491dd651d78ca9d75a15656a285771c875f16e7d | ['e29885c70c174c2a8d3f9974a4c1e5c8'] | After drawing the following UC Diagram, I right click on an use case and send it to the backlog
It appears as a new activity in the product backlog, like this:
So I move it to the board and create a task and an epic underneath:
Then I go on creating the User Stories for the new topic called "Plugin Deployment":
Eve... |
2913485d0e85fa9ffbfb7721c940da17f5bdefa1f35745cfce5a83fa11b9812a | ['e2a048519e334de38cefcfb24995cdb0'] | I am writing a desktop app in vb.net with visual studio 2019. I access a postgreSQL database with the NPGSQL provider.
To be able to react to changes in the database, I have set up a trigger according to these articles:
How to fire NOTIFICATION event in front end when table data gets changed
https://www.graymatterdeve... | d64266eb652f5248bf2ce9d85741046fa525903c9b3fa04b6e4c0f0b51336021 | ['e2a048519e334de38cefcfb24995cdb0'] | Is it possible to have a UserControl with an Event (Event GoUp) that calls a Methode in an second Usercontrol (Sub Upgoing), and all this in WPF/XAML?
<controls:Joystick/> <!--with Event GoUp-->
<controls:TV/> <!--Sub Upgoing that should be called when Event GoUp is fired-->
I know how to solve this in Code Be... |
ccb5f5bbb61723489457a9c539c3f134b1ba0bfe873d514090fbce9be58b15b6 | ['e2a43d5364cb44a6b4defeeb87220c04'] | 1) I'd very surprised if the filename weren't indexed. It's used throughout the API, and I assume that it is indexed.
2) Yes, you can, but there is no real notion of directories implied. Listing files/dirs is a bit more complicated. In other words it's just a label.
3) Indexes use hashes, or fixed length strings, so... | 4a6132ba9d4ab0c5d0a3e22922762fe4741262a1e52a3e80c866e4a55eae393b | ['e2a43d5364cb44a6b4defeeb87220c04'] | There are plenty of uses for StringIO, for instance it can be used in place of a mutable string. However since your goal is to write to file, you should skip it and just go straight to file:
with open('file/path', 'w') as fh:
fh.write('Hello World!')
print open('file/path').read() # if you need to actually print ... |
45d6f3d1113eec61bb601bb298b073a2322bc6dec8ad8791ab1380586194dc85 | ['e2b0239b9ec5485cadaa89373bd54928'] | I'll trying to setup Hyperledger sample on Windows 10 using the 1.1 documentation.
I've installed all the prerequisites.
but we I run this command:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.1.0
from within the fabric-sample folder, I get this error:
===> D... | 57d0e7a79b6d4146fa710e8411449bc212428fb9b20707d61e1e6705ff74c364 | ['e2b0239b9ec5485cadaa89373bd54928'] | I'm using IdentityServer4 for authentication/Authorization, which is a standalone application
In the client application (ASP.NET MVC), if a user clicks login, they are redirected to IDS4, After a successful login, they are redirected back to the client application.
Currently, during the redirects, the page is blank, l... |
bf807ca2250bef3ffe67a94fdd22b247566ad9b30b4a4974f9803f99bbec6605 | ['e2c04ae89744418e8541f7b8342b82a3'] | I'm working with sensitive data, so I created a fake data frame that can serve as an example. This is what we're working with.
n percent
4 36%
5 51%
6 61%
7 71%
8 84%
9 96%
10 100%
Pretty simple. I want to change the percent column so that the values have parentheses around them. So essen... | b40aee68c245484fa589c0e8775449746fd71dbd30ef511ce861349c8281da66 | ['e2c04ae89744418e8541f7b8342b82a3'] | I'm not very experienced in R and I've been having an issue with geom_col(position = "identity") that I cannot figure out.
Here is some obfuscated data that still shows my issue and the code for my graph.
#Dataframe
print(colorsshapes, n = 30)
# A tibble: 30 x 4
# Groups: year, shape [15]
year shape color total
... |
1ae6384296dca09cf6383c7047ac3d29d0c5f86a4b908896905448795d3d896a | ['e2c9275022304addb422292d54becedf'] | So, I just buy introduction book for sas. But it only contain tons of examples with little/no explanation. I tried to find some tutorial online, but I can't find the explanation for this formatting. I just wonder what's the different between these two:
INPUT Name $16. Age 3. +1 height 5.1
I wonder, what does "." mean.... | 2f761924005582fa135fa3fa289999f0b64803c3a7c3e7143a87d1c5a7212f5a | ['e2c9275022304addb422292d54becedf'] | currently, I'm facing a problem with my code and my understanding of pointer. here's the code
struct command
{
int type;
int *input;
int *output;
union{
struct command *command[2];
char **word;
}u;
};
to my understanding, the instance struct command *command[2] is an array of point... |
abce02869580204e49399cdec5b715dd8131e6d9641c8b8a907136461624ac07 | ['e2cb555af558435080d916ab1365e68f'] | I have a selectizeInput and some action links to make it easier to select certain subgroups. I'd like to have one action link which deselects all values (to make it easier to choose just one item for example -- deselect them all and then the user picks one). The code:
updateSelectizeInput(session, "selectizeList", se... | 5481f15c3f9fc2a764454169dc755a3aafc4e60edf0b95a103901c75e9aacd47 | ['e2cb555af558435080d916ab1365e68f'] | I'm trying to programmatically create a table in d3 with quarters across the top and values along the left. Given a vector of quarters ["q1", "q2", "q3", "q4"], I would like the table:
| q1 | q2 | q3 | q4 |
v1 | | | | |
v2 | | | | |
What I am getting when running the code below is:
| q2 ... |
8518b2122b74a5a04bc3137a17425ba057dbc65c25183b5129b89edb32980e00 | ['e2cf79132e8345e49f3d17b31617a4e3'] | Cant make any easier than that:
package com.danielmarreco;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.Element;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.InputStream;
import java.net.URL;
public ... | b6854edd7b036af3527dc2d89120d43a2217b92eba61cab16ea0c9466b726c40 | ['e2cf79132e8345e49f3d17b31617a4e3'] | This simple reducer will return an array of arrays, each one containing all the duplicate elements in the original array.
function groupDuplicates(array, compareF) {
return array.reduce((acc, item) => {
const existingGroup = acc.find(g => (compareF(g[0], item)));
if (existingGroup) {
exi... |
78026aab802c2fea95e801140f3fe74cc329a749ab5fcf7233afd64557f40e98 | ['e2d1de843f3046a5bd3e7a9dfaa5074e'] | Two solutions are possible using recursion, which do not use looping or comprehensions - which implement the iteration protocol internally.
Method 1:
lst = list()
def foo(index):
if index < 0 or index >= len(xs):
return
if f(xs[index]) > 0:
lst.append(xs[index])
# print xs[index] or do... | 710a2cf225908951269793e0e230993867cdc52fed7f7a7f1149ff1b1d5e66ad | ['e2d1de843f3046a5bd3e7a9dfaa5074e'] | In python 3.x in-built functions like map() return an iterable which can be 'iterated' upon using a simple for loop. For printing your answer as a list you need to wrap your function in a list() call or use a list comprehension.
>>>list(map(int, l1))
>>>[element for element in map(int, l1)]
|
fc01763f837ec57126ade1f80aea3907e93ad00a9d21f816158f292df36fd3eb | ['e2e350ca93cd4729a532a49c25576d01'] | I am new to coding in general and currently making R shiny app for my app.
It's purpose is to
upload csv file
Have multiple checkboxes. If it is checked, the data will go through the corresponding script.
Export the new data
I have watched the tutorial but I am currently having some difficulty with reactivity.
I tri... | 197366cfb269b83c65073e1a778fa909eeecd3e2f8a4384154ecd0217f80fea3 | ['e2e350ca93cd4729a532a49c25576d01'] | This is less of asking for code solution, but more of requesting an explanation of the unexpected code behavior.
When I use kable_styling on console, the table is displayed as expected: white background, black font.
However, when I run it within Rmd, the resulting table is white background and white font, that can only... |
893a69b7388315c7fc0a14516cfdf5575c38c4a5c4bb2dc2951171bab82b7c1d | ['e2f26fec026744ca98aec623998afbcc'] | The asset pack would include the database, possibly apps, domains, social accounts etc. I don’t yet know the details of the contracts the customers have but I would look to make good on any agreements they have with our comparable product, and comp’ them any subscription (ie. free of charge for life). For me, the imp... | fb042ac90c94b747803d3cdd2e4b041f89e01d481efd9c1267138e79df1e45c2 | ['e2f26fec026744ca98aec623998afbcc'] | The following identity holds for all $a$ and $x$ using the principal branch:
$$
\log x^a = a\log x
+ 2\pi i \left\lfloor \pi-\Im (a\log x) \over 2\pi \right\rfloor
$$
e.g. for $a=2$, $x=-1$:
LHS = $\log (-1)^2 = \log 1 = 0$
RHS =
$2\log(-1)+ 2\pi i \left\lfloor \pi-\Im (2\log (-1)) \over 2\pi \right\rfloor$... |
c61de2b5df868494f25417855181eaac3abf9f4f260e47959b1ca292df470b6c | ['e2fde9c428c54d9d8e5b8397c00af8c6'] | After spending a day in a research, I finally found a solition of my problem.
First of all I had to modify my entityManagerFactory() and transactionManager() beans:
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
LocalContainerEntityManagerFactoryBean factory = new LocalCont... | 033d2c7019706b94f76db38b75f4e24136288a3821c96651a568a01a73b2c434 | ['e2fde9c428c54d9d8e5b8397c00af8c6'] | I found solution of my question in using org.apache.spark.sql.hive.HiveContext instead org.apache.spark.sql.SQLContext. Now following code works as expected:
lazy val sc = ... // create Spak Context
lazy val hc = new HiveContext(sc)
val results = hc.sql("SELECT record_name as name FROM test_table WHERE day < current_da... |
c9425d84b0157af9445c578f66bed61b081967fd85f0a177f656854530dd467e | ['e31a877c34c1487f9fdff7cfd65ac46d'] | Suppose $a\overline{a}\rightarrow\gamma$ is possible for a particle $a$ with a definite nonzero mass, $p_a^2=m^2>0$ ("mostly-minus" metric, $c=1$). Conservation of momentum implies
$p_\gamma=p_a+p_{\overline{a}}\implies p_\gamma^2=m_\gamma^2=0=p_a^2+p_{\overline{a}}^2+2p_a p_{\overline{a}}=2m^2+2 p_a \cdot p_\overline{... | 64c827e44bd920a174a3b80e448d80d4d74d0057c505e03ca59355635d1bb720 | ['e31a877c34c1487f9fdff7cfd65ac46d'] | So basically I have a large set of features corresponding to a metric - like many ML problems.
What I want to know is: can we correlate the variance of metric with the variation in each feature.
ex:
I have features x, y, z that produce an output say 10. When I vary x, no matter how much I vary it, the output stays rela... |
74846e4bcb5ae8c0d3f140c732b7c7d3cf153fa3d4183775ee0aabd9be15dd67 | ['e33abd7a0309468d9b256c1e241d9624'] | I'm trying to find all files and folders in a certain folder and all sub-folders and replace all special characters. All spaces should be replaced with dots and everything else should just be deleted. I've tried a few different ways but when I use "mv" it doesn't seem to preserve the directory structure and when I use ... | 145615ed018e1d86f385f9c6c37c417d8ebf26e1c1e9e13987a64a70911e3037 | ['e33abd7a0309468d9b256c1e241d9624'] | I'm working on a project where I need to search through hundreds of word documents for a list of strings that are in the title and add the contents of those documents to a new word file. It's not just text but charts and drawings too. I have the following but it keeps corrupting the word doc. I was thinking about tryin... |
dedb97795b4cff3e7f561da2d622966babfbd70398a085fb1a00b7aab67e9cc0 | ['e33cd1b8e3514b739422c9470e1a1c61'] | Stateflow charts are often used within Simulink, and reside inside an S-function (a block inside Simulink with time dependent inputs/outputs). Each S-function will then be an instantiation of the statechart. Normally these form a simulink model, with blocks connected by lines. Although I think it is also possible to do... | d1c84cdca3d52e674ec0058b64d4eccaa00bd1ec365d1fc2a7ec2efa8c0fd425 | ['e33cd1b8e3514b739422c9470e1a1c61'] | How many times is logging_level referenced?
The process is called refactoring. If the change is trivial, a good regular expression can be used in your favorite editor. But often the code has many variations on the same theme. In this case, all of them can be found through logging_level. You can phase them out by hidin... |
d6b395395b44d1d6afe91fb3300bd86fecbe8cb47f173e1d17c1f7766dacd1a4 | ['e34c698338e943baa24b47d969ebef07'] | Okay -- I got past this one.
Like some other problems (nativescript fails to run with an exit code of 0), and an android build problem related to conflicts with duplicate static class names, the problem can be solved if I do a full fresh git clone of my repository into a new directory and building from there. Obviousl... | f1a741c4f44bf054f46dbf334e7dee799acfe3bf0c2eb4d7ee0a96ebc4e19dc6 | ['e34c698338e943baa24b47d969ebef07'] | I am using NativeScript 6.4.1 and am up to date, with iOS platform version 6.4.2
I have been building and deploying to my IOS device regularly. But today I find I can't. It simply hangs trying to install the app (It does manage to force the previous version of the app to uninstall, so now I don't even have the old ve... |
a3479f068e1863d73934194bb7d7eac07c2a7881efcea9428e4e2676e0d83a2b | ['e3534ccea3e040b9b66944f7ce57df01'] | Hi guys I have created a stipe payment method a it works fine but I want to upgrade to the stripe v3 but I don't how tp convert my old method to the new one I look at the doc be they are not so clear here is my old code
I am using Altorouter and illuminate for database and blade template engine Vue for front end and ax... | e5f3ee3c110d6217bd9974cd1a5e7c20c910b035c961798196557181d685f892 | ['e3534ccea3e040b9b66944f7ce57df01'] | I want to add a new font in TinyMCE editor which are display in font dropdown and apply to edit text.
I have used a direct link I am new to PHP I have done some online research but most people post the insert the font in TinyMCE folder but I do not have the folder I used the direct link
|
9b5114bf2aed7bb9797efc3850eb9a5422fecf1a59b25237ece656abcfce14c6 | ['e35b48f90f4a478faa5a391f97db0b3d'] | Why aren't those <PERSON> interpretations models? What I don't get is the second element in the tuple - what is that relation? Why is it a set of sets and how do you compute it? Also - if U={c} is the Herbrand universe. Does not it mean that I can only use c as x and get R(c) and not R(c) and thus the Herbrand model do... | 0336f10639055d9d281def2af7026a826fe1664dd48233f5ccd6a55fa53a18d7 | ['e35b48f90f4a478faa5a391f97db0b3d'] | Let $\left(V,||\cdot||\right)$ be norm space. Let $A\subseteq V$. We define the Convex of A to be:
$$Conv(A)= \{\sum^n_{j=1} \alpha_j v_j : N\geq 1, \alpha_1,...,\alpha_N\ge 0,\sum^n_{j=1}\alpha_j =1, and v_1,...,v_N \in A \} $$
The smallest convex set which contains A. I need to prove that if A is finite
then Conv(A... |
57caa708c10f7336ec6c2107a8a60db5911774b977a8731c8cf5974d93137c03 | ['e3964c25dc414e3aa63d3c6fa1d45d6a'] | Chinese have decided to ripoff a PIC product I make. Switching to ARM for other reasons anyhow, mainly that Microchip is a joke, either STM32 or NXP LPC, exact chip is open still.
There are sites that claim to have vulnerabilities for various Cortex chips.
As I understand it, there could be a decapping process where ... | 205b43955eafa7e2032a04fc1023c3abbb7ecee7f3cb0e8d7ea6531f12c245b3 | ['e3964c25dc414e3aa63d3c6fa1d45d6a'] | Consider the measure space $(\mathbb N, \mathcal P(\mathbb N), \tau)$, where $\tau$ is the counting measure.
I've decided the system $\mathcal N_\tau$ of $\tau$-nullsets as the empty set.
I must show that for any function $f \in \mathcal L^{1}(\tau)$ the identity $$\int_{\mathbb N} f(n) \tau(dn) = \sum^{\infty}_{n=1} f... |
37cebec2f50db75fa941947efba0e557615faff283f93e9058353c327aaea9fb | ['e397407660b643ff8afd7b00b3052331'] | Если нужно асинхронно дождаться метод, то нужно ставить await, которые в свою очередь требует модификатор async.
И так возникает цепочка из методов с модификатором async, что как-то бросается в глаза и кажется, что что-то тут не то.
Вопрос в том:
"Пирамида" из async модификаторов- это нормально или может когда-нибудь п... | 5c931f09419f40efdf71336a64ec25135de6a27f777c2d9ae0a774a8d597c827 | ['e397407660b643ff8afd7b00b3052331'] | Not sure if Samsung added that feature in your rom, but this thing are provided as features from manufacturers. If your device lacks this feature, wait till new update.
Or you can install new rom for your device which have this feature. But it is risky as rooting and flashing new software involves.
|
33ae307ccfe555d14f6e429f9ad10d2f87240ed5a988f281eb61c158390a8d71 | ['e3b65d3701ef4616ae65381254dc2053'] | Well it is not my principle, the fact that i and -i can simply be swapped sounds like common sense in an entire expression WLOG. I know it can be proved rigourously for the specific applications I mentioned. Im also not asking if it can be generalized to any isomorphism. I was just asking if this principle has any name... | 264faa9a97dc392131dc3ebf66395d4e5ed5c41c4f213c47d59338ca1cc171c9 | ['e3b65d3701ef4616ae65381254dc2053'] | I'm looking for name of a theorem or principle in complex numbers which says something like the following, "Any algebraic expression can be replaced with its value in conjugate if every variable or constant is also replaced by its conjugate.". Proof is essentially because i and -i are arbitrarily chosen, and you can sw... |
1e9aa2baf2ce7e334b075b8a8b7f52b3fa0d13f70bd981168055b90749681de9 | ['e3d644771e4947f8a52e9ee9bf2f0a01'] | Use Dataframe's as() method to remove ambiguity when referencing similar names.
df.as("a").join(df.as("b"), $"a.mgr" === $"b.ID").show
+---+-------+----+---------+-----+---+-----+---+-------+----+---------+-----+---+------+
| ID|country|dept| doj|ename|mgr| sal| ID|country|dept| doj|ename|mgr| sal|
+---+-... | c5ef2d8f467c1e3adf7e5a56e7593e8373f352d56310431d8bc707fb80ae7129 | ['e3d644771e4947f8a52e9ee9bf2f0a01'] | If you're okay using pivot, this is quite straightforward.
val df = Seq(
(1, "First Name", "<PERSON>"),
(1, "Last Name", "Shri"),
(1, "Address", "Ayodhya"),
(2, "First Name", "<PERSON>"),
(2, "Last Name", "Shri"),
(2, "Address", "Ayodhya"),
(2, "Skill", "Archery"),
(2, "Marital Status", "Married"),
(2, "Age", "23"),
(3... |
624ed34e6c6e755764ec2abc8a0413a7bef5490e8357836f4e07f7953f8210f6 | ['e3dde376cd8c46968ec8381160d958f9'] | I'm trying to display data from my web using API. My API is working correctly. But some how i face this issue json.data is not a function. (In 'json.data()', 'json.data' is an instance of Array)]. Can I anyone help me on this?
_loadInitialState = async () => {
const token = await AsyncStorage.getItem('token'... | 5ffdf9e37b0c15418efc5b27f64ef7d7acc40ff4b1b105db7724d96e141a9ae2 | ['e3dde376cd8c46968ec8381160d958f9'] | I'm trying to understand the reason of this error message from postman when test API.
When I am testing my REST API from postman, it gives me error
ErrorException (E_NOTICE)
Trying to get property 'staff' of non-object
I try to find the problem but i can't find it. I kept searching for this but couldn't find an answe... |
430ac27810a64c7eaa41236e69416b49b66ace87a6309f8986c92d61f94ac660 | ['e3ef2a7a68be4e20a97c292d16b3d994'] | I am attempting to request data from an endpoint however I am currently getting the following error. Any ideas how it can be resolved.
REQUEST: Error: write EPROTO 140735243141888:error:140943F2:SSL routines:SSL3_READ_BYTES:sslv3 alert unexpected message:../deps/openssl/openssl/ssl/s3_pkt.c:1289:SSL alert number 10
va... | d9647c17fdcba1e3eebf223b5e577529949bbed34312fa86e0a5073c5547ecc0 | ['e3ef2a7a68be4e20a97c292d16b3d994'] | I was hoping if someone could help. I am trying to write a test against a search feature, which when a user enters a few characters into the search box, you are provided with suggestions matching you entered criteria. In my example below I enter the words 'cel' into the search field and I get back 3 list items. The cod... |
1626d86886f17af060c3f42e57a3d71c5d91047a44c6c4622f5c408c799e1b7a | ['e3f5fbd834c04b79a3b829913c26b65c'] | I have a datagrid binded to a collection of custom objects.
This datagrid allows the user to access a context menu when he right clicks a row. I do this through TextBlock styling:
<Style x:Key="DatagridTextblockStyle"
TargetType="{x:Type TextBlock}">
<Setter Property="ContextMenu">
<Setter.Value>
... | 7be14b2e4e5b6423c799a0a68941e742177012ff0d5cbefedec6862156c9f050 | ['e3f5fbd834c04b79a3b829913c26b65c'] | In my application, I create an excel file. To achieve this, I instanciate an Microsoft.Office.Interop.Excel.Application variable and set its Visible member to False. When I have done this, I see my EXCEL.EXE process in the task manager.
The problem is I have to let this variable live throughout the application executi... |
0af4aaa151c1d77f1c039f7506d3fafee1f0d9ac78331f97787d724f486812e8 | ['e3fe143632d545e1bb7b0daa1b62db16'] | i am trying to implement the naive bayes algorithm in java. But i have a few confusions on the naive bayes model. What is the model of naive bayes? Is it a table ?how we can make prediction from the model? I can implement the algorithm in java code and make prediction.But i heard that's not the right way to do it. we s... | 0ca786309367fa5e3ac72929b109ab50a320f007854dc033a82cf110a72f34ab | ['e3fe143632d545e1bb7b0daa1b62db16'] | I am trying to deploy a flow to a sandbox and I am getting the error
Property 'storeOutputAutomatically' not valid in version 48.0
The sourceApiVersion specified in my sfdx-project.json file is 48.0. The <apiVersion> in our package.xml is 47.0. However, this flow has contained the <storeOutputAutomatically> tag for t... |
6927ed9ff096b359e54db49c6f24645ab9b9cb8e0c771c11e1148f8a530189ba | ['e4017dc7608f4d0eba26c80149000cef'] | 2017-01-02 14:53:21 WARNING OGG-00869 Oracle GoldenGate Delivery for Oracle, reptar.prm: No unique key is defined for table 'BANKUSERSLOGIN'. All viable columns will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to define the key.
2017-01-02 14:53:51 ERROR OGG-00665 Oracle ... | d3a5f53f1928be63f0a6b135574b519ac0c18a9f839eb96f4bbb52f8e8fae59d | ['e4017dc7608f4d0eba26c80149000cef'] | In Oracle Golden Gate, I'm unable to replicate production sequence to replicate database, since as sequence increased by 1 in production, the count of sequence in target increasing by 2.
Let me elaborate, suppose I have sequence with currval 190, assume after initail load, target sequence also have currval 190.
Now I... |
5c5a38c529d2297f2d6a9e016bc1d856f6aa79ed658c3e19c47760dc570ba759 | ['e4037125c7864a82964fcb0ce9bf697e'] | I assume you want the Scrollspy to apply as soon as a section comes into the viewport. I suggest you to use the data-offset-tag and set it to the viewport height. Just add the following to you body-tag (which is the element you spy on):
data-offset="$(window).height();"
Your body opening tag then should look like this... | bfd86fb544bd9edccdc3669d445784e97fcc2e9390a5761f3bc6e1c8e9716e43 | ['e4037125c7864a82964fcb0ce9bf697e'] | I'm displaying an element on scrolling down and hiding it when scrolling up again. Without using setTimeout, this works just as expected. However, using setTimeout causes the 'display' class to be added and removed in short intervals when scrolling down. How can I avoid this while keeping the delay?
onscroll = function... |
6475d854869b1fce7b9b5862d4aab84df33a3417446f767b2f4f84cc0d186f95 | ['e410629be73e43c3a09a8620b6f93d1e'] | As far as I know, there is no way to differentiate on the execution time of certain lines within the same file since you schedule tasks per file that should be run.
But I might be able to make the exchange of data between the different files a bit easier.
When you only have one data object to exchange between scripts:... | 7285d09641ecf33e6f10892096bf3b9ff160fe5fc6fd520d96d09440f1f80ae1 | ['e410629be73e43c3a09a8620b6f93d1e'] | The problem is that your input variables are strings while rnorm takes numeric arguments.
You can see how it works if you use 1 as input variables and cast this to numeric at the server side.
Now if you change the value in the input box the error 'invalid arguments' will appear again. This is because you will have the... |
9e817e3aff200f559c3b83ac610159d2984621117e410012f7f3b8798a9a17f5 | ['e412226164a6400d8e5c3f9e505a5f8c'] | When I compile my LaTeX Document locally with arara it works! But when I put it into Docker (Fedora) I only get this Emergeny-stop:
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019) (preloaded format=xelatex 2020.10.21) 22 OCT 2020 00:31
entering extended mode
restricted \write18 enabled.
%&-line parsin... | 17ac9ee00682d6e22b0fec756bbc97e13f79bf182a4073318414f6050d824ed8 | ['e412226164a6400d8e5c3f9e505a5f8c'] | I am using openvpn very happily, I have more than 50 vpn defined on a debian jessie machine.
I have a question regarding the ability to map some route to some process.
I would like to known which tun interface is mapped to which openvpn process.
At this time my only solution is to scan the syslog searching for some s... |
4151fd7922899eeef1bf33aa22275df1f4f0b2013a486596a2ce70e4bcf6daa1 | ['e44ba18de4ea43d4a7f642f138b31687'] | Recently I have taken up an interest in learning "bare-metal" development for ARM processors using native assembly. I bought a Raspberry Pi Zero which features an ARM11 processor, and am currently looking for a toolchain to assemble and link my code. It says on this page that only the A, R and M profiles are supported ... | 34bb9a039f9392ae36ced32d76a0d41e64b696f5f9b821c0eb0f0eb9d0922ae3 | ['e44ba18de4ea43d4a7f642f138b31687'] | I would try putting your code into the Arduino IDE and enabling verbose output in the File>Preferences menu, then uploading your code to the Arduino and looking at the output. If the upload is successful and the program works, you will be able to see the commands that were used to compile and upload your program to the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.