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
c185db0f990ed4e3b558a95064abc0f634388397f89077549cfb09ed367cab05
['7c019c91510d4fc4852b741871521cf3']
I am making a small database application for the experience, but I am having a problem with actually accessing the database from my PHP code. I've tried accessing the file name, accessing the separate mysql file. But whatever I do, I get an error message <?php $password = md5("passhash"); $user = array("name"=> "JohnD...
dc18eb0ec960c99b6ec14aad8a3f47623ed33beea1260c7dc2213eb0fe57f9a5
['7c019c91510d4fc4852b741871521cf3']
You need to install the module in order to use it. If, for example, you needed vue-tabs-components somewhere in your web app, you are going to need that source code for that module in order to use the tabs. When it's served to the client, the code gets packaged and bundled so it's true, they don't need npm, but you do ...
caeea8ec1d609fc7d6ed569764e6ff015b2ba555c76ecb6fca1a62a88b588474
['7c026ede583046b69f289ff0d5ce1829']
Hi guys new coder here... just need some help. I want to display a nested data in vue having vuetify here is my data: { "data": [ { "id": 1, "customer": { "id": 88, "name": "<PERSON>", "mobile": "240-545-5366 x7059" }, ...
55b87a7bdfcc02293b9414dfe545b6b58be5e9607fc0fa6fb462c9da4288e046
['7c026ede583046b69f289ff0d5ce1829']
I am trying to build a sms notification using laravel, I want to execute a http url once i hit the function on a laravel's controller with this code public function sendSMS() { return 'https://api.smsglobal.com/http-api.php?action=sendsms&user=testuser&password=secret&from=Test&to=61447100250&text=Hello%20...
b018c711f69303d7482120f1e54a9a49116ad274c6b6fda58a0307085a773b54
['7c03c1bcca694e2396b78af20566ba82']
"Untagged union as fibered coproduct" is a great answer to the question I was trying to ask, though at a slightly higher level of abstraction than I hoped for. I think <PERSON> paper might elucidate this for me, though I need to re-read it to make sure. One thing I'm not sure how to fix is the use of $0$ and $1$ to re...
98d9526274090c4a4facc1ba5a9429869a62874d6a32ff3197c66033bb5b5b00
['7c03c1bcca694e2396b78af20566ba82']
These are the words to, two and too. We three are one For ear or tongue Yet not for eye nor hand They sound the same, but are written differently. Of our good three But one lacks three Only one of the words has fewer than three letters, the others have exactly three. As this riddle lacks we None of these ...
0c26c2fa55efdab48752d5b0354d300cf4ca48dc55a1ff0582487f570fe791f5
['7c0b356b81b54dd59a0ab0ad180b06f4']
For opening a file to write in Ubuntu on Windows bash, you can type -: nano filename.txt The above command will allow you to write/edit in the file after which, you can use ctrl+x and then press 'y' to save. Check/view the file content using -: cat filename.txt
63f9935c65b53b347a53434eb50cb66286f1d5329f6804a7731a011cc78bae78
['7c0b356b81b54dd59a0ab0ad180b06f4']
To remove all special characters in the given para: word="" for ch in para: if ch.isalnum() or ch==" ": word+=ch To calculate the less frequently used words whose count < 3: x=[] for i in word.split(): if word.split().count(i)<3 and i not in x: x.append(i) To print the last 20 less frequent w...
ec5d7d4f52ae97886684ac188a1e3db2c18083aa4c1b5f69962009735832309d
['7c2ac843f4da429db10961fe2796b7a1']
I am currently creating a report in SSRS. In order to save the job of creating a load of Stored Procedures I Found some code that would populate my parameter only with results that already exist in the table(i will call it the ID). The idea is I only want the Id values that already appear in the table so that there are...
a425a5b43058ba395c84893751e9273aeaf7d744bd8d5392fab2d5b18dc0fadc
['7c2ac843f4da429db10961fe2796b7a1']
I am currently looking at a system that implements the PayPal api. As a part of this I need to get the feeAmt() which is the fee that is paid to paypal for processing the payment. From the documentation that I have looked at it appears that I have to implement the getExpressCheckoutDetailsReq() method in order to get ...
45eea032bd82f0843db7f572cf7f7245b8fdffd93f4e9a37d7ef03c09a331f43
['7c2c2ce2fa124497addc668ddf97675d']
I want to prank my brother by throwing all domains he tries to visit to a webserver I have on the network. but how do I edit his /etc/hosts file in such a way that I will redirect everything to that server? <IP_ADDRESS> is the server
45e603e28ce2b2cc0dc4520f4d1e72146219ca5193e939ed1b6a462734c9892f
['7c2c2ce2fa124497addc668ddf97675d']
I've been running Lubuntu for about 4 years now (since I think 12.04 actually?), however, something unforeseen happened. I got a relationship that actually lasted for more than 2 years o.0 Anyways, back on topic, she has to do homework now and then on my laptop, which is perfectly fine by me. I created a new user for...
4cf89c203b3ec32cb29e27628b28b3f1b2a6bcfdfbaeff91824a08c79cb75a00
['7c37d6cfa92c49b4b51e8a4e4b6bbdeb']
So, I have a table with the following structure; CREATE TABLE [dbo].[LoadAgencyInfo](        [Agency] [varchar](4) NULL,        [Fund] [varchar](1) NULL,        [Account] [varchar](14) NULL,        [LName] [varchar](20) NULL,        [FName] [varchar](9) NULL,        [SSN] [varchar](9) NULL,        [Prior] [varchar](3) ...
291506e1e6efbab5e83aa5be618a9baf2ad5c42b6394ae1e25a190c046c1a62c
['7c37d6cfa92c49b4b51e8a4e4b6bbdeb']
So, I’ve made some adjustments to the SQL format xml file and to the SQL command itself as you can see below. The issue now is that all of the appropriate fields are populated when I run the command, but the last cell in the first row gets all the subsequent row’s data as there are over 2000+ rows. What should happen i...
e1d0e7f5488adfae2c9415c5d1c6399e771b11b71fd6749e08285827d9e880b6
['7c427f0902a443bcbef9366862b32de5']
First thing, you won't see emptys divs. Example - 1 $(document).ready(function() { $('.change').click(function() { $('#first').toggle(); $('#second').toggle(); }); }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div id="first" style="display: ...
fb10c0edc940e0acef92d10cd114d9874b6267981291da0e3d443483591637d2
['7c427f0902a443bcbef9366862b32de5']
$(function(){ let motion1 = $('.motion1'); let motion2 = $('.motion2'); let images = $('.column1 img'); images.each(function(){ if($(this).parents().hasClass('motion1')){ console.log('hi'); } else{ console.log('no'); } }); }); #main__slider{ width:40rem; height:25rem; ...
3ec78904b2f734906702e385a4a24842f2b74efdb14e5a293a6ddbb5a9469897
['7c4aa630789342e1a548732b9c91a65b']
My main target is to globally enable all ports to compile with macports-clang-3.4 and use libc++ instead of libstdc++. For example when working with one port I need to set configure.compiler=macports-clang-3.4 and configure.cxx_stdlib=c++11 to the command line. But how I can set this variables via macports configuratio...
0b7717eb4f11de9eb75faca54473d59d53c42ce2291cf9f87e123e55ada3cc5d
['7c4aa630789342e1a548732b9c91a65b']
I'm working on an application to help create a grocery list based on the meals (and their ingredients and quantity) that the user provides. So far, the epics that I've come up with are: 1.) Research (units of measure, popular food items and categories, etc.) 2.) Login 3.) Scenarios (have food and possible recipe, need ...
5435f7ac572be138d8efe2c01edd1b7f76dbb4cca0fc65aca14c7918c9da4889
['7c4e98d7b0d14fa891955d89ce6cf40c']
If there was never an MS account attached then I'd expect to be asked to add one. I'm not, it's just asking for the MS account password. As I said, the login password does not work so it certainly seems like there's some other account login associated.
e75e434454bdfc3a74cedd6190a4dea6cc7a484e16312898d08fb6c89ebfb84f
['7c4e98d7b0d14fa891955d89ce6cf40c']
I'm trying to update my father's Windows 8 PC to 8.1 and then to 10. Unfortunately there's a bit of a mystery surrounding his Microsoft account login. His user account has a password that he uses to login, but when I updated to 8.1 the process requested his MS account password and the login password didn't work. On rev...
529ab9dbf736336840c6ac261a6baa4f161612809b2049a5730a42c942fc9f63
['7c6bd28c134546b2b5717dbb534d4cfa']
Yes, you can have many different assert statements inside of j/x/n Unit tests. However, as you have found, should any of the asserts fail, the entire testMethod will fail as a result. As it so happens, inside of a testMethod the test runner will begin executing the assert statements. As soon as one fails the testMeth...
a6606be8d9d8e7104dc4bfa8a05e89368a11ebc0ed1143e72ed6172834a46e4d
['7c6bd28c134546b2b5717dbb534d4cfa']
Looks like the restlet framework has called getRequestEntityStream() on the Request object which in turn calls getInputStream(), so calling getReader() on the request throws IllegalStateException. The Servlet API documentation for getReader() and getInputStream() says: public java.io.BufferedReader getReader() .....
4471a2625103375c682ef03a237de5372470088c97b3f4c737d60db77d41fa28
['7c6f5d3e5b30413ea4e069b4f8087f90']
I'm not sure that this will definitely address all of the warnings, but try adding the argument stringsAsFactors=FALSE to the end of the line where you create the data.frame. Just by creating a character column you are using factors, which can't be modified with a simple assignment command. Your command should read x<...
03fd53d95d02647c22a2800da1f45f4bb8f3575c617861632fbf1ca27ca5e387
['7c6f5d3e5b30413ea4e069b4f8087f90']
I've been writing a program in R that outputs randomization schemes for a research project I'm working on with a few other people this summer, and I'm done with the majority of it, except for one feature. Part of what I've been doing is making it really user friendly, so that the program will prompt the user for certai...
1571932793c083944246b4309bacfb53219f963f91f967129d3a0faf3b16e9f2
['7c76a0f0c3ac47beb7ace98a04cc9583']
Personally, if I had to do something like this and was for whatever reason prevented from refactoring credentials as I go, I'd add two more branches, ending up with an arrangement similar to the following: master: the original code you inherited localcred: branch from master, and add just the one patch that changes all...
46444a806523f02d735f34f5d6cb65117602b6790d808694fdc0a48fda64d20d
['7c76a0f0c3ac47beb7ace98a04cc9583']
@SantiBailors first you say "hopefully no" and then "why does it matter" - so you clearly understand why it matters. Not because of language being better or worse, but because of market context. Using a modern language has, often times, technical advantages - tooling, libraries, etc - so it would probably be useful. Be...
7d9d51d43bb142d04fe0957335e4edde202baf91e6cf5459673dffb63827aa70
['7c77cc5acf3447b5b0a4db765e6eaf7d']
How I can parse int from JSON which I get from Cloud Pub/Sub? I tried many ways but no one was successful. Here is my example code and output from it. exports.subscribe = (event, callback) => { const pubsubMessage = event.data; console.log(Buffer.from(pubsubMessage.data, 'base64').toString()); console.log(pubsub...
00041a7aca533196ed32e913c2c27f5eb3c7688a6c7e7356db0e7d639d1e0dd8
['7c77cc5acf3447b5b0a4db765e6eaf7d']
I have some transaction data frame with customerId, date(Date class, but separate year and month num cols are available too), value. I need group data by ID and month and do summarise value and convert it to time series for stl function. But some customer did not have transaction in some month and you need for stl have...
20112d35eb04f05cec7bbc0d7ffbfa2f285b714cd77ec1361b0ab306b74e0bc9
['7c7b38d5d008483eb3a118bef62311ef']
Here is the complete story. I have this ROG Strix G g531gv laptop for almost 6 months now. specs: i7 9750h, rtx2060(mobile), intel SSD 660p M.2 nvme 512gb, 16gb 2666mhz ram, 1tb 5400 seagate HDD Temps when playing games that's installed on the ssd was 28c on the lows and 50c if it's really hot. The first time the drive...
5ba5b99dc822f41a20820030710019c90e124410097015472e4863a1ef897fac
['7c7b38d5d008483eb3a118bef62311ef']
<PERSON> Our teacher said my proof isn't correct and that I should I start out a proof by choosing some $(b_i) \in \prod Im (f_i)$ and see where this goes. I'm unable to follow his suggestion and write a proper proof. Or he may have said something entirely different, unfortunately I don't remember exactly now.
161eacf6dacf8e3d1b867cded19b0e3599c6c6ea5f995c0f27df6e4b8863ef5f
['7c99620496f14e388608c212ed4b3ce0']
I'm Java background and new to oracle SQL 1.i'm creating the custom type and not sure is there other way ? 2.Created procedure UPSERT 3.While executing with exec command in SQL Developer throwing an error Custom TYPE : create or replace type temperature_ARRAY as table of number; create or replace type p...
6b292fff4a7ffd01d8d09d0f084cb55c7ef4114e8b837bb30ed69234b94116ff
['7c99620496f14e388608c212ed4b3ce0']
int is an integer, a number that has no digits after the decimal point. It can be positive or negative. Internally, integers are stored as binary numbers. On most computers, integers are 32-bit binary numbers, but this size can vary from one computer to another. When calculations are done with integers, anything after ...
12886ecb2947d008bca2e9c7bff8f195544cec4fd95745482521f75c78e25895
['7cb44cf32c3440d5ba18e316e03e79dc']
I'm not really sure how to go about even solving. So I am programming blackJack and I have my function declarations (as shown) as such, and for my add_card_to_hand function, I don't know what to do. I have 2 arguments, a hand that I have passed by reference since I'm gonna be changing its internal values and a card; th...
873ccd71695aeae1f15859989fee1625a224f4f357d7de7e5592b2fa8cc6082e
['7cb44cf32c3440d5ba18e316e03e79dc']
I am trying to see all flights that happen every single day and where they go to. I am ultimately stuck, I have selected the categories that I want selected use the filter to try to get all the flights that have exactly 365 flights but it says there is no data, I don't know what my next step should be. flights %>% ...
40e25899605b6a59fa1bbedadaa2b97696ceff5515df68f45b28774941ca7578
['7cb7e41972f9474ca3ff44e774ed6fa7']
You are creating new pickThree instances using the var keyword, so the original pickThree instance that was added to data never gets set with a value. You need to remove the var keywords like so: if (under25) { pickThree = ".Under25"; } else if (under50) { pickThree = ".Under50"; } else if (under75) { pickT...
60a025cf3a94ef0be0507af233eafc1e96e86d364afebddcfbafa337593b6164
['7cb7e41972f9474ca3ff44e774ed6fa7']
If you need to do this with a more complex set of fields i would suggest checking out the :nth-of-type() and :nth-child() css selectors. .field { display: inline-block; } .field:last-child { display: block; } <div class="field" > <input placeholder="Firstname" class="firstname" id="firstname_field" name=...
97ec169d1b7b712d2787b6140b9888f68577429d01eeaf00cee20b72215c8dde
['7ccdfa982610426d8030f780f84db783']
Replace vector<int> list3(list1.size()+list2.size()); with vector<int> list3; When you initialize the Vector with a size of X you will have X elements with the value 0. Then you use list3.push_back(Y); which will add the Element Y at the end of the vector. If you declare an empty vector and use list3.push_back(Y); ...
573e0419d832735a6764bc2a10867a1a170d88f002f8383ce30c7f4190e6b2be
['7ccdfa982610426d8030f780f84db783']
I wrote a programm that can up-/download documents to sharepoint and check them in/out. It is used for data integration purposes and works quite well. It was implemented using SOAP, but unfortunately the Server is configured to only be able to handle files with a size lesser than 50MB via SOAP. The server configuration...
cda780da9911fb82a8eae21a78e082955432b73324d27dc9f80a8bb5160f0a5a
['7cd4ad4a670e4e84a04cd1ee447ad4ed']
Problem solved Initially changed the format of the cell DataGridTextColumn Binding="{Binding Pay,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay,StringFormat={}{0:+#;-#;''}, Converter={StaticResource decimalConverter}}" Header="Sum" IsReadOnly="False"/> And added Converter public class DecimalConverter : IValueConvert...
64b1693835f4307bfb22535f55af15afa9a09b67cb4dda03d62eac4cd93d8d00
['7cd4ad4a670e4e84a04cd1ee447ad4ed']
The client application has an app.config file where the IP address of the service is specified <endpoint address= "net. tcp://<IP_ADDRESS>:8123/Service". During development, I use <IP_ADDRESS> to update server references (during which the necessary classes are automatically generated).I have a few servers with wcf serv...
4eacd114cbd47be500daa7c99d57aded904667e6c12be63effd4a52a420b5f6a
['7cde7aabac1e4d5f88153958e562e11a']
I found how to upload a file without Token. https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload#resumable First you must use Token and file's info you want to upload to create the resumable upload link. Send this to google. POST /upload/storage/v1/b/myBucket/o?uploadType=resumable HTTP/1.1 Host: www.google...
e4055ec16a7495c6ed2633e146fd800718fe79b72483722b2a5b8f9e0509c607
['7cde7aabac1e4d5f88153958e562e11a']
I'm trying to use ImpactJS, a JS framework. I want to add socket.io functions. As soon as I add socket.io there is an error Uncaught ReferenceError: sock is not defined jquery-1.7.1.min.js:4 My class where I use soket.io :here (end of the file) My index.html : here I don't understand why I can't use both. Thx for your...
e6d6f73a5c0ab70231de968e739104bb1de372f71861aef23187cf53f816aee2
['7cf07a0132bd4568a93cb0434c63be38']
Basically, when assigning the property of my image view to a property in my data model it doesn't work. However, if I explicitly set it as a new UIImageView it works fine. cell.imageview = obj.struct.imageview Doesn't work, have to click cells to see the images or wait 10-20 seconds cell.imageview = UIImageView(UIIma...
29bd05705cc0b3bc5ddcc3cb8b10cc83cfd06a3e1309ecb9fee43f7f1ac4db0a
['7cf07a0132bd4568a93cb0434c63be38']
using dequeueReusableCellWithIdentifier works for the first 7 cells and then it randomly starts to reuse the cells from 1-7 for 8-14 and so on... However it should be creating new cells as they dont exist yet. This is my code- func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITab...
7c90e76ecf19bc4d6699e6c7e65622820f0902d64547217ab488f9eade58d8c1
['7cf5a7ba580b49a8b71104dab3d8385b']
You were close, but you missed a few characters that needed to be escaped. First, powershell (and most other things) uses \ to escape quotes, not /. Second, in batch, plain % need to be escaped by using %% instead. (On a side note, you would normally have to escape the |, but you don't have to here because it's in a qu...
7755a65349b8bfd03a2768c5d6524f206e4363da16f55d107e6953ced5b4f297
['7cf5a7ba580b49a8b71104dab3d8385b']
for loop variables can only be a single letter. %%file is not a valid variable name, so you get an error. (Run the script from the command line instead of double-clicking it to see the error %file was unexpected at this time.) Simply change the loop variable to %%f. set /a var=0 for /r c:users\user\desktop\ %%f IN (*.m...
11aff381849e6e2b4da062655463c86cc3dbd963dc8a4689ddb54032399b3ea6
['7d019e80fd95465f8f8a514a66a4cb94']
Find a mentor and pick his/her brains often. Once you are working in the field ask for code reviews from senior developers. This will get you out of your own habits, and reading people's suggestions for how you can improve will give you plenty of insights. Don't sit around reading, solve problems on a per-problem basis...
3de39a950ff63d37bdd77552835b0fc8a88366ea8e015b5526122ab9d502a361
['7d019e80fd95465f8f8a514a66a4cb94']
спасибо! это то что я искал. нужно только разобраться вот в этом private static final String DATE_PATTERN = "(0?[1-9]|1[012]) [/.-] (0?[1-9]|[12][0-9]|3[01]) [/.-] ((19|20)\\d\\d)"; Такое я уже встречал в некоторых примера по валидации даты. В остальном логика понятна. Проще говоря глянуть поподробней классы P...
2c57154e198c9a133b6e1005c3ac8e2aa6d2d5f350e5e35be8190a4b62d32f54
['7d0613d49f174b1896c3fb449fc2eafd']
So just FYI, I have very limited SQL training, and my new position is requiring that I learn so please be gentle with me :) First off, I saw this: Multi-table query in Microsoft Access And that is exactly what I need in principle; however, my data structure is a little different. I have roughly 24 databases each averag...
465233d2689a2a6c3695db6be74f5697c8e7e3e1b0d7aaf3831744d4225982e0
['7d0613d49f174b1896c3fb449fc2eafd']
I have a dataset of 800k unique customers, and then about 3.5 million customer orders. In the customer orders table I have data such as Zip code, etc. These details changed between orders (if a customer moved for example), so right now I need to match the unique customers with the FIRST details. So in customers I have...
838a2db34b57b51694f1687bbd5769f8fc5311ce5988475c527798cb0f93e118
['7d1cd5b0357d44fb86c29e55aebd272a']
@Ian_Fin The postdoc salary is quite decent. Once I start working, I could manage the expenses and afford to live there. I am just unable to front the upfront setup costs. I have just come off a few months of not being paid and in addition to this, the currency conversion from what I was paid in my last job to GBP is...
dc212bb4f02e7c87f80ae272f6139711c7d0d5f71e1c101fcf223d1f09e7e3b7
['7d1cd5b0357d44fb86c29e55aebd272a']
I would like to change the graph to show the 14.047 is less than 15, more decimal precision \documentclass[12pt,a4paper,onecolumn, openright]{report} \usepackage{xcolor} \usepackage{pgfplots} \usepackage{tikz} % Define bar chart colors % \definecolor{bblue}{HTML}{4F81BD} \definecolor{rred}{HTML}{C0504D} \definecolor{...
ea191b1597d0adc3449b0fc9150d92f4d9e89deda5cbc0e73ae5b00dd132d7b5
['7d1d2b07bea2470fa923053cf306ef28']
I have Maven Spring Boot Project that I configured to run on Tomcat 8.5 server. I run and develop it in Eclipse Java EE IDE. pom.xml is: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.ap...
9774062e61883a9e7ed43e6e6123041e7bc0cf0d3b6f2ac4e6498ead972edd99
['7d1d2b07bea2470fa923053cf306ef28']
I am trying to configure Tomcat7 serer.xml the <Host appBase="webapps/testweb" name="trythis.test.com" unpackWARs="true" autoDeploy="true"> <Context docBase="." path="" reloadable="false"> <Environment name="WEB_APP_PROPERTIES" type="java.lang.String" value="\\<IP_ADDRESS>\config"/> </Context> </Host>...
021b41b3930290a6edea2c69318ff1e968406603fdc109d652dc6667a756b6dc
['7d2b6b4bc0fb4f98a3365c77becd1feb']
@SpehroPefhany - the choice of stabilization caps is a compromise between instability at high currents or slow response at low currents. The translinear arrangement with a common base transistor in the feedback it adds undesired gain in the loop requiring more damping but it avoids the base current causing an error.
35f7151d6f5c3b5883b21e96357bb47472b44b6ffb2e5715c365ab5517112eb8
['7d2b6b4bc0fb4f98a3365c77becd1feb']
The shield is usually implemented as a piece of copper foil wound on top of the first winding (probably primary in this case) before the secondary is wound. The foil is insulated so that although it wraps completely round the primary it does not create a shorted turn. Its purpose is to minimize noise on the AC supply ...
e681581608d8881dbbb602c4c62d39158bd794c6c03ff8f6884aeb983165ccb8
['7d2f73dc3f7e4c9d87527bfd3a3a4ec8']
I am learning to use template functions and organize my code in multiple files. I looked at Why can templates only be implemented in the header file? where they point out I should implement my template-functions in the header; I also looked at C++ inline functions: declare as such, define as such, or both? Why? so I kn...
269563424df4c8b102bd382fb7a5abf81452355f307b0b4aefb7a4ab40bc6b70
['7d2f73dc3f7e4c9d87527bfd3a3a4ec8']
I have an activity in which after I press a Button I change the visibility of Group A from visible to gone, and the visibility of Group B from gone to visible. I would like to simulate the same default animation you get when you go from one activity to another after pressing my button (while I remain in the same activi...
fb6d378412ec637b040e45e76269b12a944c317d9821dabd9f2c11f3d50cc29c
['7d2fb4b0418345dea34d04003e36d384']
The finally block is always executed, also when some runtime exception occurs while in the try block. It is used make sure the java program (in this case specifically the locks, but it's also often used to close streams) is in a 'valid' state exiting the try - catch - finally block. In this case, as <PERSON> posted, th...
54adbf1319317fccbe3cebf9addb1d174a0924d92913ed8f9646603a03dcc8b0
['7d2fb4b0418345dea34d04003e36d384']
You need some more advanced structures to store information about your platforms. Consider having a Set of the x-coordinates of your platforms and performing the operation 'contains` for example: Set<Integer> xcoords = new HashSet<Integer>(); xcoords.add(platform2.x); xcoords.add(platform3.x); if (xcoords.contains(Guy...
b1ec9e7dd23be2671f64f69dafd21a231442fdd4d10fa840ded17ce63982bdaa
['7d3c339999044375b2ef3e9a62209977']
@waltinator don't know what you were trying to so with the swapon command. It just gave swapon help. This is the output when my computer is starting to grind to a halt, but still responds if patient. MEM TOTAL 3.8G USED 3.7 FREE 109M SHARED 55M BUFFERS 883M CACHED 1.5G SWAP TOTAL 255M USED 616K FREE 255M
6aba07ab86a5d2a13a6cda5536dc4e2ae455b8c1757a56dd1717dab1f2edb916
['7d3c339999044375b2ef3e9a62209977']
On my computer after a moment of use xwindows becomes unresponsive. Can't type anything or interact at all. I checked the processes with the ps command and it once said compiz was 79% CPU. I restarted the environment and after a short while it became unresponsive. This time compiz was only 4%. Checking the memory howev...
e4687fa52daaabd1cd13f79d8b2137708d03a0c67213377f1bbacf3c9ba73422
['7d472bc318d94be1a5b117c7a86ee3ad']
You can use product options feature of cscart. So you have to define swatch option along with price for that product. Now you just have to change layout of product detail page so whenever customer add swatch product to buy, product option will be used. In that case admin can see which products swatch option is ordered....
4f5bc4ba9c70cc1d1b3d940921bf81d5511756e0ab2a99eb80379b32a6f928db
['7d472bc318d94be1a5b117c7a86ee3ad']
You can use long polling. By Creating An Open Connection To Server. Here is a Example: (function poll(){ $.ajax({ url: "index.php?a=1", success: function(data){ //HANDLE RESPONSE AS YOU NEED; }, dataType: "json", complete: poll, timeout: 30000 }); })(); In Index.php //add this at top to create...
c92ce2de6fa0d43b53d949e50d0d205e9428817408b0e97f62acdcb5b37aa895
['7d4c10c502844a0bafdeca99f8c4b496']
You will want to loop your result set using a while loop. Example below: public static ObservableList<Customer> search_ForDropDown(String searchQuery){ MysqlDataSource dataSource = CurrentServer.getDataSource(); ObservableList<Customer> data = FXCollections.observableArrayList(); data.clear(); try...
4ad51f3a741dc7832e7a6ed79f6d2c52473b3b3b91b4dbee43d10d206a4d37e9
['7d4c10c502844a0bafdeca99f8c4b496']
You can explicitly give the entire file path, which might solve your problem. Also the OS you are using must support the operation. This might help: if (Desktop.isDesktopSupported()) { try { File myFile = new File("C:\\Users\\klinks\\Documents\\pdf.pdf"); ...
77a0a5d57bcae445c3dc14135ba79ad3cacf09fee4b56df5353f03a77f183e47
['7d59802b2f044cd49634e59558d93543']
@AlisonE.E. I *could* explain to you how to remount the system partition as read-write, but that deserves a new question, and in fact there's no need for that. And not only because it's been asked already, but really it's not necessary. I have updated my answer with the exact steps I used myself. Good luck :)
b2a81ee6890f306c399a98a2c212f5d3c96210fcea8dde479a34654caab5fa16
['7d59802b2f044cd49634e59558d93543']
The Windows DVD is only needed for one file. The "best" way to create an answer file is with the Windows System Image Manger...which is part of the Windows Automatic Installation Kit. Which is kinda big, but necessary, even if just for imagex. http://theitbros.com/sysprep-a-windows-7-machine-%E2%80%93-start-to-finish h...
3a9c1b2171505bfe98d90c930c50f5983d78066fc0ece6b62e39dd9bddba5154
['7d5b6310f44f48429357a10dce3202db']
I have installed grunt on my system using npm install, and also have installed the command-line-interface for it, but when I try to run grunt it throws the following error, Fatal error: Unable to find Gruntfile. What is missing in here? There is no documentation for the error.
7bc064dfb43711fb6fe31f4cc16105608f1cbc4e6651190bbe09a05dbea3750a
['7d5b6310f44f48429357a10dce3202db']
I have tried playing with activeTintColor, inActiveTintColor, tintColor inside the icon, tabs and also on the tab as a prop and even inside the style but the color of the active/inactive tab doesn't change. I am working with react-native-router-flux 4.0.0-beta.21 <Scene key={'tabBar'} tabs={true} tabBarStyle={A...
fa46ed1582b9a6f5b0910277a7703661a9b152c5d4b52b2c5cdda36e2f669346
['7d6a889c4594459ebd8b2eb510a07b46']
I tried on two different computers, one is my target computer which is a net book, the other is my main computer where I moved this file to a USB drive. The Internet says these are image files that do not execute the way the YouTube videos show they should work. What do I need to do differently in order to install the ...
da680ede097284425a3a263a109b57beb827b636ad0bb4dd39c31698d0e64271
['7d6a889c4594459ebd8b2eb510a07b46']
Is there a way to cast a dictionary i a one-liner and without all the overhead in C# .net 3? var result = new Dictionary<string, AccessoryVariant>(); foreach (BaseVariant variant in mVariants.Values) { result.Add(variant.Id, (AccessoryVariant)variant); } return result; I would like to do something like this: retur...
6def601ce2235af24883d29084f349b6f4f2718afee07eb09004a2696206a584
['7d72496bd0a74bd6b63d8e42cf6cf1cb']
This is somewhere inbetween nostalgia and an answer. If you look at many papers and pre-prints from the University of Chicago into the late 70's, they usually thank <PERSON> for typing the manuscript. There was a very expensive special purpose IBM machine for mathematical typing in the department. It was <PERSON>'s ...
999a360bf15526f1b0c1d46e7978d2544cfa1f99a7474d445ff5c18b49ce6cdb
['7d72496bd0a74bd6b63d8e42cf6cf1cb']
Look at the ForeignKey docs. It says: When an object referenced by a ForeignKey is deleted, Django by default emulates the behavior of the SQL constraint ON DELETE CASCADE and also deletes the object containing the ForeignKey. This behavior can be overridden by specifying the on_delete argument. So the default behav...
372e02e01b34faa1f496f9cbff7e0b937d98c31dafb10f2c99040c0488af151d
['7d7538cfb9234e7a9ee9d9e633bd97a1']
I have a web address www.abc.com/check ... I have created a web service on this address for receiving data. Through an android app i send some data to this address using following code: public class TestappActivity extends Activity { EditText ch; Button btn; InputStream is; /** Called when the activity ...
dc165d85d3bfba830dd6b8ccd9bf114153e3ee05601dd033d60b475612e2a2df
['7d7538cfb9234e7a9ee9d9e633bd97a1']
We have been building an internal project management tool. My lead asked me to define the services for the project. The main entities we will be using in the project are: Projects Releases Milestones Resources What i am unable to get is what exactly is a service? Service refers to Web services? Rest services? The fun...
64e2ab49aeb8e981905720983a265ba9fd5b3690489c3b66a33800ef92ff7b42
['7d7852342d154a708f4ff0dd5fa0eadd']
I have a MongoDB collection with 17M records. It has many queries with sorting and other filters with operators like >, <, NOT, IN (basically other than equality operators). As mongo suggests that index with sorting should follow a specific order( Equality, Sorting, Range), I think I might end up with many indexes that...
62e35479d047264e54eeac3fc6030a36ff933085c3f453a123e090270da76c7b
['7d7852342d154a708f4ff0dd5fa0eadd']
Try this @CacheConfig(cacheNames = "com.abc.domain.State") public interface StateRepository extends CrudRepository<State, Integer>, QueryDslPredicateExecutor<State> { @QueryHints(value = { @QueryHint(name = "org.hibernate.cacheable", value = "true"), @QueryHint(name = "org.hibernate.cacheM...
7ef4b7ae82b0b8f9d0219ee796557ff6167e2d493e3afbe035fa73e922bf9918
['7d8ab19005434452a0a677503d1d476c']
Suppose we have a simple print statement within a for loop such as for (var i = 0; i < 2; i++){ setTimeout(() => console.log(i)); } Two questions. setTimeout is a browser API method, but how does it access i? i is declared inside the for loop, and I am accessing i inside the method setTimeout even though i is not ...
73844dcc0fae3d2bdfe97d16991be82d3e87302c75c617de3a7599deebefee33
['7d8ab19005434452a0a677503d1d476c']
I have been trying to understand closures but every single example I have seen and read all contain the same examples of functions inside functions, but all of the closure problems I face contain functions inside loops. for (var i = 0; i < 2; i++){ setTimeout(() => console.log(i)); } Take the above code as an exa...
4a9fe4e537c922df5851ad8c72f637e3db8ef3506db3682d2f33ae3fbe1a0745
['7dae817e85784f1cb028d17767daa915']
Hi I want to Change live video frame in shape before while loop my webcam default resolution 640x480. When i run it say "(480, 640, 3)" it still default resolution ...... <PERSON>, frame1 = cap.read() cropped1 = frame1[0:240, 0:320] ret, cropped1 = cap.read() ret, frame2 = cap.read() print(cropped1.shape) while cap.is...
502696d67d532b5e621263aebccc876e951ec6ff37d7c676e9ea13db6faca21f
['7dae817e85784f1cb028d17767daa915']
Finally i did it!!! ... <PERSON>, frame1 = cap.read() <PERSON>, frame2 = cap.read() print(frame1.shape) while cap.isOpened(): diff = cv2.absdiff(frame1, frame2) # 640x480 frame diff2 = diff[0:240, 0:320] # Top Left diff3 = diff[0:240, 320:640] # Top Right diff4 = diff[240:640, 0:320] ...
6b67edd85257e359f84a274641d49adc804d97a31b503bb09291a7427092e309
['7dcca56086b44789bfcc37e3fadcdb55']
The easiest way to accomplish this is to use the guest network. The guest network can be configured to start and stop service at a particular time of day. The kids' devices are now connected to the guest network, which stops providing service at 21:00. The rest of the household devices are connected to the main network...
a4d3fdfa330496f39f2d6733afadea90e917b98e71b5fc6de64bba25424b212d
['7dcca56086b44789bfcc37e3fadcdb55']
I have an Ubuntu (14.04) machine with two Ethernet cards. One Ethernet card (eth0) is connected to the office network. The machine is addressable from the outside Internet. I have a Web camera that runs its own little Web server. The camera has an Ethernet NIC in it. I want to connect the camera to the Ubuntu machine'...
58bfedc5ce5cbb1dc125f2cd5b07bbdec3e31e481be1add46b62d1550c5eaab4
['7dd4b468201e4eb8aaf486915a6f1c2b']
I make a VB.Net Web Service. And that will be called by Android Emulator from IIS 7.0. Simple method which return sum of 2 digit works fine but when i try to insert record in the database MY SQL SERVER at that time it will generate java.net.ServerTimeoutException. But When I try to run it from Browser at that time it w...
fef30ff0911b8d42585d329f6ea5032d5faee2913947facf8bfe848549332e14
['7dd4b468201e4eb8aaf486915a6f1c2b']
I got the solution. Please take care that your computer Firewall is off when you use IIS as virtual server on your local pc. If you turn off your firewall protection then it will be allowed you to access the web methods but if firewall is on then you get java.net.SocketTimeOutException
046a49e534ff2ba66f8f7f06518e6981f5995e796ec6f7f4b8268e4014c31f83
['7dd8012aa011417381d68aa99bcc0150']
I have this program that runs a DES encryption for the full 16 rounds, but I only need it to run 1 complete round. My problem is that I can't seem to figure out where to cut my coding to make it stop running the full 16 rounds. Thank you for your help! import javax.crypto.*; import java.security.*; import java.util.Sc...
f2668a0848f073d8df3610ef0221dc55a1126a5047c25fa705da1f9bbfcc8f14
['7dd8012aa011417381d68aa99bcc0150']
I have a dictionary and I am trying to get a code to print using a function. I am having trouble getting my function to work and not understanding why it isn't printing the student from my dictionary. def getstudent(key): students = {'23A' :['<PERSON>', '<PERSON>', 95.6], '65B' :['<PERSON>', '<PERS...
2dd3f40c5def62d5cf7b930cb4cdd1d4affbb97a1250d1d30951e2d7f5536a8c
['7ddb3971ea554471a958ccd871b799e1']
OpenLayers current version has a bit of inconsistency in their filter api. Some filters get the feature itself and some get the attributes of the feature. This breaks down because OpenLayers.Filter.FeatureID is the most filter that requires the feature and most of the API including OpenLayers.Filter.Comparison are pa...
f0a4214d5ea80c98f46f550952b204104003dc69533b717bc8bef8b32b5f5b8e
['7ddb3971ea554471a958ccd871b799e1']
Relax. There is nothing inherently insecure about passing the ID to the browser and POSTing it or putting it on the query string. The ID is not itself sensitive. Just like <PERSON> said above, a <input type="hidden" name="id" value="123" /> is a common way to pass the ID around. The element of safety comes in the ...
0bd41dbcacb2605724641d8ba5307afb16f9110d81ee0a7e638162ac7c068bd9
['7ddbdfa367684d6c8bf9419e69880b8f']
I was developing a project with Hibernate and when I changed the server tomcat to Jboss(WildFly) I had some problems in my project because of Maven configuration(Pom.xml). The WildFly alredy had the jars that my project needed and it made a conflict. I changed the compile to provided, so it was solved: <dependency>...
d66ba78091d52833cc674acf7efd99b9e8376fd5d4cdd1a5acba81fb7f2a2fa8
['7ddbdfa367684d6c8bf9419e69880b8f']
I'm using: wildfly-10.0.0.Final(JBoss Application Server). That works to me: Properties jndiProperties = new Properties(); jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.cli...
79c895045cf3f371dd629275c4560d6969a4241fe5ed4d4f7752fec2a61c7b4c
['7ddf849df58a44a981c6018f1d378222']
I am trying to implement an authenticate mechanism with a jersey 2.13 client. But I'm not able to get the responded cookie with a session-id set to the client and that subsequent client requests automatically request including the session cookie. My idea was to solve this with ClientResponseFilter and ClientRequestFilt...
e26f7755c230141ad35a5aa32c2933edd337ee67a93a2e1b57600f0e3fce3ce0
['7ddf849df58a44a981c6018f1d378222']
To set a css class to the panels body you can do it like this: Panel.body.addCls("logo"); And the css needs to look something like this: .logo { background-image: url(logo.png); background-position: top right, top left; background-repeat: no-repeat; } This will display the logos in the top right and top...
9fc3f62cecdab2997a8fb83cd5343e1c401b452f9a69a4c7db06b14195c240ef
['7de21c7893294f7ebd76c9b3fee07b8c']
I have a project which looks like this: docs rnsrc src Inside docs are word docs, pptx, etc. Inside rnsrc is a React Native project and inside src is a client for it (Python.) I would like to have this full directory under Git version control, which I can achieve, but React Native supplies a .gitignore with projects a...
d0d94955527845f4ad4be1c86197fc8a43e4caa6c1a34c27c5e0bff3ef4247a9
['7de21c7893294f7ebd76c9b3fee07b8c']
I'm fairly recent to Swift and would like to take advantage of the Decodable functionalities, was hoping for some help. A public API I am consuming emits the data I want under the key: 'c' but there is some metadata surrounding it. For example: { a: 1, b: 2, c: [{ d: 3, e: 4 }, { d: 5, ...
c78cab857c32bf0f3fb8d3cfb20a120465b8d0295f3be9635d7aab4137f2e544
['7dec41a9197d4d6ab5c804feb38b85f5']
Hi <PERSON>, thanks for the quick response to my inquiry. I haven't heard of Adobe Lightroom, but will definitely check it out. Regarding my current cropping issue, all my images have white background. What I did with all the square images was set the IMAGE WIDTH to 750... so now all images are 750x750 and ALL subje...
824c3e540b0e3ea1b1eeda52fafdd425f955c892c67407013fadd16710664e7a
['7dec41a9197d4d6ab5c804feb38b85f5']
I am going to install Gentoo Linux, and I see three options on their website: Minimal Installation CD, 2019-05-26, 286 MiB Hybrid ISO (LiveDVD), 2016-07-04, 2 GiB Stage 3, 2019-05-26, 260 MiB From their website: The Gentoo minimal installation CD is a bootable image which contains a self-sustained Gentoo environment...
14259591abd2ee3063a2f108237629ad7b954932e8922151d310a835da090dd8
['7e09eb8a88ce439fa8c59899122a88f7']
going further: 14.4V / 330 Ohm = 4.7mA| finally 9.6 + 9.6 + 4.7 = 24mA for 3 LEDs| or just 240mA for 30LEDs/m and 480mA for 60LEDs/m| 3.5W/m and 7W/m respectively| 140W for all my system| I think, that bottleneck is my LED controller - I figured that it's the only 3x4A but not more than 100W output, specified in manua...
4bdcdce61311a2dd4efa91a681af8709f0b112264c78c17c42b7635f60cb5833
['7e09eb8a88ce439fa8c59899122a88f7']
Let's say that you use log4j in a program where fds 0, 1, and 2 are either closed (which would cause write(2) to fail with EBADF) or redirected to /dev/null. Then log4j tries to output a log message. What would happen in this situation? You'd have a silent failure, which is something you'd want to avoid having happen i...
9ae3b50936847bff9a6ecf40c49ca647e8575892d367471f208432d836491967
['7e0cd98caab448708ba5bebcd0d303ac']
When I run your second example: (test1, test2, test3="3", test4="4", test5 = "5", test6 = "6") I get a different result from what you report: test1=="3", test2=="4", test3=="5", test4=="4", test5=="5", test6=="6" (note that test4 is "4", not "6") Which makes sense to me, because it parses like this: ((test1, test2, t...
22de78388ab47bfeb8e64f019855fce620d7d9778603e616e6d308c90487e0fc
['7e0cd98caab448708ba5bebcd0d303ac']
If I am not wrong your system has three operating system one is windows 7 and other is two different version of Ubuntu.I think your boot loader may not be installed in the same drive where your Ubuntu is installed, if it is not then do the following steps. 1.Use the live CD to check which partitions exists on your hd....
86fb31ada15ed01ad80f806f4dec08d6e888062ae8ce313d835ba100b1857559
['7e16e8c220ea40549e8aaee0bd0a8e26']
Basically, I have springboot application serving my index.html and other static JS files which includes(runtime, vendor, main) chunks created during the production build by Webpack. How do I set cache-control settings for index.html and chunks separately so that index.html won't be cached and chunks will be cached on t...
44842867f7e4fa1e0b12d3a2c5f4f301bb5d87158762a2df52bb0cd3b524eb58
['7e16e8c220ea40549e8aaee0bd0a8e26']
I am building a small game in HTML canvas in React. For that, I need to pre-load all the images before I start interacting with the canvas API. I am loading all of the images using Promise.all like follows: import tile from '../assets/images/tile.png'; componentDidMount() { this.load(); } loadImages(images) { ret...
6b9376b510e92ed383d843640c66b5f3b85cd2f51d8cff9e318a9fce56d15793
['7e181a222754499e9c475264fa2b2758']
First thing is you don't need to call form.getFieldValue('phone'); in the validator function. Second is the validator accepts 3 parameters where callback is a must. But in your scenario you need to use the value as well so you can do something like validateMobileNumber = (rule, value, callback) => { // const{ form } ...
7940adbdb1adde5d94620ad11a4cffe39010c2e669c7c8888c3be298a1fc2a0f
['7e181a222754499e9c475264fa2b2758']
Well, I don't know why you have this sort of scenario but the first things that comes in my mind is that you can write handleSaveClick method in your Parent component. And in case you need to use that function on any action that might be happening in your child component, you can pass this function as a prop from paren...
d6f0f4801f47e847e9635b21049a28a47026b742aad8b7e1fdf3187d79182969
['7e21b63043754fb8a8c2c185cf2e4341']
I build a multi-tenant app in laravel, That works properly in local but it does not work on production/staging. Whenever I try to login, it shows an error that : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tenancy.users' doesn't exist. I have already run migrations and also try php artisan config:ca. Pa...
4377f77b1fa7aeaefa474f428cda966de667407d033fef23472ce8f3ed6bfd37
['7e21b63043754fb8a8c2c185cf2e4341']
You can also use Right and Position property of css. div.b { height: 0%; border-bottom: 20px solid #c00; width: 830px; right: 30px; position: absolute; -webkit-animation: increase 3s; -moz-animation: increase 3s; -o-animation: increase 3s; animation: increase 3s; animation-fill-mode: for...
93e51f6dea552b13a3b43f3562a929515d2e509f028c5c5a0a6a1b4aa287da58
['7e432851c6564984bb56e314570c89f0']
i'm noob using the youtubeapi for android, i've setup and i've launched the demo app with success, but seeing the demo examples it seems that when you select a play list, the app launch an Intent that goest outside the app, using the network explorer. I'd like to load a play list inside my app, is it possible? Thanks i...
d4a1a5cefeae279d719c15e45b8364d05722b45a3ef9bf4b6b2d8549525bcb98
['7e432851c6564984bb56e314570c89f0']
i'm drawing a list with the RecyclerView component succesfully, but when i have a lot of items, if i scroll down very fast, sometimes one item gets overlapped over the RecyclerView. if i scroll at a "normal" velocity, never happens this bad performance, only when i scroll down fast in the first load of the RecyclerView...
12202b2de2e8f77db419e158c9051b9625e24b1d7c361ab553d17b158f3ce4f8
['7e51a7e09b2a4a8f881301a1395d686d']
My opinion: Model: Store data of the path in the Model class, like array of points. Utility/Helper: Create some painting methods in a utility class, like PaintHelper. Input is the data of the path. So you can use it in other projects. Controller: call to get data from model, then call painting methods. Then get final ...
40e92c07273e6d9bba02958bbb4f8ddd35b8e9a86f7d5309f63d9733e0e43e34
['7e51a7e09b2a4a8f881301a1395d686d']
You can create a UIView for background of indicator: func showActivityIndicatory(uiView: UIView) { var container: UIView = UIView() container.frame = uiView.frame container.center = uiView.center container.backgroundColor = UIColorFromHex(0xffffff, alpha: 0.3) var loadingView: UIView = UIView() ...
82357ec20d6260875df06ed0c01be86ee14207918298c30a14ec2319b9b0b371
['7e5463fb63fb472fb01b12f2648619f1']
i want to debug an php generated image algorithm with print. The problem is that it doesn't output the text i put in print. How can i output variables, so that i can debug? Thanks, <PERSON> public function drawPicture() { $im = imagecolorallocate ($this->picture, 255, 0, 255); imagettftext($this->p...
34994878cbd5740252e723149bf3304e4c821acbe83b2b5ded7a2a1c97dc94eb
['7e5463fb63fb472fb01b12f2648619f1']
I'm writing an Ant-Simulation. The Kernel Performance is very bad. In comparsion to standard c++ solution it has a big performance disadvantage. I dont understand why. The operations in the kernel are mostly without control structures (like if/else). Kernels: https://github.com/Furtano/BA-Code-fuer-Mac/blob/master/BA/A...
9a6c4d0e762ac60afc7c5edf3a23673145b7996fb354daa93949f5c17ad85182
['7e6d42ff60754d0b97eb6fbbc6be0b5a']
Bosun fails to send alert notification to mail configured with the below log. error: notify.go:111: failed to send alert high.cpu{host=} to [*@gmail.com] EOF This is my bosun.conf tsdbHost = localhost:4242 stateFile = /data/bosun.state ledisBindAddr = 0.0.0.0:9565 smtpHost = smtp.gmail.com:465 emailFrom = <EMAIL_ADDRES...
a58a92a5846e8198d4c177b865b9f8ea270fc84ba40c8dc726d23eca21f96403
['7e6d42ff60754d0b97eb6fbbc6be0b5a']
Why is it giving 400 bad request for the following code. We want to schedule a torrent using web API of utorrent. import urllib2, base64 username = "username" password = "password" request = urllib2.Request("http://<my_ip>:<torrent_webapi_port>/gui/?action=add-url&s=%s" % urllib2.quote("http://torcache.net/torrent/CD...
d76723dc6c39fb83118a8d2f5488de2fb0d5724024c3cdb5cab964cd3ff76c41
['7e75662448fb4e469a38fa02fd3a665d']
I am using mstsc RDP API for remote connection.I have seen in MSDN there is an api for device redirection from mstsc activex. As per MSDN IMsRdpDeviceV2 is an enhancement of the IMsRdpDevice interface. https://learn.microsoft.com/en-us/windows/desktop/termserv/imsrdpdevicev2 Checked dll version - 10.0.17134 - 10.0.16...
55c297eb0ceac97b6d305c83244e59076f93d6bda112039e06f1b232f8002f27
['7e75662448fb4e469a38fa02fd3a665d']
How can i integrate userid and password in NSIS script which will enable to runas admin mode? I have a simple NSIS Script which copy my application file to program files. This script works in admin mode. i have to install this on several machine with admin(Administrator) and password(CorpPass@2424) without giving UAC D...
87df26617cfda946f893258b81cc354d3d22435a32c0c18dc077126b5073ad9e
['7e7646bdad6e4169998a5f3d5d167e95']
Вроде как решил вопрос) ymaps.ready(init); function init() { // Стоимость за километр. var DELIVERY_TARIFF = 1.25, // Минимальная стоимость. MINIMUM_COST = 1, myMap = new ymaps.Map('map', { center: [36.838093, -100.496856 ], zoom: 5, controls...
7a2de3369199b90e5833777a7a9f35dab71912e05e3dbbfa64c99c03cbedac6e
['7e7646bdad6e4169998a5f3d5d167e95']
Rooted my Tecno Spark K7 Android 7.0 Nougat (Stock ROM + Magisk + TWRP). Trying to reinstall my apps from backup apks but I'm getting this message App not installed. This app isn't compatible with your phone. Doesn't really make sense to me, since I'm using the same apks that were installed on the same phone with the s...
cdc15f3a6dc22d22ce64060472852d8c1c89a49e141ade3e8b6d1a6c92ca75e2
['7e8a7e7825d94c13b97d8fade7e735e9']
@Crissov The `(?!…)` expressions only save a few bytes each. I reduced a lot of bytes by combining three of the positive/negative week-of-year/day-of-week year patterns into one each. The last ones don't correspond to each other. So I got 8 long sub-patterns down to 5. Also, since `|20|25|` is the same length as `|2[05...
f04b7b50e9cd72ad6b214abe90422866d89844a0c80a17d343e5c464d6ae7d37
['7e8a7e7825d94c13b97d8fade7e735e9']
At least in the UK, it depends greatly on the business which site is defacto. I have engineer friends on LinkedIn. I also have friends who are artists, fencing instructors, have businesses making clothing or are magicians or musicians and they all have business facebook pages in addition to their personal facebook page...
8392b113ac8454c8429a4cdb13dea01d00bfa0a45ee430c67992241cb42c59de
['7e90f89f441b4972800798ed1d02033d']
It sounds like you need to set up your HABTM relationship properly. You already have the join table, UsersExtended, which contains your foreign keys. Remove all previous relationships and set up HABTM in each of your User and UserExtendedField models. The relationship code in your User model would look like this: var $...
de72eeb142ccf94141eb4d61040ef7fb169235d7fdc32c5318ae9ad8867581c3
['7e90f89f441b4972800798ed1d02033d']
Based on your description, I would recommend doing it this way: Have a users table with a field for "group_id". This allows you to have multiple users with login privileges that all can view the same options or colors based on their grouping. In the case of a general (non-logged in) user, the assign the group_id to def...
a4996f929e9e8a41155f178e0d53734b3929177f9c162c4c4e5d77100baeb8de
['7e9260d5816e4ac39fb681bc1f8ff977']
I recently posted an answer on the Hello, World question and after posting, discovered this answer claiming to do it in 18 bytes in brainfuck. I read through it and thought that it was completely wrong and so notified the OP in the comments. We then had a bit of an argument about whether this is a valid answer but we ...
5b1cbe08c852cd19f4c978440f1d4c40a79c87ac26398d2cbfcc847a447ba71b
['7e9260d5816e4ac39fb681bc1f8ff977']
Not quire sure why this has been VTCed. As far as I can tell, this is a very clear challenge, with a couple of clarifications which have been made. Would the close voter mind clarifying their reasoning for the rest of us, so we can understand *why* you've voted?
ccdfc76a3698f905e1927e2621f0a95f2c51eb0f22ac15ac9e2bd9041ce4386f
['7e996c91b21648b991b0c480c9e0609a']
I am trying to run cucumber+testNG+selenium through Maven . My Runner File looks like this //@RunWith(Cucumber.class) @CucumberOptions( format={"pretty", "json:target/report.json"}, features = {"classpath:cucumber/sample.feature"}, glue = "com.stepDefinitions", tags="@test" ...
ffd3d03e54640b5b6d4b00bc07904d83af23084190f5e31d4fc7768a7a7bee07
['7e996c91b21648b991b0c480c9e0609a']
I am new to docker , we are trying to create docker image for my project which we used run in simple Maven commands mvn verify a quick google search gives me - Dockerfile FROM maven:3.6.0-jdk-8 COPY src C:/docker/ COPY pom.xml C:/docker/ COPY testng.xml C:/docker/ RUN mvn -f C:\docker clean verify my under...
d821f41fee67ec131a335a3d5e8571936392e8dcc89cf44422a8417ea3a448ac
['7e9976b148aa43baa75e1c7a18d01f60']
I'm working on a site which i'm developing using an MVC structure. My models will represent all of data in the site, but i'm struggling a bit to decide on a good controller structure. The site will allow users to login/register and see personal data on a number of pages, but also still have access to public pages, e.g ...
be34c77d5b0c6692f4abc3db464c3c96ed39f428511d559912ec73bb0867b418
['7e9976b148aa43baa75e1c7a18d01f60']
У меня есть скрипт, в который я вставил фрагмент с кодом, который использует функцию header('Content-type: image/jpeg'); что значит на странице есть рисунок. Но она мне сбивает весь остальной код. Как мне локализовать её только для части кода? или может есть возможность использовать второй раз header, что бы перекоди...
f877ce2a126e7e34e1b03ede249bce1b4f9d4f88c78912b1c5c9b1418d05a556
['7ea74496a2364549a89b04210f2236ce']
App uses the JSON API plugin with the Glide library for images. For example, a high quality picture like this: http://previews.123rf.com/images/wavebreakmediamicro/wavebreakmediamicro1403/wavebreakmediamicro140342957/28409409-Group-of-people-running-together-for-fitness-in-the-park-Stock-Photo.jpg comes out very blurr...
2efda2bca61fe895bf406c81a4b6901f59ac2ced7c431805b9c99323528094ac
['7ea74496a2364549a89b04210f2236ce']
Unfortunately, "tools:replace" didn't work for me, but a GitHub issue in the Firebase UI has a solution https://github.com/firebase/FirebaseUI-Android/issues/230 But FirebaseUI already depends on version 4.11.0 of the SDK. Can you try removing your Facebook dependency and just relying on the transitive dependency bro...
2b98d1b21d9ae3e096ba055d811f641fea0988d22fa1e36550edc15a03323b42
['7eb306e6a7c849bba520205651541813']
I want to delete multiple rows or all rows in Database using DataGridView. For example. If I have 10 rows in the DataGridView, then all the 10 rows should be selected and deleted. Here is my code for deleting single row in database using DataGridView. private void btnDeleteProduct_Click(object sender, EventArgs e) ...
9140ca2356cf3d7b901407fc0f379f6cb51798447206c1fe695ac011f0401b24
['7eb306e6a7c849bba520205651541813']
You can try something like this: public void Color() { foreach (DataGridViewRow row in ProductServicesDataGrid.Rows) if (Convert.ToInt32(row.Cells[5].Value) > Convert.ToInt32(row.Cells[6].Value)) { row.DefaultCellStyle.ForeColor = Color.DarkGreen; } ...
8a69032a9d4aa692ab2c763d4f48a6d6056d3aefad8549bf91c19202fbeae85b
['7ec17872a0904de7bd2b1f91c9aef176']
Are you sure it never moves to the next step? Maybe it does, but, for instance, in 5 minutes? I'm asking that because Step Functions has the limitation: even if your Glue job executes in a few seconds, Step Functions polls the results from Glue job once every 5 minutes actually. A kind of workaround you could implement...
b252afe5ed7d34e6d38e2944a0f93302c53d8b61d768ae1b5f30576af5ce8869
['7ec17872a0904de7bd2b1f91c9aef176']
I don't know exactly what it is needed for, but my Glue connection to RDS started working only when I had created S3 endpoint. VPC → Endpoints Create S3 endpoint Service category: AWS services Service name: com.amazonaws.eu-central-1.s3 VPC: choose one that your RDS is associated with Route tables: choose one that c...
8d2da6411b75eb99e3ad68db86f2351d9b2d2972ff47819ce3d0e9e5a26b8998
['7ed7611b1e3f4ddc9b979ea61dfbc09e']
It's not possible. Basically each @Test runs only once. If you need to do something after each test class you have to use @AfterClass annotation on method in your MainTest. You can do some hacks with method order etc. in MethodInterceptor (http://testng.org/doc/documentation-main.html#methodinterceptors) but it's not g...
6b7e1c0a9452626b940bf47006ca88312ebd0f5cdd9201284933f7ffcfc4bae1
['7ed7611b1e3f4ddc9b979ea61dfbc09e']
you can use project properties to add/change/... different suites. In you example you are probably running gradlew test which run both suites. If you modify test task in your build.gradle def suite1 = project.hasProperty("suite1") def suite2 = project.hasProperty("suite2") test { useTestNG() { dependsOn ...
2b0fea0ed618ed09b96badeedb857b0a1f882a4818b004a10bfef4a71353e9b5
['7eee958159654b0b88e2c97882a9f85f']
I'm confused about how to do big-O analysis for the following problem - find an element from an array of integers. ( an example problem) my solution sort the array using bubble sort ( n^2 ) binary search on the array for a given element (logn) now the big-O for this is n^2 or n^2 + logn ? Should we only consider the ...
e176379f88de223fc46c81ff87ef8de140f74d4cb4140555638734e3b083d718
['7eee958159654b0b88e2c97882a9f85f']
I have an powershell session created by New-PSSession -ComputerName localhost I'm able to access the above session by PS C:\> Get-PSSession Id Name ComputerName State ConfigurationName Availability -- ---- ------------ ----- ----------------- ------------ 1 Session1 ...
f566ea36ff817cc0650a9ca9b5779b56bf6db1be90a51f43a328387be398b31b
['7ef2fbd67a6e43dc98a638f6bb7ee587']
i have 2 sonos speaker. I have done an application on dialogflow where i can say "play muse" to listen my mp3 on them. The sentence is send to a php webserver (with a webhook) and the sound is send to the sonos with the api. But, the only solution i have found to identify the source, is to add: "play muse on the kitche...
266e81e8f0b983ce7080f4761de243501af2598f4b50fe74e123a16f1dcc6171
['7ef2fbd67a6e43dc98a638f6bb7ee587']
i have a site with url like ref.php?id=2 already indexed by Google. I know how add keywords in my url with these rule: RewriteCond %{QUERY_STRING} ^id=2$ RewriteRule ^ref.php$ http://www.website.fr/boat? [R=301,L] But, i don't know how redirect the old url to the new. If i do this RewriteRule ^boat$ /ref.php?id=2 [L] ...
62967a30a369a2cbc04cb0f85cba963c7d451de4d04ab9eaad6e76a9172ebad8
['7ef4bf2fae5a4ec6934261034d7d2927']
I have two d3 charts in separate divs on a single page. After clicking on bar, the line chart should update accordingly for e.g. the click action on specific bar, should add an appropriate line to a line chart in another div. I am able to create a click action on bar. How can I use this action from bar chart to update ...
b0bf3b3dfc8579a2cd5d3de88e2b8c08f71e1bcae25ef1699403a37222e4a34b
['7ef4bf2fae5a4ec6934261034d7d2927']
I am trying create a bar chart for top 10 among n number of entities. What I am trying to achieve is to give unique color to each bar. I am able to get the expected results when number of entities is 10 or less. This is what I am getting. I want to use colors from d3.schemeCategory10 only. Here is my plunker code. ...
75f36dd0c4e769562102b96905b5af36b545e28e8cb56d945b4840ff193911e6
['7ef6d8b3961c43cc969cb31db0cdbaaf']
I am working in TabPy inside Tableau and want to perform normal statistical calculations. I am stuck with Cp calculation. Here is the code that I wrote - SCRIPT_REAL(" import pandas as pd import numpy as np from scipy import stats # Calculate Cp def Cp(list,_arg2,_arg3): arr = np.array(list) arr = arr.r...
4fc7103eab2c67f0c3d99daeb7bb7c4153065b4955c052cda897140edf547d2e
['7ef6d8b3961c43cc969cb31db0cdbaaf']
Here is the code that I have written - <!DOCTYPE html> <meta charset="utf-8"> <html> <style> div.bar{ display: inline-block; width: 20px; height: 75px; background-color: blue; margin-right: 5px; } </style> <head> <title> Simplebar - Out Dataset </title> <script ...
be58d6bf37f5f49ca2f81d3ee5bc4ffe6ced93a45c568bee7167a41bafa81f06
['7f0d93134d6c407aa0a2a7969cc183ef']
amixer worked for me but I didn't get the nice animation that I get when I press the volume up button on my keyboard. I decided to use xte to directly press that key from the command line: Volume up: xte 'key 0x1008ff13' Volume down: xte 'key 0x1008ff11' Mute: xte 'key 0x1008ff12' I figured out the keysym (that hex num...
1db7e8c86819a33d910cae89151e31a97610207a487bb52de65434cc80265cda
['7f0d93134d6c407aa0a2a7969cc183ef']
I have some problems on sticky sessions with HAproxy. Haproxy counts every request as a new session. I have a Java servlet that creates the cookie JSESSIONID. If I refresh that page 5 times. The servlet count it as 1 session and 5 request from that sessionid. But the HAproxy stats page shows it as 5 different sessions...
d534a249d55a50dc437d6bb75740b4e0523762b943cbdece6f937a43eef69cb6
['7f2b319932e3435ba4c05849fa08b38c']
I have the following code in the setup procedure in netlogo set-default-shape Mappers "target" create-mappers MappersCounterSlider [ set color red set size 1.5 ;; easier to see set label-color blue - 2 set xcor 10 set ycor random 11 ] I need to change the random 11 to a specific value for...
200fe2f44b81b5b8b542e4b0d68e6300c6dd66ee0413a2f1ce1eacd69e49959b
['7f2b319932e3435ba4c05849fa08b38c']
I'm trying to restore a BAK file automatically from a C# application this is my code ServerConnection conn = new ServerConnection(); conn.ConnectionString = ConnString; Server myServer = new Server(conn); myServer.ConnectionContext.StatementTimeout = 0; return...
125b25b970fac1b12d17a1faad1e243a5add1276c776e72bca117754dfdc0180
['7f2e6477f76e4e2589923c0d3bbc9db2']
There are a bunch of OpenID Connect providers you can use to test your client: you can sign up for a free Auth0 or Okta developer sandbox, download and run IdentityServer locally, or try the OAuth2 Playground. As for writing the client. Please don't write your own. There are a list of libraries from the OpenId Foundati...
d82c780f3171d53223bb6e12735eee235939b15ea99f2a4d12efb3202b4a0703
['7f2e6477f76e4e2589923c0d3bbc9db2']
You can do everything you need by: Building an AMI. I would build an AMI with all of the packages pre-installed. You can even do this by creating an EC2 instance by hand, then creating an AMI from it. Using CloudFormation EC2 helper scripts. I would use EC2 init scripts to run all of the per instance scripting on an i...
9ca1ac86e352b0bea8e612d7c18e376dc7adf02eb3dd5bd9adffcda5ca46df3e
['7f35ff4749334b7785130c2468e67450']
One can use qPython to load the data to the Python process and then KFold from sklearn to repeatedly split the data set into training and test part. Suppose we have the following table defined on the KDB+ side: t:([] time:.z.t+til 30;ask:100.0+30?1.0;bid:98+30?1.0) Then on the Python side you can do the following to p...
c47584a61a145658814c016cc246ee5ff4c44c7dd43f9b2c73915c2ea2e66577
['7f35ff4749334b7785130c2468e67450']
To save a dataframe in KDB+ with qPython one can use the sync method of the QConnection class. Set the first parameter to a string defining a q function that assigns its parameter to a global variable and send the dataframe as the second parameter. Something like this: from qpython import qconnection import pandas as p...
0e6999439537c34a9db4104f85f73f2cee1873296b5300f9cd8e022bce05ed78
['7f374e92576d4622a78683ec6e59f5eb']
I have changed my code and written this. It is now reading document.getElementById('foo'). I want to move my div element every 20msec for that I have used setTimeout() but it doesn't do anything. <body> <div id="foo" style="width:10px;">a</div> <script language="javascript"> function doMove() { var foo=document.getElem...
1106a9137a792c3fcd2d851f797d6837399cb88e8768f703a457f200770b3c66
['7f374e92576d4622a78683ec6e59f5eb']
You can try this: step 1: Keep the three pop ups with different ids in your html with style = "display:none;position:absolute;top:50%;left:50%;". and a classname popup. e.g. <div class="popup" id="1" style = "display:none;position:absolute;top:50%;left:50%;"></div> step 2: Give classname (respective ids of hidden div...
459120aadf993267957bf9e7ae40f8341525ad4c250c96cd12119dfb14fcabdb
['7f39d79540054c8dabcef97a9ac65796']
So after lots of investigation I finally figured out what the problem was. It was all down to redirecting from http to https. From articles I found on the web (can't remember the urls anymore), is that the libraries that the wsdl2java and wsimport stub generators use to do the webservice communication don't allow a htt...
d4510fab9817e4d3526ce1832bd5fb0d7045c10dd4a22207b42866ad65e9b940
['7f39d79540054c8dabcef97a9ac65796']
I found that the solution was to force the sure-fire plugin to use JUnit. I did this by overriding surefire plugin in the specific project as follows. The dependency forces surefire to use JUnit. <build> <plugins> <!-- force sure fire to use junit instead of testng --> <plugin> <groupId>...
b05eac852737ea1199555089f3f5416d2c70815863df136a29d559cb222eb12b
['7f3f38f776b742e7897cd7dc4637fb93']
I'am trying to send two select paramaters to a function from outside. What i am trying to achieve is simplified at below I have a model like this, public class Entity { public int Id { get; set; } public string Name { get; set; } public string Surname { get; set; } } SampleData: 3 / <PERSON> / <PERSON> 4 /...
1181ba802f14ad7709c41bae47dfa8c762724bddbc2184384fbb4fbc61095617
['7f3f38f776b742e7897cd7dc4637fb93']
I am trying to increase maxReceivedMessageSize for my wcf odata service. I have an another web service which is posting values to my wcf service to insert values to sql. I am posting { A:1, B:1, C:3, D:4, } this raised an error. The remote server returned an error: (400) Bad Request. If i post the value below, it ins...
09702abe70bab752271dd99960ccdeb4e47cb5197f1a3d4e6463e0d7ca192136
['7f412f718f9b43f1aaa7542c9027b5b6']
So I came across this bizarre behavior — when I try to setState using objects, it only fails in SOME cases. For example this works, getUserClaimAmount().then( userClaimAmount => { this.setState({ userClaimAmount: userClaimAmount.toString()}) } ); But the following does not. It will throw an er...
cab23aed700451c61563c5856b05707575e2b69fe7bb7c21568125a23f4158d2
['7f412f718f9b43f1aaa7542c9027b5b6']
I have the following two endpoints on my express server: api.get( "/register", asyncMiddleware( async (req, res) => { res.cookie("TEST", "value", {}); res.sendStatus(200); }) ); api.get( "/home", asyncMiddleware( async (req, res) => { console.log(req.cookies); res.sendStatus(200); }) ) I'm...
962e6c33fe10dcf4289551bb1f929e8c87d401002357f4076343e7d05c21a025
['7f5208648a71474fabab5ffcadaddd1b']
The loopback documentation states that the AngularJS "SDK creates a Category.products() method that can be used to list all products in a given category." $scope.products = Category.products({ id: $scope.category.id, }); This works fine but, how do I return a list of all categories with all related products. I ha...
69770d881a3b464f6b04de85a7af0eae35afd368e855d0fc5465c42a008f6db8
['7f5208648a71474fabab5ffcadaddd1b']
Worked it out. You need to create a remote method in the parent model (ensure you've set up the relationships between the models). Supplier.supplierServices = function (cb) { var response; Supplier.find({include: 'Services'}, function (err, suppliers) { console.log('err', err, 'suppliers', suppliers); ...
44b692c6e7465cdb92c54f07caeb6b01791d0aff27582646b2778267bf7167b0
['7f6d16338e63496c8ab2dd52a13f6a34']
I created my first simple C# app in VS 2010. Nothing but an application that runs a form and uses several references. I want to put this on other machines. What is needed to run this application besides the exe. I am targeting .NET 4.0 and I know 4.0 is installed on the machines. I tried to put it on a machine bu...
8f12e0fe3250c36e17727a755690771e12229e3929d77d38251170e7dfcdc3fc
['7f6d16338e63496c8ab2dd52a13f6a34']
You are calling accept changes on the table but be advised you can call acceptchanges on every individual row thus only effecting that row. dsDataset.Tables["OrderSummary"].Rows[currentrow].acceptchanges(); It really depends on what you are trying to do. You can update all at the end on the table or individually on e...
cbe8587335007c036901bbaab4e00e3f89e686725a14af799d56ef2ca5c21b4f
['7f75cf6e6ef943889e07d4d18c588307']
Trying to extract zonal information within a shapefile layer that contains district regions, for a monthly time series of raster data stored in a netcdf. I've so far only been able to extract the average across all time periods for each shapefile (see below). But really I want the monthly average within each region. ...
e15f80a0f4c4e14f24e88bc5d0bb1cffe824a3bc6df9c1ebd67d13fcf2544e15
['7f75cf6e6ef943889e07d4d18c588307']
Looking to group my fields based on date, and get a mean of all the columns except a binary column which I want to sum in order to get a count. I know I can do this by: newdf=df.groupby('date').agg({'var_a': 'mean', 'var_b': 'mean', 'var_c': 'mean', 'binary_var':'sum'}) But there is about 50 columns (other than the bi...
d323e0dea843d655565633cb117a944ccb83726b0b1d8dffbd382db413735faa
['7f9544370ff84fcc86211618456f743b']
I'm facing a situation which I spent the whole day trying to get this working but unfortunately I'm running out of ideas and I thought you gyus might help me out. I have two streams, one audio stream for the customer (micMyStream1) and one video and audio stream for the seller (MyStream1). The idea behind this is prett...
6db487b26e937346f5f79a7f3ab3f7aff6ae1c74d6ec3a4b3f80bc5790523e12
['7f9544370ff84fcc86211618456f743b']
I have read the "Getting Started" introduction on Docker's website, but I still have one question I could not find an answer to: Is it possible to set up a Docker container which can create other containers (real-time) ? For instance, can I create a container called "ContainerDeployer" which can 1. Download existing ...
4c928f3269a3260ed4d0d1dc4701cd3bb56917e4e6bff2dead881a3db6d2ff69
['7fa3de7c04d64befbc04f80185737a3c']
I need to redirect some output that would normally be printed to screen into a file. I have been able to redirect output to the file but I can't seem to figure out how to direct the output of the rest of my program back to the terminal window. All code is in C. The program is running on Ubuntu. Any insight as to what ...
2a41b65f0af3e429274c06060dfdab80670a7dc10f4b35178001d804550ee7f8
['7fa3de7c04d64befbc04f80185737a3c']
I have two forms, Form A and Form B. My Properties.Settings.Default has a timer object that when "ticked" needs to open Form B. What I would like to do is program the timer_tick(object sender, Eventargs e) event for the timer object that is in the solution's properties. Is this possible? If so how? The issue I am havi...
72de3a49bbcf792078a6516249d93a22076fcad5d36aa2b824901a5987a923e8
['7fbd0e2d55ad400d8fc4bb07c8707e10']
My friends and I want to build an app iOS and Android that makes REST API calls to Django, and Im in charge of setting up the backend server. I've heard a lot of things like about nginx and stuff, but I can't find anywhere how to start things off and make a useable server and such. Ive heard good things about Digital ...
4a5df01887d62638aad074bb19c5023baa7512030b9504ef42cfeccc01c3faf1
['7fbd0e2d55ad400d8fc4bb07c8707e10']
I am trying to pass in parameters into my REST API get request, like this: parameters = {'key':value} response = requests.get('some url', params= parameters) but the API that I am using uses a url-path instead of a query argument. I want it like: /api/resource/parametervalue and it comes out like: /api/resource?paramet...
193b90b826e3d3484727113ee9f127c619c821b9dc3e4a4d578a958ef8006d8c
['7fe47493c6834b3da4436a7cc144b726']
I currently have: var content = document.querySelectorAll(".content"); var myButtons = document.querySelectorAll(".more-button"); function enableContent(evt){ // remove class d-none so it can appear content[evt.currentTarget.param].className = content[evt.currentTarget.param].className.replace(/\bd-none\b/g, ""); ...
1855e3cb8f977a5dc9895dd0b9cd3306297a6db7a643b9570e0bfc8115dc9c29
['7fe47493c6834b3da4436a7cc144b726']
In frontend script I have: function loadContent(){ var count = 0; var xhr = new XMLHttpRequest(); xhr.open("GET", "/getMore", true); xhr.onload = function(){ if(this.status == 200){ data = JSON.parse(this.responseText); } xhr.send(); } I'm trying to pass variable 'count' to the backend in my node js ...
eb35abe839388d5a1942d9f59d7f2726533edadf33fe0358211c153b84dd1761
['7fe866add61b43eb9e6bf48b60c9ffef']
I would like to set the default file association for a file type (PDF) to an Apple Script app. The Apple Script app will open the file type on a remote machine (using remote Apple events) with a specific app (Preview.app). Not that it matters but, the remote machine is a virtual machine on the local machine. I think th...
bf57400dbefb44c5d96169e8aa1d1993b9cc5c60079514d7a4dfa272e10baaa8
['7fe866add61b43eb9e6bf48b60c9ffef']
I have a simple automator app that runs a simple script. It uses ssh to open a file on the local machine, MachineA, with an app on the remote machine, MachineB, and logs the ssh call. on run {input, parameters} repeat with fn in input set fn to POSIX path of fn set fn to "/Volumes/MachineA" & fn ...
61e57c95376472ba77bbc48e30f01e6bf1a3cd28a760c45f69d58347ff5d2d0b
['7ff858d1392c4db4842ea4f26ceb0c25']
I can't seem to be able to get $\Gamma_{ij}^k$ to vanish at $p$ without it vanishing everywhere else. You have $\sum_{ij} a^ia^j\Gamma_{ij}^k(q)=0$ for all $q$ and all $k$, and this should yield $\Gamma_{ij}^k(q)=0$, shouldn't it? What am I doing wrong?
668d32c8c2cd20a9955d6e5981cb3ad043ca384c1db2795ea8d9b4fb8faa67b4
['7ff858d1392c4db4842ea4f26ceb0c25']
The correct assumption to begin a proof of the contrapositive would be that $S$ is non-closed, not that $S$ is open (I think you’ve mixed up $S$ and $V$). I also think you are doing yourself a disservice by proving the contrapositive. Closedness is more or less contained in the very definition of completeness.
f43bb36e8c90a7ff6457ede9b128a4ad1acfe6b2ffab768292a44a84bcc7d298
['7ff8ff9c36bf4dc287a59baba0146a9a']
I tried deciphering your question, and I think you want something like this: function item_attributes_data($id){ // first get your attributes $query=$this->db->query("SELECT id, attributes.attribute_text FROM attributes"); $attributes = $query->result(); $finalResult = array(); // then get the it...
ac8baba1c38f716af80f42246eee9eaa4eb65496a6a9113373ed1e3cc88e3974
['7ff8ff9c36bf4dc287a59baba0146a9a']
You could create a function like this: const then = f => p => p.then(f) And then your pipe would look like: const AuthService = () => ({ async signIn(credentials: Credentials): Promise<AuthSession> { return R.pipe( api.signIn, then(signInResultToAuthSession), then(saveAuthSession), )(creden...
8ba5648ba5ee7ac1f0964b7a3b6e0185dbd7c25754d4ccd0e1ee15e97310e634
['7ffb59508b90418cb2a3c12054dd0f65']
I have combined two questions into one. Apology for it. But since theyshare relavant topic,hence did so. I have ASP.Net MVC Site. Now I have read number of times about adding expiry date for static content and enabling gZip compression for static content But I am not sure how to do it. If you say adding a .httaccess f...
57397aafc70102ff4ebc5e5cffaf3bf984f8de7c1adb9a2da24ae5449f6be0df
['7ffb59508b90418cb2a3c12054dd0f65']
I am bining website link to href. This value is coming from database. I am bining this value using angular. Now problem is that suppose the value coming from db is www.google.com But when it bind this value to the following element. <a ng-href={{websiteUrl}} title="My Website"> Website Link </a> The ng-href takes the ...
3fd4c47252c0791dbdc838f604d37938986199dbbd157adc1f4a76c19b14d2cc
['8004062e0cfa429fa4b677463eb45d75']
I'm using the PiCloud REST API to run a background task from the Google Appengine (GAE). My PiCloud function returns a byte string to GAE as follows: result = numpy.asarray(arr,numpy.float32).tostring() return pickle.dumps(bz2.compress(result)) This works OK except that, when the string "result" is large (24MB is a typ...
70437eb0cddf9a766edb0d27e58b16a4b904a41502832d469f4d91fba1fcce37
['8004062e0cfa429fa4b677463eb45d75']
Since upgrading from Ubuntu 14.04 to 16.04 I get the following error on the local development server: ERROR 2016-06-19 14:03:10,294 wsgi.py:263] Traceback (most recent call last): File "/home/mort/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(se...
fb79a3def6c772060a7b72b18b07bed1e951c8eb2019c6ecc2e81480bfb70904
['8008abe55063464b8fb3436e458d8ddf']
What i am trying to do is, once my form is submitted, it will pass certain values from a form to PayPal. This is my form code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <form class="form-horizontal" action="<?php echo whichPPUrl(); ?>" method="post" id="paypal_form" targ...
36a504514c51b1dc2afc24edcc6c3e6ef0cc5dc46b77a18d66783e43041b6522
['8008abe55063464b8fb3436e458d8ddf']
What i am trying to do is make my JSON object the same as an already developed one, these are the displays: Original: { "name": "test product", "descriptionUrl": "https:\/\/www.site.club\/", "images": [ "https:\/\/thesite.com\/kf\/HTB1bGBljyAKL1JjSZFoq6ygCFXa7\/TY-Unicorn-Big-Eyes-Plush-Toys-Ty-Beanie-B...
9a6f2e2b21645a2fe4c385627a96b478c085f957d69a6e0c4d2087d279a14986
['800bc9e9ac7e4410b82cf2707168cf39']
You need to replace the crystal & touch sensor. Take it to the Apple store. They may do it for free or they may not. If they won't do it for free depending on where you live you may be able to find someone local who will do it for a lot less than Apple. Otherwise there are many place that will do it through the mail...
8cd2793807345a18db07c8ba93d56fcad97cf68ecda08c773f82f2414ae32993
['800bc9e9ac7e4410b82cf2707168cf39']
OK I see the point, then the definitions you have used in the answer seem to be too vague - the triple (subject = code running with privileges of a particular user, object = file, action = open object) satisfies the definitions. Basically it revolves around the precise border between subject and action. Or is it that I...
25a249ad19bcefd02c8a21b2040ce5c572a4cbfa3e274ee3be71c39a01ebaf26
['8012af8fcc344e0c9467bae18b739ec1']
Thanks everybody. I was able to resolve the problem. The supported platform uses the EC2,VPC, so my AWS account is in the current region that does not use a default VPC. I dumped everything out, created VPC using wizard, then the security group. Then re-created the DB instance, assigned it the new VPC i re-created. Tha...
128e6df486a4e16fff0f1be7c8cf179367977271dcec7834b7596a24bc1bf937
['8012af8fcc344e0c9467bae18b739ec1']
Please have a look at sample data configuration file at http://wiki.apache.org/solr/DataImportHandler#FileListEntityProcessor You need to use something like XPathEntityProcessor to define entities for indexing. Other entity processors, such as PlainTextEntityProcessor, can instead be used if you are not using XML files...
a2869cf6ab4ad5835336061c15675c3616d9879745c8632fa3488c9bd0cb0e88
['801647463dc14ea5bc550ff0335380ea']
I am trying to mitigate ssl bypassing on a jailbroken iOS. I am unable to find any good work around as mobile substrate and SSL kill switch are able to bypass SSL. I have tried two things: SSL Pinning Detect jailbreak and stop the application Both can be cracked. My application handles confidential data so securing f...
10c283438a8080f8b784707da95054c657550df28882ca602d637455af9563db
['801647463dc14ea5bc550ff0335380ea']
Adding to @Comzyh answer, this indeed is due to mixed python versions when an upgrade happen due to any reason. A quick fix is to remove your venv python binary i.e. rm <path-to-your-env>/bin/python and copying your system python binary to your venv like cp /usr/bin/python <path-to-your-env>/bin/python. This will fix t...
0ee0f64368e1d5320e3f0737dcc50254a286474a82f47ce2b5fa29c889049080
['8019ecda9c2b45ac84d6641770773b0c']
I have a data like below concat Type ddate TTIME 1348 - 2019-06-10 B 6/10/2019 12:34:03 1348 - 2019-06-10 A 6/10/2019 12:38:02 1348 - 2019-06-10 B 6/10/2019 13:37:15 1348 - 2019-06-11 A 6/11/2019 14:35:20 1348 - 2019-06-11 B 6/11/2019 18:01:01 1348 - 2019-06-11 A 6/1...
e04ae3e0ca8572350674d36171ece65b881ed8ec8e1c11f2b94865151b6ecfb0
['8019ecda9c2b45ac84d6641770773b0c']
I have a list of list where I want to extract a specific column from each data set.I used the following code to get the 7th column of each data in the list of list. lapply(out, function(x) lapply(x, function(y) y[,7])) However, it looks like some data has less than 7 columns. But I need to get only the 7th column wher...
f87c1fffc0591e577243bf670596cf17f0fd9fb45f4df577128f48d2835dc9c8
['8025555c975547fb932942683b8344c6']
I try to develop a maven project with Angular 2 with Spring security. The structure of the project is similar on this guide: http://csetutorials.com/deploy-angular-2-maven-webapp-on-tomcat.html But i am having a problem when building angular 2 using webpack. Because when i change a html to jsp in my angular 2. I get a...
eaa9bb32cd70d157b1014b5e94d6f66f19f195351987ad90470b620d9bce0305
['8025555c975547fb932942683b8344c6']
When i run my spring boot web service, i want to source myscriptfile.sh which contains lots of export commands in order to modify my web service URLs based on the environment of the current shell, before building my project. I can run it in terminal using this command: source /path/to/my/script/file/myscriptfile.sh; mv...
4a93a6908b73ccf96467529f77a693478f8cad661b0724702037b34c3ecd7d0e
['80281aa037ad4428a53a35cfaea20193']
Here's my version, I made the code as verbose as possible so it should be self explanatory. def showWord(word,knownLetters): word=word.lower() characters="" wordsofar="" for char in word: if char in knownLetters: characters = characters + char + " " wordsofar += char ...
ffee83deae4bbb6ed54b574695c339c5f4b93545598fbb6104c0a2c9433c4e83
['80281aa037ad4428a53a35cfaea20193']
Through Python's subprocess module, I'm trying to capture the output of the dd command. Here's the snippet of code: r = subprocess.check_output(['dd', 'if=/Users/jason/Desktop/test.cpp', 'of=/Users/jason/Desktop/test.out']) however, when I do something like print r I get a blank line. Is there a way to capture th...