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 |
|---|---|---|---|---|---|
6a92afd839ca2c0be42c26ad0fbf658b4672e5bda8878206af78e69f0258592b | ['35b575382ee94ee6acf985be37f9ee75'] | You can store all of your result into one list and iterate over to that list and write into the file using "with statement"
as shown below
temp='AWS_ACCESS_KEY="{}"\n'.format(accesskey)
a.append(temp)
temp='AWS_SECRET_KEY="{}"\n'.format(secretkey)
a.append(temp)
with open(file_name,'w') as stream:
for i in a:
... | 9e36b012952bf6e8245ceb1a402ddf20781a0f3e02aa288105fbf748c526356f | ['35b575382ee94ee6acf985be37f9ee75'] | Why this code is not going to the second "if part" but when I comment out the remove statements then it is going to the second "if part"
i need to take out 'abc' and 'abcd' and 'defg' from d['a']
below is my code.
d={'a': ['abc','def','ghi','abcd','ghij'], 'b': [6, 7, 8]}
for i in d['a']:
if i.startswith("a"):
... |
c4ec81cdccf27a3fcb83962a58af4ebbdc142cb836f2abd5858720bcada08e57 | ['35c7daba46e04926853c66ba23ffcea6'] | I assume you mean the Expand Selection to Tag command in Sublime?
In VS Code the built-in command Emmet: Balance (outward) does basically the same thing. It selects content of a tag and then progressively includes the tag and works outward with each repetition.
You can create a custom keybinding for it as well in the ... | 9f2b3308b24b6d606404a3d9dd3593026a3241bfd1606debfa634287c3470177 | ['35c7daba46e04926853c66ba23ffcea6'] | I had exactly the same issue and playing with the box-sizing didn't help at all. The only solution that worked for me in the end was to use row-fluid.
The difference with row-fluid is that they are based on percentages, not fixed pixels. Then the child spans in a row always add up to 12, instead of adding up to their p... |
5378af4205825face1efef5a9ddf8f8e14cc7333176c434e1e829a92651f590e | ['35cc3160de41474d9f9d77e8ba8355e9'] | Thanks to a YouTube video(sorry i forgot the title of the video and the owner of the video), i have finally found a solution using a windows command-line tools called DISKPART. The steps are actually quite simple. These are the steps as explained in the video:
Run cmd.
Type DISKPART. Then press enter. This will run di... | eebd601238d798c2d75fe74b0a7d9165a4f48cc5744e398750b4e176034b6d29 | ['35cc3160de41474d9f9d77e8ba8355e9'] | This is my data
How do i calculate the total of all 'w add' that have non-blank 'g minus' value. For example, in the image i would add 5.61 and 160.11 and store it in a single value. i have no idea how to do this with SUMIF
|
632687b44c43bcb4d86bb65a42c7cf03719d4e0f3cd88a1e5f959d74d7c9a7e4 | ['35ceaa3003634053a2464012723f8ff6'] | I am trying to detect USB insert regardless of the device it is. Eg: A phone, a battery pack, a biometric system etc.. which may or may not be recognized by Linux (no drivers or nothing to "Drive/run")
Linux will, detect the USB insert, and then proceed to register and act on Recognized devices. For instance it will ... | 2a26525cab1b1d85bab4b88cd1f0d1114cb68fe4901af9c232bcf930d05eb91f | ['35ceaa3003634053a2464012723f8ff6'] | I am trying to create a simple Excel sheet to track customer debt. I have created a sheet called Customers and in there I have a list of customers.
Then for each month of the year, I have another sheet, e.g. April, May ...etc. April looks like this right now:
Inside the Remaining Debt cell for each customer, let's pi... |
f2fcf8864ea30361025423bd69cb2c2fd2382ebc31c469154f4d4d4e3882c990 | ['35e9dfb11d664cb1ade19e67c8a9d264'] | Yes. I too mentioned it. <PERSON> says "Indeed beautiful it is. Worthy to be in the possession of a king and the beautiful <PERSON>". But he had a better reason to go after it. It was establishing the dharma. Even if it were not for <PERSON>, he would go after <PERSON>, when he encountered him in any other form. I woul... | fea762aab02468b73f83a9a5c54bcda2e7841102c3e09fc56193b706876e4d06 | ['35e9dfb11d664cb1ade19e67c8a9d264'] | Thank you for your answer! It might be fun to compile my own kernel but I fear that it is really time consuming and the backdraw you mentioned (that you have to compile again and again) could really be annoying. As it seems like aes-ni is in the standard-kernel I would go with this one. Thank you! |
11bfc6a902d33173c221b7bbe7350d6c8936158d97abdc0d078076fe1481e91b | ['35f454acc3ec49b6a6793ff108b00e2f'] | <PERSON>, estou com um problema nesse trecho do código que não consigo resolver de nenhuma maneira. No caso, os dois primeiros input recebem valores que são somados e essa soma aparece no ultimo input com o id dinheiroDivergência, até ai tudo certo.
<td><b>Dinheiro</b></td>
<!-- <PERSON> -->... | 807763213fa0d0e06d6290fa0e9501d5a1f1fd6dc2dc9e97c3b42325d3ce5de9 | ['35f454acc3ec49b6a6793ff108b00e2f'] | So I'm not good with excel (computers in general) and can do some things but this one is out of my league.
This is the problem:
The cost of a used car is highly correlated with the following variables:
t= age of car 1 ≤ t ≤ 5 (years)
V= volume of engine 1000 ≤ V ≤ 2500 (cubic centimeters)
D= numb... |
37971d0ab6313710b45810697f7c2932dc8fe26ba89e9358cf3ffa91570fef52 | ['360c8c20e495402ea1892fec81bfef56'] | I uploaded several files to folder "/sdcard/Books/LadySusan" on my android emulator. When I check if file in folder exist, expression
new File("/sdcard/Books/LadySusan/ladysusan_1_austen_64kb.mp3").exists()
returns true, file exists in folder, but when I use
new File("/sdcard/Books/LadySusan").listFiles()
it returns ... | b3224450831023b97fd707fa23b9473f00533f997c3cd3028d4875babdb00229 | ['360c8c20e495402ea1892fec81bfef56'] | I am trying to implement deferred binding using generators. When I an testing deferred binding in dev mode it works as expected, when I am switching to production deferred binding is not working for some reason.
I have following classes
public class GeneratorTest implements EntryPoint {
//should be modified by gen... |
15bae1d92a92153a02bcec3365be278424c96782d31bf26e045cf28cafec2732 | ['361032e018e34bf78c36864c9a944e4d'] | Since you need to unit test the given class, mock its dependencies only, like solicitationService not solicitationRepository.
When mocking the behaviour of the methods of mocked objects method you can use thenReturn or thenAnswer method . In thenAnswer you can get the arg values passed to method and assert the values
@... | f565a98bdd1bf56f420a8df96d8ad444d9909c7065bc87350b83879e1f00c0e1 | ['361032e018e34bf78c36864c9a944e4d'] | I think the main problem here is that you are not able to parse it properly . Refer this Parse XML TO JAVA POJO in efficient way
and you can use http://pojo.sodhanalibrary.com/ to get the correct POJO classes required for your task.
After you get the POJO you can compare the extensions
|
c482a8b06857c19308d0d2f303b790921ebff5e6f7d6c326912aa3aa4f8db308 | ['36156320b001421dad77b375c1b14e11'] | I have encountered the same issue while trying to restore some dumps, in -Fc custom format. I'm not sure the problem will or can occur with any of the other dump formats.
However, I found that the "out of memory" error that pg_restore laconically drops on exit, is program-internal and not actually an OOM. It also occur... | b80d196b520c90153137f64907bfa0ca7013367344d1c3f6663fac5f89a0834c | ['36156320b001421dad77b375c1b14e11'] | Same thing happens on any website I go to from amazon to target even over powered my banks website, happens on 2 different phones a note 5 and a galaxy s7 edge. Started on the note first now it's doing it on the s7 edge. I can never recreate when it happens I just know it will... the notes stock att bloat ware running ... |
1ba4eb7afba8d91d71d9d00cbc33b0ad45fbf18347e97b6334e657bc9b0a93c0 | ['3628a3a2325e4b5db7e1dfd9670052bd'] | Make sure all libraries are loaded:
openmpi (which you have done already)
gcc
You can try with parameters that will allow you to identify if the problem is your machine in terms of resources. if the machine does not support such number of processes see how many processes (MPI or not MPI) it supports by looking at ... | de0c2d2b37154ebb2d7ba9ab3d5908efc40e2d4eb8c7e7ba6286c59b02956725 | ['3628a3a2325e4b5db7e1dfd9670052bd'] | First, you have to create an __init __.py (two = "_", before and after, no spaces) file inside the directory where you have your actual package.
Second, you want to simply call your package from the python script where you are import to.
e.g.:
my_script.py #your script where you want to include/import your packag... |
9ccdb3bc77afda3df0bee1624f1ead0d353d4f0844ab621face4b11f4a65725e | ['362afeea4a8a40f9a4c0961c068220fc'] | I'm trying to create a layout with 6 different ImageButtons and even after reading many layout tutorials and docs I'm getting nowhere.
I am trying to create this:
Always portrait, images' indvidual height & width must stay same scale, anchored to screen bottom with system navigation buttons showing:
---------------... | 7e0208e01fcf94577fd9baa78f3aaeea46b8bb1339c9ecd10d603d93345ac908 | ['362afeea4a8a40f9a4c0961c068220fc'] | I'm sure this has been answered but apparently I don't know what to search for.
I am working on my first non-trivial Haskell program -- a simulation of a card game I enjoy. I have the program working but there is a situation that I am certain can be handled better.
If I have a series of binds which are Either String Ty... |
b6e29c90b91802029485c1df8f33c7a1dbb4f40c7b24f730ceeff4d1e6e9ce16 | ['362d2f21fb0e49baa4b3594b3b749445'] | I have documents that are structured like below, where each array element contains "n" and "v" as the key and value for different types of data. (collection name is doc)
{
"_id" : 1,
"logs" : [
{ "n" : "facility", "v" : 26 },
{ "n" : "num", "v" : 6 },
{ "n" : "i... | 36c4191d518fbb82ae29a5659a09bac7ed274df9e963c8bef9e07481df63074a | ['362d2f21fb0e49baa4b3594b3b749445'] | I have syslog that like below.
date=2015-10-08 time=16:03:26 devname=D1_FIG device_id=ID300B3908601UID log_id=0021000002 type=traffic subtype=allowed pri=notice vd=root src=157.56.15.15 src_port=3584 src_int="port4" dst=211.16.12.55 dst_port=80 dst_int="WLN_200" SN=2775431942 status=accept policyid=430 dst_country="Uni... |
3f11dcc2dc76ef502eb1cdb6700764b3d25a55d251888828d923a2de540c3f9d | ['363c06fcd55d4f9a84744c411ef351e1'] | It started appearing after I played a videogame using Dosbox.
I didn't update any driver but Windows did indeed do a number of updates recently. None seemed to have caused problems.
It's a laptop so the only cable is the one of the second monitor. I did try to remove the cable and re-insert it, to no avail. I also tri... | 0bb342057b1672223aab02e7436ec0d2af2b6775d7d44836c527e09120784364 | ['363c06fcd55d4f9a84744c411ef351e1'] | The issue apparently was related to an application called Stardock Fences.
I used it for a very long time as I find it useful. Sometimes it did have minor glitches, but nothing major.
This time something must have happened that triggered this strange blur effect.
The solution was to uninstall the application. It is unc... |
f70c73a52cfbd685f0ceb19da778b4244aa1504d48309c1014400ab966dc0b59 | ['36552a70f4a94c34a79fbe713596b8d5'] | I have some EC2 instances running an express application listening on port 3000. I then have an elastic load balancer forwarding request from it's port 80 to these EC2 instances. Every time I bring down one of the express servers running on an EC2 instance and try to bring it back up I get the address in use error for ... | d1ecb2064763dacd57fee2e8bec952239551ec2422d331c0bb57531af1677e2d | ['36552a70f4a94c34a79fbe713596b8d5'] | I am trying to console.log myobject but I keep getting undefined. I tried using $scope.watch and $attrs.$observe. Can someone tell me what I'm doing wrong.
here is the html
<my-component some-data="$ctrl.data"></my-component>
here is the component and controller
module.component('myComponent', {
bindings: {
needT... |
2e410db7d7d7894519b5391058c215b93fc6a72fd9fb6c30b9ef7967538fa846 | ['365a5642080c45d398e4028b87b2b93e'] | import UIKit
protocol SSGastureDelegate:NSObjectProtocol {
func callBack()
}
class SSUnderLineLabel: UILabel {
var tapGesture: UITapGestureRecognizer?
//Make weak refernece for SSGastureDelegate
weak var delegate:SSGastureDelegate?
required init(coder aDecoder: NS... | 859052c2a5c5b84c2f50fdea165aab19a189f23607846c7aca4949a12a65d6c9 | ['365a5642080c45d398e4028b87b2b93e'] |
func setPlaceholder(){
var placeholderLabel = UILabel()
placeholderLabel.text = "Describe your need..."
placeholderLabel.font = UIFont.init(name: "Lato-Regular", size: 15.0) ?? UIFont.boldSystemFont(ofSize: 14.0)
placeholderLabel.sizeToFit()
descriptionTextView.addSubview(placehol... |
99ebfc4c05d029009f91281a7bd3cd9970c07090f76350cf9c7bb41135abb93c | ['366356e0250940af86ab518e5c314747'] | I have a spring MVC application with servlet-context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p... | 8e83b0378cdcc624ac76538f7d2e2e28dcf11af1d1cb622d72af62899f246f62 | ['366356e0250940af86ab518e5c314747'] | I have an object
object Foo {
fun doSomething(param: String) {
throw Exception()
}
}
I want it to become a stub (relaxed mock in mockk terminology) in my test.
Other words, I want this test to pass without exception:
@Test
fun shouldAskFooWithCorrectParams() {
mockkObject(Foo) // How to change i... |
2a69dd5f7257e41493cbe89b6bd42a1afd23a8eca1e29af9ace46fb488433258 | ['366b3a2ca3db492b8f8c5e19b80edeb8'] | Did the NLP library install correctly?
Check in the logs to verify there are no errors. Most of the times this issue comes when there the stanford nltk library does not install correctly.
A quick way to check is by running the GUI to try out the parser if that runs successfully then the library installed correctly oth... | 330b2ba8e59bef9169daafe7c2e94f048e168ac1cd0e4ed2a883d2323527e6d9 | ['366b3a2ca3db492b8f8c5e19b80edeb8'] | This is the way to catch File Not Found Exception in Visual Basic 2015:
Try
path = "c:\winpython\codes\output.TXT"
Dim sr2 As System.IO.StreamReader = New System.IO.StreamReader(path)
Catch ex As FileNotFoundException
MessageBox.Show(ex.Message)
Catch ex As Exception
MsgBox(ex.Message)
End Try... |
e2ae7bceee5dc8745576826e1752fd11fbedd380c686d25c92b6d3732a9ba6c0 | ['3670d3be412a41bba981976db337d370'] | You forgot to check your answers for extraneous roots. If you do that you will find that your second answer is extraneous: the two sides of the original equation are negatives of each other. There are other roots of the original equation but they are outside the domain $0\le x\le 180°$. | e851dba5b3ca0e3175a91ecb95e82b209612b0899040fe9bfb8bf2d88db92908 | ['3670d3be412a41bba981976db337d370'] | If the density function method is required, you should state that in your main question. The bounds on $x$ are clearly $0\le x\le \frac 12$, but the "slice" of $yz$ for a given $x$ is a ring or "washer". Putting that into a double integral would require multiple pieces: above and below the inner hole, and to the left a... |
e1d17512e99d6a103883e448383c8d366ed05384b53f4d0368f9ef0f4e90d795 | ['3671e02bea6c42ba8ad772130ac90473'] | Suppose I have variable length string as below:
Write <Address> <Data0> <Data1> <Data2>
Read <Address>
Write <Address> <Data0>
Write <Address> <Data0> <Data1> <Data2> <Data3>
How do I read in SystemVerilog or Verilog using file operations. I know to read when there is fixed length of text
integer file = $fopen(fil... | 6330286a357cac2981780bcc7cc3b40621daaa36ee2973a0b03e098da143c44f | ['3671e02bea6c42ba8ad772130ac90473'] | initial begin
#100
a=0;
b=0;
#10
a=1;
b=1;
#100
forever
#10 a = ~a;
end
initial begin
#500
$finish;
end
always @(a) begin
$display("%f edge on a %d", $realtime, a);
b=1;
b=0;
end
always @(b) begin
$display("%f edge on b %d", $realtime, b);
... |
207bba3198a41f227a8adcb518ce1e831ae4d89e3ccdec822d72476531201f05 | ['367d499602514bdda472cba102d47b91'] | No need to have the value of the zero.
If x* is a zero of g(x) then
g(x*)=0, that means xlog(x+1)+x*-1=0.
Bring terms on the right side of =. You then have x* = 1 - xlog(x+1) = G2(x*).
So x* is a fixed point for G2(x).
The same way, if x* is a zero of g(x),
xlog(x+1)+x*-1=0, so xlog(x+1)+x*=1.
From the definition of ... | cd3367ff13d34c6fad47f572ab44e64b921635283932a5304b2e1f426105233f | ['367d499602514bdda472cba102d47b91'] | So, how can i obtain a normal JPEG image from a PDF ? I don't need for particoular configurations. I need something like a simple (for example) `split mypdf.pdf --> myimg.jpeg` . I'm not interested about how the tool does the conversion. I'm interested only about the result. |
38290ba7c18d1e53d9e61de52f690b60944b68cf2b690b31d7bab3ca7d8c6148 | ['3682348528634ddfae9e75a580ad2c2d'] | I personally use the animate.css library
Simply link the css file to your page:
<link href= "https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" rel="stylesheet">
You can also download the file and serve it locally.
Then just add the classes "animated slideInLeft" to your element.
$('#content').sh... | b86e0c3df261848ba36d77617723e93e292a02a8b11e0fee94883678144e04f5 | ['3682348528634ddfae9e75a580ad2c2d'] | Finally got it working.
I was using https://heroku-default-domain.com/.well-know/asset-links.json (which was working fine)
and https://my-custom-domain/.well-know/asset-links.json (which was not working)
the folder became accessible when I added www as in https://www.my-custom-domain/.well-know/asset-links.json
Other U... |
a13a4ee2e6b12b37769c27c5c06156d1aa2109e29c3a744633e5332e8420b931 | ['368af755880949efa5a31d8a9cc3d0a6'] | Ok.. Your Web Service Return JSON Data in Responce, so that you have Parse the Json Data in your Code, i Have Give Some Basic Logic How to Parse JSon Web Service,
//================================================
private ArrayList<HashMap<String, String>> MyArray = new ArrayList<HashMap<String,String>>();
priv... | c5974e0413ff3715635fb1439cc325921bb2c1f79ba8f8679d39fef5845e86f3 | ['368af755880949efa5a31d8a9cc3d0a6'] | ParseQuery query = new ParseQuery("login");
query.whereEqualTo("username", user);
query.whereEqualTo("password", pass);
query.findInBackground(new FindCallback() {
@Override
public void done(List<ParseObject> obj, ParseException e) {
if (e == null) {
if(o... |
bdd600d68eacf667b4f48b41b00ccf9916cfab0a53c1156a92fb3f7b64413014 | ['368f3825da8345469531ff96494c4f72'] | Three things to remember while accessing an element in an index array:
1. Normal expression - hardcoded index
arr=(one two three)
element_0="${arr[0]}"
2. Normal expression - index stored in a variable
arr=(it is cool to write readable code)
for ((i=0; i < ${#arr[@]}; i++)); do
current_element=${arr[i]} # note, no... | a30fa04d04aa1fae4120f9c2a954a530f7ac5d8c3b3f8e344b89aa375419287d | ['368f3825da8345469531ff96494c4f72'] | Timing function based on SECONDS, limited to second-level granularity only, doesn't use any external commands:
time_it() {
local start=$SECONDS ts ec
printf -v ts '%(%Y-%m-%d_%H:%M:%S)T' -1
printf '%s\n' "$ts Starting $*"
"$@"; ec=$?
printf -v ts '%(%Y-%m-%d_%H:%M:%S)T' -1
printf '%s\n' "$ts Finished $*; el... |
18a10a8cf04cbc528e98e87922c3ad24f68bf44b84192dde2df0e414b5f554f8 | ['36ac0cea150f4b7eabddadd4dc32db1a'] | I would say that change the commented information on top in database.yml to
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
second: ad... | 40e4967344388e7e36c217368bef515e08c65d30eaf5fe270a87b94d2fea35e4 | ['36ac0cea150f4b7eabddadd4dc32db1a'] | Go to \RailsInstaller\Git\cmd then open the git (command prompt file) with a text editor or word pad (by right clicking the file and selecting edit) now there would be two lines which would look like
@chcp %cp_ansi% > <PERSON> < nul
and
@chcp %cp_oem% > nul < nul
delete both of them, and save the file . This sho... |
f617ff3bf8fbd2b8f78226d0d3a33a80fc676b49f7656c81a35adfd7090762b1 | ['36afceb307fb4c61aa986fc67eb59475'] | We have a Rails app deployed in Heroku using Rails Geocoding with a Redis cache. I assume entries are cached to fill some percent of the memory and I recall it running around 90%, but the Redis usage has grown recently.
We have a 1 GB plan and stats show 1,023.65 MB memory used and we are getting an error in Redis now:... | de98196a4c997e0ca8822e1a9d364c2b2d853de93f83f0bedb18db8c0316f99c | ['36afceb307fb4c61aa986fc67eb59475'] | In my local rails console passing 9/31/2011 returns 10/1/2011
[1] pry(main)> Date.strptime("09/31/2011", '%m/%d/%Y')
=> Sat, 01 Oct 2011
In heroku console it throws an ArgumentError:
irb(main):002:0> Date.strptime("09/31/2011", '%m/%d/%Y')
ArgumentError: invalid date
from (irb):2:in `strptime'
|
7dd89979b1a8c2e6f3cead6c1c54d8a7e474e1f8638e296a0581155654c4847c | ['36b7d5fd52ef47f1b254e2b22031ba62'] | The problem with your data is the unequal time step.
import pandas as pd
# Create your dataset
index = pd.date_range('2000/01/01 00:00:00', periods=4, freq='min').to_list()
index[1] = pd.Timestamp('2000/01/01 00:00:10')
values = [0., 100., 100., 200.]
data = pd.Series(values, index)
data
[Out]:
2000-01-01 00:00:0... | 2cb8c58a7cc5c836d287cd565c7ff8888ca18f8e63b02ec2ddb0509ab104ef83 | ['36b7d5fd52ef47f1b254e2b22031ba62'] | I'm trying to use Google Maps Engine API Client Library for Python to create table object using the following code:
service = build('mapsengine', 'v1', developerKey=api_key, http=http)
table = service.tables()
request = table.create(body = body)
response = request.execute()
Where body is the following:
{
"projectId"... |
ab4fc4acaa0ac8cadcf74675a0652225e63ca91f8626870bfe51277b2ca767ae | ['36c6673c9e7b4e71b89c5c9d21261bd1'] | I'm trying to obtain the sha-1 of 1559 files stored in an array.
For that purpose I've implemented the following routine using the library jsSHA:
for (var i=0; i<_files.length; i++){
(function(file, i) {
var reader = new FileReader();
reader.onload = fu... | 16c001d5f1603ea9cfa2de32cd634b266dcc4f0f5a44f354635319a06aa7bb49 | ['36c6673c9e7b4e71b89c5c9d21261bd1'] | I have a similar problem. At my first installation apparently everything went well, but after rebooting the machine the Orion service doesn't start.
MongoDB is running.
[rober@localhost ~]$ systemctl status contextBroker.service
● contextBroker.service - LSB: run contextBroker
Loaded: loaded (/etc/rc.d/init.d/contex... |
c8151e36472cf6081a9d6e697fe49b405c80d87e6b1b100457e8ead35a77265a | ['36f70929d2ab4e968082de405543c67a'] | I was doing the same tutorial.
Seems to me a bit weird that it had to be broken up in subexpressions, but it did the trick, and as I read here:
http://swiftlang.eu/community/34-xcode-6-beta-6-swift-can-t-handle-long-expressions/0
it might be due to a problem of Xcode.
Here's the rewritten function:
func checkForWin()... | 7964963a1e7f65b1c459468e95ee1374ceca292658afbf4be10211925b99723c | ['36f70929d2ab4e968082de405543c67a'] | Thanks for the fast replies, I made it a bit more robust for my own usecase, where both 'mac' and options where unsure.
Note the == instead of === because most of the time integers were compared to strings.
export function getLabelByValue(value, options) {
if(value !== '' && value !== null && options.length > 0) {
... |
de3a22ba6330f83cdedcd32e490228fd4c9c7efdbdbc81a927fe276d21fd4351 | ['36fa30d91c424126a74ce01fc6b8f902'] | Let $x = a + b$ where $a$ is the length to the left of $h$ and $b$ is the length to the right of $h$
From similarity on the left triangle, we have
$$
\frac{b}{h} = \frac{a+b}{y}
$$
and for the triangle on the right we have
$$
\frac{a}{h} = \frac{a+b}{z}
$$
Dividing these two equalities, you get
$$
\frac{a}{b} = \frac{... | 24dff99753614ca514ef023e3c24b7b08e2b799120f5946d09aaab274e4575e2 | ['36fa30d91c424126a74ce01fc6b8f902'] | Hello everybody ~ I am fresh off the newbie tree and waving good bye to Windows through the rear view mirror.
I just started up an old machine that has a fresh install of 8.10 on it and has never been used since.
As far as I can tell there is no gui desktop on it. I would like to update it to the latest, 14.x?
How... |
547090e7ae0b4f0cde2f21324b70021504e1478e2e47fb7aa9d339dc5a9dda18 | ['3701aa3923e749e3bae2a0b3bf95b420'] | I am making grouped bar chart based on <PERSON> tutorial.
I can't figure out how to put circles on top of my bars to act as tooltip when hovering, just like in this tutorial except it's on bars and not on a line.
I tried appending the circles like this :
svg.selectAll("dot")
.data(data)
.enter().append... | e17d7d4d18b2cdcd592e92d6bc6a047b89d8b47743db2000665dcb9fbc3422c3 | ['3701aa3923e749e3bae2a0b3bf95b420'] | I solved my problem by adding a / before 'locales/locale-'
$translateProvider.useStaticFilesLoader {
prefix: '/locales/locale-'
suffix: '.json'
}
What happened is that it tried to load locales/local-xx.json from the current url.
For example if I was on the route
localhost:8080/users
the request was
localhost:80... |
7bd2b1071970d8845a210ca4120c12ca1609cd9a14bfc781a3a25984ae6e047e | ['3705c452e83c4b3daf2163312d9363e9'] | You are asking 2 different things.
First one:
but what if you have a form which edits something, but according to user-level you cant edit.
You can achieve this but not showing the fields in the form nor updating the database if the user doesn't have permissions.
if ($user_has_permissions)
{
echo form_input('field_n... | 1bbd9629d5084400a0745e3b7abcf299f57816d2b5f65ccf0b53e3f259b3b84e | ['3705c452e83c4b3daf2163312d9363e9'] | Try creating a .htaccess file in that folder, with the following line:
Deny from all
If you need to download the file, create a controller and use the download helper (force_download function). This will disable all kinds of access (so you cannot use this files in the website, if they are images you cannot use them wi... |
218350378f1c04203b7921a53546766ae95b0d4f789c871aad52bfd2996565a5 | ['3713ffed73374806bb9f20548c98a202'] | I'm working on an angular 4 project. The code below helps me to get the real time value from slider when user slides between 0 and 1. Each time user slides, applycontrol function triggers because of ngModelChange.
<input [(ngModel)]="Brightness" type="range"
(ngModelChange)="applyControl($event)" min="0"
m... | d6646c49f671192c8f89e3d5f3b0090c11f9a9f9686a6351d741000926d3a360 | ['3713ffed73374806bb9f20548c98a202'] | I could select the background image from inside rectangle, but not able to move.
To move the image, i should go outside of the rectangle.
I know that the rectangle is created over the image, I'm looking for any option to move the image as it is selectable from inside rectangle.
My canvas screenshot
This is how i set ... |
b0d3fe7cf6081d0dddd8902575383d3af2de30d9f91859d5054d253b70207964 | ['3718a6885045489dbc2d541706b61b84'] | Of course you can! Simply add height: <insert value that's above 100px here> to your CSS under .large and find the correct values to reach the expected result.
Example:
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
padding: 5em;
}
.grid {
display: grid;
grid-template-columns: 2... | 8d971a179ed05504e8c97a3e3d312fecefabfbe051c58f9f95a40720d09042ab | ['3718a6885045489dbc2d541706b61b84'] | To run programs in admin using a batch-file you must have admin permissions on your script first, if it's the same as C++. Here's something I've been using that I found somewhere on this website. Put it at the begining of your script and tell me if it worked!
rem Checking permissions
if "%PROCESSOR_ARCHITECTURE%" == "a... |
2332649f0780238499eed4b1c5b6237a7ecbf06ba9be14fa773a0fe7aadf1cc6 | ['371c40ef819c4b32825b4f65b7202f33'] | Think of it has as opening up a whole bunch of doors until you find what you're looking for, then you have to go back and close/check the other ones.
public void preOrder(BinaryTree root) {
if(root != null) {
System.out.println(root);
preOrder(root.leftChild); <-- this gets called and will start fr... | b5478c5ecc25eaf8fc6cccb6eee5044e52505ff22c3939ab5a0d6983f499921d | ['371c40ef819c4b32825b4f65b7202f33'] | I currently have a simple table in my database that stores sets and values. I want to be able to delete all entries in the database and return the number of distinct sets that were deleted.
create table sets(
SetId varchar(50)
Value int
)
If I have two sets each with two values, then the table will be lo... |
86574289c6e34ed2fc90c7d1f958fbd9130f7dd1463986752e0a41a2f6428df8 | ['3729cb9bcb944150a286d73d807a5150'] | Another way is simply to not allow values that are not integers.
The following implementation is a little bit sucky, and I would like to abstract it later on in order for it to be more reusable, but here is what I did:
in the code behind in my view (I know this is might hurt if you are a hardcore mvvm ;o) )
I defined ... | 9e0a0ec63b449fd49b32cf6cdc872b1994dc271336a4a4835365096183244ff6 | ['3729cb9bcb944150a286d73d807a5150'] | I added this as an issue on ng-grids github site. It turned out that others had had the same problem, and that there is a solution:
(you need to get your hands dirty though and alter the ng-grid code.)
https://github.com/angular-ui/ng-grid/issues/632
Im guessing it will make it into version 3.0
|
402b5be037db08c6d2244b091785bbd006477cbad6320558d0c5bddf493f0fb4 | ['372b94c3fcf04a54be5f2f154f91d93d'] | When using group by you need to use aggregate queries to access the object properties. It also creates an object called key with the values used to group by.
Select="new (max(staffID) as staffID, key.Forename, key.Surname, max(City) as City, max(Country) as Country, max(LastUpdatedDate) as LastUpdatedDate, max(tblStaff... | 39a0e247b44af168f34a3b68966091877c64a35243b47922fba2551039d692bb | ['372b94c3fcf04a54be5f2f154f91d93d'] | You could move the script tag for the file upload so it is before requirejs is loaded. However since it relies on jquery then that might not be possible if you want jquery to run after requirejs.
The easiest option would be to edit the code snippet you've shown so that the call to factory() is outside the else block an... |
7e80be15b131410c62d2c7f39a61014d00a7a3fde86079300e7d9dc7b2ec7fe4 | ['37478a56034a425d99b84b1c338fabcb'] | First, use SoapUI to create your soap project from the wsdl. Try to send a request to play with the wsdl's operations. Observe how the xml request composes your data fields.
And then, if you are having problem getting SoapClient acts as you want, here is how I debug it. Set the option trace so that the function __getLa... | 26ae2937d27ceb4000bc31b573a08e0ee6140fe639833369454423e2061688dd | ['37478a56034a425d99b84b1c338fabcb'] | I want to add 2 points that I learned:
Cron config files put in /etc/cron.d/ should not contain a dot (.). Otherwise, it won't be read by cron.
If the user running your command is not in /etc/shadow. It won't be allowed to schedule cron.
Refs:
http://manpages.ubuntu.com/manpages/xenial/en/man8/cron.8.html
https://he... |
9649a8b840015047c9261344b3b54b4fe5842aa2c2dcdfc774b2f464353f02d1 | ['37486f17003a43338ad0ee8c8f188c56'] | I'm working on python projects and generate coverage.xml for unit tests using the pytest-cov module. However I don't have any good tools to parse the coverage.xml and highlight which lines of code are missed. This seems to be a common use case but I can't find anything via google.
Are there any tools out there (prefer... | f7c472281b09dc9ecfcc7b539411f9aedf18abafae4d82dbc994ca820de4a4cb | ['37486f17003a43338ad0ee8c8f188c56'] | We are integrating the Okta Sign-in Widget into our React-based webapp.
The example snippet:
var oktaSignIn = new OktaSignIn({baseUrl: baseUrl});
oktaSignIn.renderEl(...)
Works fine for us when rendering the widget for the first time, but after the user logs in and logs out again, the webapp renders the login compone... |
bd8166d56f3ef458841f0ee60c9cc036cb571902094cc9ab581cef0fed4a0c86 | ['37487b8c27eb43c99138728e35f0b2f6'] | Sim, mas tem algo estranho quando <PERSON> import dash ele importa mas quando <PERSON> import dash_core_components ele da erro e fala "Dash was not successfully imported. Make sure you don't have a file named
'dash.py' in your current directory.
An exception has occurred, use %tb to see the full traceback." | 89fdae684c76818988c35ebe5d10877da8955c64bc88cb332105d60bc358051e | ['37487b8c27eb43c99138728e35f0b2f6'] | Just some context: $R\underbrace{(3,3,3, \ldots,3)}_\text{$k$ times}\leq n$, means that any colouring of a complete graph, $k_n$, on $n$ vertices or more with $k$ colours must contain a monochromatic triangle.
Claim: $R\underbrace{(3,3,3, \ldots,3)}_\text{$k$ times} \leq 3k!$
Proof:
Consider the minimum number of mono... |
582f9ebb7b7ce6e40cafeaa20257cac0e8b69e15cabac0aae67049e6b1dcf373 | ['3755a688eb2141e2b28adbd1b939781d'] | As far as I'm concerned, there is no question like this. I'm working on a NLP and sentiment analysis project in Kaggle and first of all I'm preparing my data.
The dataframe is a text column followed by a number from 0 to 9 which categorizes which cluster does the row (the document) belongs.
I'm using TF-IDF Vectorizer... | 11221465a07d217421f77f9f97bf1190f3ba564de805c94cabf347509991251a | ['3755a688eb2141e2b28adbd1b939781d'] | This is my first time using bash in college and it's being pretty hard now.
The exercise is:
Make a shell script which receives by parameter one word and a file list and adds the word in the beggining and ending of each file
So far what I've done is this:
#!bin/bash
word=$1;
i=2;
j=2;
for [ i -le $# ] in ls
do
... |
7ddc9008bf14e6b1267071a545830d4c672d8811ea098121acbb95ff0dfab29c | ['3758b41596f84b4a87f7f73b13cf23fb'] | I'm having trouble within an IOS swift application trying to get bluetooth RSSI signal strength from the peripheral. I've been trying to use readRSSI() (see code below) which returns a Future, but I've so far been unable to map that Future into another usable variable such as an Int or String. I'm new to Swift, so not ... | 05425ac92ef7a7358beac4706eb2246b40e6f3bc31f90d5960916763fb08b3a8 | ['3758b41596f84b4a87f7f73b13cf23fb'] | I have been able to use the getSymbols function to draw financial data from the default source (yahoo) successfully from within RStudio. When I tried to run this in a script from the command line, this fails and returns no data. The same when I manually enter the command from the command line.
Code:
library(quantmod)
a... |
dec7a4922d1b66e8b468de3a967b2f1764aeac119f18955748d7f2043c5c47eb | ['37591e2125fd443da32bfda811c5f3b4'] | I am building a set of chart displays, one of which is for a month display of daily trading - that is, one point of data per day (closing).
Since there is no trade during weekends and holidays, I need to discard these data points. Not only that, but data points should still appear adjacent to each other, regardless of ... | 627095aa4af003317f8b81db15da43bd2d68c8a1b4c9ce7d5ac553c550d078e0 | ['37591e2125fd443da32bfda811c5f3b4'] | OK, so no one answered my question... Here is what I found out that works. Create a security group, add your users. On the Exchange server you want them to have access right click it while using the Exchange system manager and give this groups permissions in the security taps. I gave them everything but full control.
... |
b7cdaa95f2ff4863b27fae62a71b45617b11e6eda3f6adac57505010696945bc | ['376ad9ad2b4843ba818754d1f8c41b76'] | So your program must be something like this.
public class BooleanBug {
public static String bool(Boolean param) {
if ((null != param) && param.booleanValue() == true) {
return "a";
} else if ((null != param) && param.booleanValue() == false) {
return "b";
}
r... | 3fa7c944f3e7557a6fec1b2f7156985e5ab8e8ec8babd2ecd0a7c0d178f745c0 | ['376ad9ad2b4843ba818754d1f8c41b76'] | I am using web socket for push notifications. In my android application (client side) I use Autobahn web socket client. It works fine, but if you want reliable solution then I think you can go for Azure Push Notification Service. But I think you can only send/receive few push notifications using their free service. To ... |
87598305c655d83a989777f66c0948fd353c2e15e311aca4db4e73be087d6149 | ['376cae989bf5449ea21f5e1cc70f5c67'] | In case anyone comes across this - I figured out I just put the DispatchQueue blog into the wrong spot. Below you will find the adjusted code which works as intended.
func loadCategories() {
if let currentUserEmail = Auth.auth().currentUser?.email {
let docRef = db.collection(currentUserEmail).order(by: "... | ef986824107f3012ac8ce3dc57f268aca61dd84bfc489125adc15f0bd502c102 | ['376cae989bf5449ea21f5e1cc70f5c67'] | I've read now multiple threads on data retrieval from Firestore but I still haven't been able to find an answer and make this work -> making me open a new thread.
I'm trying to get the count of documents in a subcollection of a collection of Categories to display onto a detailTextlabel in Tableview. The data retrieval... |
0a2865ada56d3496466156fd84afe691e8dcd9df071cd84422254b80d9c2575d | ['377096242a83494380caaccc755bfdc6'] | I'm making a quiz app in Django. It is a MCQ type of quiz app where users have to select the answer from a list of multiple answers.
Now, in my models.py there are three models:
Quiz
Question
Answer
Where Quiz model defines the type of quiz (For example Basic, Intermediate, Advance), Question model has a ForeignKey... | 3c5fbe6e892756b42ff263427bfa34d3e62abf4bfc63fc86de149e6d87c58184 | ['377096242a83494380caaccc755bfdc6'] | I have added a screenshot of how my html template looks in the browser. I'm not getting a dropdown in my form for Name label. I am getting the desired output(dropdown) in my model. I have already gone through the official documentation of Django, but was not able to find a solution. I am new to Django.what should I do?... |
9d730a2f65533feb4f4925efc6eee2acb6216f77913659ba6f9d632e462cd0b9 | ['37718eaef3b04e39aa425e1613015dea'] | I am working on a feature in which I am proving the excel dump to the user. When user downloads the excel sheet it works fine. the moment user tries open with Microsoft Excel it gives me an error "Excel cant open the file because the file format or the extension is not valid" This is happening only in firefox browser, ... | 0e28dfbc8f84b27465e195d41d4ea698880cb3681b82fed650297b3c9d7118d8 | ['37718eaef3b04e39aa425e1613015dea'] | I have removed the code deploy agent from one of the ec2 instance in region: us-west-2 using the command:
sudo dpkg -r codedeploy-agent
as mentioned in the doc http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-run-agent.html#how-to-verify-agent-version-ubuntu
To reinstall I copied the install from the s3 ... |
35a805b81b912e2ff8e13ed6e78a1cc4c1a2bd08b65627434f62240bf1dde898 | ['377f3d7604cb47f19b6bf0249c4a9e8e'] | I have a standard HTML form that submits login data to a server, but I would also like to submit the users geolocation from javascript.I use the geolocation code from another stackoverflow question:
window.onload = function(){
if(navigator.geolocation)
navigator.geolocation.getCurrentPosition(handlesucces, onError)... | f8b5e5ae8ebe88991df8a0cdd55bdda082d9a277f034dd18c1f2e4de30b165c0 | ['377f3d7604cb47f19b6bf0249c4a9e8e'] | I have an array that I want to loop through. Using:
echo count($places);
I get a value of 2. Similar print_r the array gives 2 items.
However, when i run a for loop it seems to go through 4 iterations. This can be seen by adding echo $i to the loop, which produces an output of 0,1,2,3.
This is my code:
function enric... |
0f1cf8aaadf3e5c2d61ae391950325a357dfdade96b0ee752d4c9ee30394b42a | ['37865194ba514fe691ea17ad1eb1b827'] | SampleClient.java - does all the client stuff
package sampleclient;
import java.io.*;
import java.net.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class SampleClient extends JFrame{
private JTextField userText;
private JTextArea chatWindow;
private ObjectOutputStream user;
private Obje... | 997a22ee3de43108c1584302edb2bb58f6ebca05884e885521f2183605e0ce29 | ['37865194ba514fe691ea17ad1eb1b827'] | What our code does right now is there are clients and one server, and the clients can send their messages through the server. The problem is, we need to do client-client, so the client's message must go directly to the other client's chat box. We can only see what they are talking about in the server chatbox not in the... |
7c13908504b7e55591c6c39bb02aee8ee9cbfbb95982c86e959640876977fb8e | ['379148df0e2544709c3ed34ff9ccea01'] | Service Proxy does not handle the Actor references like Actor Proxy does. Services stack is independent of the actor and does not have knowledge of the actor references. Instead of passing the actor interface, you can pass the actor reference (https://msdn.microsoft.com/en-us/library/azure/microsoft.servicefabric.actor... | e97b8930f322d48da02602504225401c043a582a3b7cac6a765544e0653ceb57 | ['379148df0e2544709c3ed34ff9ccea01'] | ActorProxy and ServiceProxy today works best for connecting to actors and services within the cluster. You can expose a stateless service with -1 instance count that can accept the user requests and then use Actor and Service remoting to connect to the actor service within the cluster. In the future release we may offe... |
f62329b850db27b618af65a7a2208d7c286567d42ee61e4b1cbf953b89511872 | ['37b00aaa733c4f5aaef6fffa93c27e35'] | I am stumbling over exact same situation, usung KUbuntu 11.04.
(And me once was used emacs, not vim. So looking at those 3split console was surprising for me, too.)
Now I did hg rollback and installed me merger gui tool KDiff3 .
Then looking into "howto get this gui merger tool activated within the hg merge?"
hg help ... | a67a102cee68c3bc660058d2ba1006fca9e3a7bc404494f56552b86e3b0c2132 | ['37b00aaa733c4f5aaef6fffa93c27e35'] | I think it's worth mentioning you are using python2.
#!/usr/bin/env python2
j = {'a': 1.0}
k = {'c': 3.0}
p = {'e': j, 'f': k}
for v in p.itervalues():
print "v before inplace updates:", v
for k, v_inside in v.items():
print "v[k] before inplace change", v[k]
v[k] = {key: value / 3.0 for key, va... |
7dc60f16bebea10a3446af78ce9e268c195ad94bfc27429bc4422ebf5b54f512 | ['37b24abe6d2149a5832249b6a64d4d3b'] | I need to build an application which will have an admin area where admin can create forms and assign validation rules. I can use either laravel or cakephp for this application.
What is the best way to do this? Should I create tables and models separately for each admin created form or should I use a master table to st... | e2c850ab6543078075881ca7999ed20e6e1fb54dcf46b4bef4a5218d4d696e30 | ['37b24abe6d2149a5832249b6a64d4d3b'] | I had faced a similar problem. It's possible to save the flann index to disk in OpenCV, but EmguCV doesn't wrap all the functions of OpenCV. The save() and load() functions of Index class are missing in EmguCV.
The solution is to download the EmguCV source code from GIT repository, add the missing functions to it and t... |
99bc07d702cca3d12a4ad35dfb1d147dc23dc03d200ff13b88e08976b9704995 | ['37be8cbeff0c4ac4bbbc26f71189c81f'] | I have three verbs that describe your friend's feeling or attitude:
disparage: (vt) regard or represent as being of little worth.
Disparage is most commonly used to refer to how someone speaks or writes of something, but it does include the thought or feeling as well.
undervalue: (vt) rate (something) insufficiently h... | 75f2f2becfdbfc3efe67b5abd33a1a5e6ec7864dbdb7c217875e4dbc0b8dddea | ['37be8cbeff0c4ac4bbbc26f71189c81f'] | You've indicated three general meanings that might apply to some, but not all, of the more specific meanings I listed in the initial question (how to account for "possibly," "quite or very," and "directly"?). Also, I find it interesting that two of the general ideas you've indicated contradict each other: "neither more... |
fbdd46e980e2005dab451a96c95643fe5e1a3165e30475a401c6bdbd387a0d76 | ['37d1a5cfaf7943d7927b025fee984bed'] | Im using page with RadAjaxManager and RadComboBox on it.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
DefaultLoadingPanelID="RadAjaxLoadingPanel1" EnablePageHeadUpdate="False">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="_Partners" >
<UpdatedControls>
... | 7b157636a6bbb9d7ed5b32b81b47fcd8ab3d188ef83cfd420c20ed1fe69ae20b | ['37d1a5cfaf7943d7927b025fee984bed'] | I'm developing add-in for Outlook 2013,I'm struggling with PR_INTERNET_MESSAGE_ID , I could easily get PR_INTERNET_MESSAGE_ID on archiving incoming mails, but it returns nothing on sending mail.
Any help would be appreciated!
Thank you!
here is my code
string PR_INTERNET_MESSAGE_ID = "http://schemas.microsoft.com/ma... |
afd45ce76e053d2c5049fbe04c3269588528fd0aa158cd92410737ccde906adf | ['37d528f1ec554220b9364f8e056f910d'] | Yes.
Sencha touch can be used to develop on all three platforms.
The same application can be built into multiple platforms using cordova/phonegap. Using sencha touch, we can maintain a single code base and multiple apps .
And yes, you can package and publish it to windows store to run it as a windows application.
Abhi... | c840e96ac2698888467a224d57753507284bd6b95b7415d0a3a84dcf8b9b768c | ['37d528f1ec554220b9364f8e056f910d'] | I want to check form the javascript if a browser's auto-update is enabled.
The reason I want this is that our software supports only a set of Browser versions and we want to alert them if auto-update is on.
Is there any way we can do this?
<PERSON>
|
98b5716e4a8e33e93ca5029216f2be24a88a9f5a4a8eb891c899fa9ad207351f | ['37e1a4092c724272938b979186cbbf3c'] | This is boolean that check service is running or not.
I can't use this in onCreate.
CODE:
private boolean isMyServiceRunning() {
ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {
if (... | 3a0bac0c273d212c8da75141c7b63b91b4655cab7bb066f3124ae2450004a989 | ['37e1a4092c724272938b979186cbbf3c'] | I am working on a download project.I want to pass a string value in activity to anywhere in same Activity
My request: when I click the button,String str pass to DownloadFromURL class and get the string
Please help me
code:
public class FirstActivity extends Activity {
Button btnShow;
Intent i;
public static final in... |
d7d7198e985cfe5afd7378cefabb4b47a523a086092fa3f990263f1f9f250cd5 | ['37e9a476c2294a0da63c714796c0648b'] | I have a standalone application in Eclipse 4 RCP.
When exporting it as a product, as shown below:
The following structure is generated:
How to change the icon of the executable aplicacao.exe?
I already tried to put images in the Launching tab of the .product file, but without success.
| 634f6922ce5272bd1fd1452599ad70e905ea806d97cbb2c314a4e65849e5c410 | ['37e9a476c2294a0da63c714796c0648b'] | The indicatorStyle exists only in TopTabNavigator. See docs below:
Top tabBarOptions:
https://reactnavigation.org/docs/material-top-tab-navigator#tabbaroptions
Bottom tabBarOptions:
https://reactnavigation.org/docs/bottom-tab-navigator/#tabbaroptions
In the TopTabNavigator, the indicator line is displayed for default. ... |
7e85400b954f9feaa4c94162cd86942f42be3852cd7bb6389b0ce5256883899d | ['37f4503d3d064d5b96dfa18e85260442'] | I see how you get -7 + j17 by distribution. Why don't we get the same result when we pass through polar form though? When two polar form phasors are multiplied, we multiply their magnitude and add their angles. Why isn't this working here? I feel like I'm missing something very basic here. | fee406a615f07a4cdf5250409c302338ee989b2cf7cf3648b0f021b7e6f58b14 | ['37f4503d3d064d5b96dfa18e85260442'] | What I can add after some more reading and thinking, is that "image, providing maximum activations for a neiron" implies that the net (by means of backpropagation) will try to go through most efficient way and even through several ways in parallel if possible.
Convolution of previous layer's neirons recognizing eye, ... |
acf9c1712b97fee4c2d8379ecef41e324e724e5e76e2e6619e4ec2e4f4d8aabf | ['37f61a2e8bd643bd82172d518f331449'] | I want to make a dropdown menu with the following options. I want be able to select a select multiple value for option A, B, and C, but disable multiple selection if option D is selected. How can I do that? Thanks.
<label>Choose an option:</label>
<select required multiple>
<option>Please select</option>
<op... | adf96a4da66100d3841bd89663d26703a6c1a4677578903e8b237bed3c69229a | ['37f61a2e8bd643bd82172d518f331449'] | I have a dropdownlist with data loaded from MySQL database. The data.list was the list of data produced by a SQL query in node.js. Each record has a ID and a name. I want to set a default selection where the selected name is "<PERSON>". The code below generates a dropdown where all options are selected instead of the o... |
38e9a1e40d5e281512383eadcaf4a5401b594de5ff2311aa75765ecde6ef35b6 | ['38075be0b70a444bacce2ab452d989df'] | I am working on a basic code - my aim is to use gender_guesser.detector to find the gender for rows in a dataframe where the imported file (from CSV) would be missing those values. For simplicity, I just created a dummy dataframe in the code below.
I am pretty new to Python and very much in the learning phase so I assu... | 915ff49cac49f553f31c06eeb92f1d1d4f508cafc1437decc9162eabefd37e0e | ['38075be0b70a444bacce2ab452d989df'] | I am trying to create a summary table from a dataframe that looks like below example. The columns have a set list of unique values.
tdf = pd.DataFrame({"A": ["ind1", "ind2", "ind1", "ind3", "ind3", "ind1", "ind1"],
"B": ["ind3", "ind1", "ind3", "ind1", "ind1","ind3", "ind2"],
"C": ... |
e84722c383e35a014a5f7b0615273d6bda88de38e411cdad3fbb19a8cf4b4725 | ['3819857a923641108ad4feb98f35e478'] | strtok() stores the pointer in static variable where did you last time left off , so on its 2nd call , when we pass the null , strtok() gets the pointer from the static variable .
If you provide the same string name , it again starts from beginning.
Moreover strtok() is destructive i.e. it make changes to the orignal s... | 2146748ead4656689e4e77167c5feab45445b40f62c3e4b0fe617b85e2022862 | ['3819857a923641108ad4feb98f35e478'] | strtok() stores the pointer in static variable where did you last time left off , so on its 2nd call , when we pass the null , strtok() gets the pointer from the static variable .
If you provide the same string name , it again starts from beginning.
Moreover strtok() is destructive i.e. it make changes to the orignal ... |
8b3cc3812dbac3e12c09b7386a903a5c6eb6fbcd2109253f9d3ede4f037ef834 | ['38302f2de5344027a103778b6b8ef925'] | try {
String[] tab = null;
String line = null;
tab = line.split("-");
int countLoss = Integer.parseInt(tab[3]+plusLoss);
int countWin = Integer.parseInt(tab[2]+plusWin);
int countTie = Integer.parseInt(tab[4]+plusTie);
BufferedReader br = new BufferedReader(new F... | e27feddb851b3f4c0c50e917b86a5af136b8f261d5c4ea681702ffcf4ac36cb1 | ['38302f2de5344027a103778b6b8ef925'] | #NoEnv
#SingleInstance force
#Persistent
SetTimer, CheckIdle, 5000
CheckIdle:
If ( A_TimeIdle > 15000 ) {
ControlSend,, {space}, WindowTitle
}
Return
This is my code and I'm sure I got everything correct, but it seems to send the keystrokes every 5 seconds, which is the interval set in the timer.
It's... |
fdb104dfae10593769473cf9aac89614888c9f7e11125c53cfb14aeb3f02ea4c | ['3834d8d6401c4a4b8c8511ffbfbaed75'] | The NewSeries command returns the new series. Even though Add states that it returns a series that it adds to the collection it does not. The documentation may be what is causing your confusion here. Check out this MSDN article on the subject: http://msdn.microsoft.com/en-us/library/ff194065.aspx
| 53412273f2f0cced6158c8e63cc2027380cf91147072c340e56ea471a7d788aa | ['3834d8d6401c4a4b8c8511ffbfbaed75'] | The easiest way that I've seen to do encryption is through RSA
Check out the MSDN on it: http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsacryptoserviceprovider.aspx
It does involve using bytes, but when it comes down to it you kind of do want encryption and decryption to be tough to figure out ot... |
f2ca6cbc4c866eb46d263729a3363b17d5ce96a6636291e86d375e2e67b95eb2 | ['383c52f2c4664d759548c1b76301b9b5'] | I have a form my drivers complete where part of the form is related to fueling. There is a possibility of 6 separate fuel stops. Each fuel stop line has input where gallons and cost are also included. By default the Cost and Gallons purchased cost is set to $0.00.
My reason for asking assistance:
Occasionally the drive... | 0a14fa4ccbe20a7706f3876f4c91f515a05078d51348b79bf9e7b57bf7fbfb2b | ['383c52f2c4664d759548c1b76301b9b5'] | I have a group of radio buttons (3) that populates the correct one for each record based on the input of the Database.
The Data column it reads will have only one of three values: 'SLSC', 'SLDC', 'DLDC'.
Based on that, one radio button of the three options will be checked on the record. This worked fine until I changed... |
e2055bd803d8dbed9dfe6495b5993b368234bcf3dabf60a71a9e6521f5f661a1 | ['383fdb2a2abd4f579d84bc55802dd7f3'] | I have a WordPress Website that currently uses its own authentication.
I am building a new web app on React which would be on its sub-domain.
I will be using AWS Cognito for authentication.
Now I want to enable a single sign-on between the Wordpress site and the React App via Cognito.
i.e user logs in to the Wordpress ... | 7c6812bc913e8df869ea078de7512a41f330bd1c2e979ad73af2a3627f59a1da | ['383fdb2a2abd4f579d84bc55802dd7f3'] | When the node server is running locally, this seems to work fine.
But when then code is deployed on ec2 instance, I get:
"User: arn:aws:sts<IP_ADDRESS>XXXX:assumed-role/aws-elasticbeanstalk-ec2-role/i-XXX is not authorized to perform: cognito-idp:AdminDeleteUser on resource: arn:aws:cognito-idp:ap-south-1:XXXX:userpool... |
9fd801774aae6530679588c48a4c5a896e2917fdf05d4bd0789be91660aaf2ea | ['38480790716f48ed8f572c0363ca2f25'] | I would like to read an image and then change its format but without saving it.
For example I can read the image like this
BufferedImage img=ImageIO.read(new File(fileName));
Then I want to change the format of img, for example from jpeg to png.
The only way I found is to use ImageIO.read to write and then read the new... | 38cfd66b839ec484a6ff7f034447420f88d947cf8875b6eb3518cce4f2393e5d | ['38480790716f48ed8f572c0363ca2f25'] | All implementation of <PERSON>'s algorithms I have seen do not have a recursive function, but I have also read that by definition dynamic programming is an algorithm with a recursive function and "memory" of things already calculated.
So is <PERSON>'s algorithm with a loop qualified as dynamic programming?Or in order t... |
3417a0146e52b9b21d5de83dacdabbdc404b13cba8fc67dee31a9a397ac48c44 | ['385fe459e7304829ae100fe7398344cc'] | The question is to find the general solution in integers $x,y,z$ to $$2x+3y+5z=7$$ where none of $x,y$ or $z$ are divisible by $7$.
Without the divisible by $7$ condition I found that the general solution is $$(x,y,z)=(3t+5z-7,7-5z-2t,z)$$ where $t,z$ are arbitrary integers. I have no idea how to deal with the conditio... | 7dbb336d00d64116dd50e11397075a1eab4c5d0e4177916f4c62523cee0a2679 | ['385fe459e7304829ae100fe7398344cc'] | DON'T "READ THIS" by Robert. READ THIS: Maybe it's because above answers are 5 years old, but with most new wireless routers, the correct setup is very different and much easier! I tried the above solutions but they did not work correctly. What worked was an expanded version of this: http://www.linksys.com/us/support-a... |
111517bf5c75e80b98111087e2e2d9874107ea7c2eafbf8aeb818781c9e5e0fa | ['386f20f204404e369bdac25ead750995'] | There are many adaptations of Pranayama. @ Uday it is wrong to say there is only one form of Pranayama. The basics are the same - inhale deeply, hold for a while and exhale. The most common forms are inhaling and exhaling through alternate nostrils. Brammari Pranyama is another common form wherein the exercise is done ... | 6e25f7b19e2caea15c1eafc072725ebe713fa41c594ecc2ebec6d311eb682cca | ['386f20f204404e369bdac25ead750995'] | An interesting aside - in Zorastrianism - Good and God is Asura and the evil Deivas. Their Gor is <PERSON> - Parsee (Farsi) does not have the alphabet 'sa' instead they use 'ha' - so is God then an Asura? and now the query about how deities called 'Asuras' in rig Veda became Demons!!!! Interesting! |
9b0aae0f1a9d11927f039da71af8422c58872d9eae12f43bfa7cfacfb98c9728 | ['386f68078ed541e78c41282ba90ba749'] | I have a Company model and I want to update the Company record and save a list of phone numbers all at once. There is a 1-* relationship.
My ViewModel looks like:
public class CompanyRegisterViewModel
{
public int CompanyId { get; set; }
public int CompanyTypeId { get; set; }
public IEnumerable<SelectLis... | 9505ab9630ad7af4d554032f76fa6c79326e55682011f57b27178c274d4b6686 | ['386f68078ed541e78c41282ba90ba749'] | I figured it out. I was setting the defaultPageSize in the wrong constructor, so the variable was never getting set, causing the page size to be 0.
int defaultPageSize;
private IInventoryRepository inventoryRepository;
public InventoryController()
{
this.inventoryRepository = new InventoryRepo... |
e54cc5fad48431ef14847811f1fbda9ed6ea6a31fc0fd6bc116f4783c65b6410 | ['3873bb16ed4145b9a01bcb374557c44b'] | Lets say I malloc some struct inside a kernel where I performed some calculation upon. I then want to return these variable, however they were not sent in as pointers when I initialized the kernel,So If I want to return these value. How would I go about doing so? Sample codes below.
I am only asking this as a general q... | 318b9f232330b0721e6442456f849c6c2c57c1d6308277ec71b0df4a77036baa | ['3873bb16ed4145b9a01bcb374557c44b'] | Basically I'm working on this beat detection algorithm, the strange thing i am encountering right now is that when i split the work load on to another thread. So now i have one main thread and another worker thread. My worker thread somehow is always working faster than the main thread. It seems strange because what i ... |
7c988699cbb813cb99618b60d3e16e20250861e2ed78ae32b79a12c0420b93ea | ['387cb357399242d2aa0269f5a3320863'] | I have a function (written in Swift) and I would like to get the LLVM IR for the function PLUS any dependencies so that I can run the resulting LLVM IR in a fully self-contained environment.
As an example, consider the following function:
func plus(a: Int, b: Int) ->Int {
return a + b
}
plus(5, 7)
I can pass the ... | d0a1b887c349d8c540166f5ed29da1e2341d8ed976d1340df04a094c0a27994f | ['387cb357399242d2aa0269f5a3320863'] | I'm trying to compile a function ("fun") to LLVM IR and create a Module using the ParseIR function. The program segfaults at the call to ParseIR. I'm using LLVM 3.5 and the code is below.
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include "llvm/ADT/StringRef.h"
#include "llvm/Bitcode/... |
0abbd0707510a079dbe121d1b9b25ddd2e11b46374d121546ee35fdd9888f064 | ['38828663f37440529f3d60885f47c0b8'] | So I did some further digging, and was able to come to the conclusion that the problem IS NOT with Ghostscript. It was that the PictureBox in my application was still holding the .jpg file in memory. Oddly enough, I assumed setting the PictureBox.src to "Nothing" would release the file, but that didn't work. After doin... | 6a0eef7efc0c514ecdaf1aeedbed731ff44ca595f7970534bc9ca81ebb7662fb | ['38828663f37440529f3d60885f47c0b8'] | I had accidentally left my DestinationPath blank for the 2nd and 3rd lines of the excel sheet. That was what was giving me just the "\" as the destination path. Seems to be working properly now.
As someone mentioned below in one of the comments, stepping through my code in the debugger was extremely helpful to solving ... |
da534304c5975a3f5e6f1a1210e0e4beaf41f237f91b5922b666e80ff314e14b | ['388878e79daa4eb1b22fa04a5f6e461f'] | I'm trying to "variance-normalize" an image. In order to do so, I subtract the mean from the pixel value (to have a $0$ mean), and divide by the standard deviation (to have a unit variance) right? But I've also seen division by the standard deviation, since it's obviously not the same, what does it do?
I'm also a bit c... | 8f67922168ba4c695f4aaace139e0242ee3f8fb4b5674dcf1c953a33ec2b76cb | ['388878e79daa4eb1b22fa04a5f6e461f'] | @TheLearner: Also important is how to deal with bottlenecks. I personally never blame slowdown on individuals. Instead I assign more resource to the bottleneck - maybe they need someone else to help them, maybe they can't reproduce a problem if all else fail I personally go and pair with the person working on the bottl... |
66424f7217979c994bda09eb04af0c89ccd80860b943828754d22704134a76ca | ['388cb168bf6344c594422d297587f1b5'] | meanwhile there are quite a few libraries that support Pdf generation. You'll find a good overview in <PERSON> Blog.
However, I ran into issues when I was trying to annotate existing Pdfs. The existing libraries capable of (transparent) annotations are quite pricy. Therefore, I ended up annotating the Pdf on the server... | 63f2bd672203798a383e7d8e264ed10f2520d3107ab61ec13fcdc4eda8d56696 | ['388cb168bf6344c594422d297587f1b5'] | While Deskmetrix seems quite nice, I ended up using Tapstream because it's free and Deskmetrix is pretty expensive.
Since Tapstream's main focus is evaluating advertisement campaigns its analytics feature is rather poor (compared to Flurry for instance). However, they allow custom event tracking.
When developing Mils, ... |
746764a6e9898755c23a5345b762134bf41287e64c8a711c169f8fbc660f94c2 | ['389118924ff34ef4a1145fc45d39275a'] | how to show start date and end date in date picker and select them to perform some event in iPhone
NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar];
// Get the current date
NSDate *pickerDate = [self.datePicker date];
NSDateComponents *dateComponents = [calendar components:( NSYearCalendarUnit | NSMo... | 8f0cd9a8f9ae65057861c43333bed588a52c90fc7da876df1a785e9613f2a624 | ['389118924ff34ef4a1145fc45d39275a'] | I am fetching data form JSON and storing that data in 10 differnet NSMutable Arrays .I want to show that data in 10 sections of the tableview so how to do this
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
// Return the number of rows in the section.
//return categories.cou... |
034982adc92e87d2aba506022f7dc3a9c993298422ec4db23ad08fd9331a726f | ['38b1a640f5a44397967119f01f331330'] | Yes, I have no direct access to the server console. I'm waiting for physical access, but that might take a week or more. The $TARGET_MAC is indeed the expected MAC. I'll add this info to the question. I'm not entirely sure about the L3 layer though. In terms of arping it looks like there is none and other admins told m... | 807e358bb6c6fdf450f256361e6a6ffd1b2f96d57e81298e787c5ca01aed6189 | ['38b1a640f5a44397967119f01f331330'] | 1) Yes, assuming the drives have compatible sizes (see 3) )
2) none of the drives is the "main" drive, they mirror each other
3) Even if your system automatically rebuilds an array if possible, beware that "1 TB" disk is actually a vendor-dependent term. Depending on your setup, the initial process may have claimed all... |
5890c61e039c37f56d4da7b944425fdfeb4015b16e1df53152c7a47e8cc5d5ed | ['38b6935f37b945f5ad23f22697135792'] | I'm trying to produce a report using r markdown that I can toggle between color and black and white. I've created a set of graphs using ggplot and saved them to objects, with a color and black and white version of each. To toggle the report I've created separate variables.
color <- 1
bw <- 0
In the code chunks for my... | 17991b94d3ae257c4f7b1da3e6c4027953f6a2fd9a6920c6688eee6dea7dad34 | ['38b6935f37b945f5ad23f22697135792'] | I'm creating a bunch of graphs that I want to share a theme, for consistency because who doesnt love consistency.
All of my theme() elements are holding except for legend.position, and I'm all out of ideas.
The gist is as follows:
I want a theme that I can add to all of my graphs to give them the same formatting. There... |
af8e2f5cd498711dab4d8024490e2d4e76075d602c8d47e6419d1d2d1e10aa39 | ['38bb1c60dcec4d48ace4bbeb715c474e'] | I have strange issue with my animation - when
I shoot the enemy It should explode. And the animation is beeing done properly just one time.
Each next one has less frames. I have no idea why. Could someone help ?
Thanks in advance
I set the framespeed on 1 to make problem more visible.
http://jsfiddle.net/pza6eeos/
... | 8f914905e3227114080c798023c8378c51a593906d79ce99bc76e331149c49b5 | ['38bb1c60dcec4d48ace4bbeb715c474e'] | I would like to put my JSON data (which I succesfully get) into events in FullCalendar Plugin, but unfortunetly It doesnt work for me...
$('#calendar').fullCalendar({
events: function (start, end, timezone, callback) {
$.getJSON("http://localhost:3000/test/2014-09-09", function (data, stat) {
... |
09af6360f130f27d938aa28c00d8e0d6948c4b39099127c6391bb924ad05c154 | ['38bc0c79422c4abdba7190fddac49dbd'] | I have a stack implementation that uses an array and i am trying to convert it to an array list. The array is top and arrayList is on bottom. Do these 2 segments of code do the same thing? I also have two segments of a pop method one array and one array list. But for this one i get an error that temp has not been initi... | 09812d7abff7b7ee2812df62dd1405d76e5b1aa523c82f76a72e25a89556cdc9 | ['38bc0c79422c4abdba7190fddac49dbd'] | This is the top portion of my ArrayListStack class. I am trying to make values become an array list of T of 10. I am getting an error "incompatible types required: ArrayListStack found:java.util.ArrayList". In the line values = new ArrayList(10)". How would i properly set this value thanks
import java.util.ArrayLi... |
0590bcb045304600942e5ed76166cfc06620d8260085d5afcddc4869c1e97569 | ['38ccc96403be4778991a1503918cdea2'] | Прямо в конфигурации можно задать по умолачнию, так как у вас в примере
'authTimeout' => '30', //секунды
Если вы хотите брать это значение из базы, единственный способ делать это после создания приложения, например в методе login
public function login()
{
if ($this->validate()) {
// Устанавлив... | ace48ea8cff453b2b85d4566dc5602732e37329b05be12b342401a37857cc183 | ['38ccc96403be4778991a1503918cdea2'] | I'm pretty much a newbie when it comes to any kind of complex networking, so basically yes? What I want is routing table's last line to look like this: ``<IP_ADDRESS> <IP_ADDRESS> <IP_ADDRESS><PHONE_NUMBER> <PHONE_NUMBER> 255.255.255.252``, am I just not understanding how this works? |
34be34c7dc685ff82f6942dd7815f96bc270c6a9df14e7e7e1f3cc8d2a729693 | ['38edb466421f4bb69bf30bb9da8ca6e4'] | Like <PERSON> said my model configuration is wrong.
if you have more than 1 column as key you should set them on contexts OnModelCreating method like modelBuilder.Entity<KullaniciYetkiView>().HasKey(ky => new { ky.KullaniciId, ky.LokasyonId, ky.YetkiId });
Here is the HasKey method explanation. http://msdn.microsoft.c... | 5e9a21960949b8c068a7b422393ef9eb51b7043f5296ee03ebf28b8ed99d4f5c | ['38edb466421f4bb69bf30bb9da8ca6e4'] | I think the date format in string is not proper. the reason of works in SQL Server Management Studio and not works in .Net can be the connections languge.
first select works but secend gives same exeption
SET LANGUAGE us_english
select CAST('12.18.2012' as datetime)
SET LANGUAGE turkish
select CAST('12.18.2012' as dat... |
6c41a836bf4dabf264911ec971a4e8117d7aad7473f5ea48f74f1d5b35accc8b | ['38f25be558884ebc943c0ba1f26d8ae1'] | Suppose you have fa0 as WAN
ip access-list extended WAN_ACL_IN
remark --- These are outgoing DNS queries.
permit udp any eq domain any gt 1023
remark --- Permit legitimate business traffic.
permit tcp any any established
permit udp any range 1 1023 any gt 1023
remark --- Deny all other DNS traffic.
deny... | 55b4148f80a29a86a7700aa290a53f99ae8f1dff8a1432c9ecee5f3baf58309d | ['38f25be558884ebc943c0ba1f26d8ae1'] | Note: I have zero technical knowledge about Android or custom roms or root etc.
Am using Moto G5 plus (4bg) and I play games like PES 2019 and pubgm a lot.
Now my device runs these games with some lags but playable,but in order to get competitive edge I need to get more fps,that's why am considering ways to improve pe... |
54d9b2ed25b6c42dfb4c0eec60acc3b65a6d75b5a9202a2cb0bba2d472ab194b | ['38f3d4bdc687468081ddf5864003d054'] | Yes, but it is not a documented feature. You can use Games.Leaderboards.loadTopScores to get top scores. When you have a LeaderboardScore object you can use score.getScoreHolder().getPlayerId() to get his Google+ id. Then open https://plus.google.com/PUT_ID_HERE/posts and you can contact that player via Hangouts.
| a94b6fbf8b21b267a3f08e6631cc98bdf88df68269aca1b5c64e7377f106790d | ['38f3d4bdc687468081ddf5864003d054'] | It is an old question, but I met the same problem, so probably it is worth posting my answer. You tried to add your certificate to KeyStore.getInstance("AndroidCAStore"), but got an exception. Actually you should have done the opposite - add entries from that keystore to the one you created.
My code is a bit different... |
46b9da8553c32fd5311c0796c152930dde2cae767896f93ca63611b6f1224495 | ['38f54c2264ec4fcaa907ffb088ee3e4a'] | I'm trying to register a chrome app to get a registration id so I test but the chrome javascript console is showing:
Uncaught TypeError: Cannot read property 'register' of undefined
I don't know what's wrong. I got the example from: https://github.com/GoogleChrome/chrome-app-samples#push-messaging
| 53df029332ed8ed77a3049d9f37b13fa2ed185bd21def5b82490ccb942e3ba87 | ['38f54c2264ec4fcaa907ffb088ee3e4a'] | I'm using Android Studio 2.2 Beta and trying to pull down the latest firebase libraries for cloud messinging but keeps running into errors.
failed to resolve:
com.google.firebase:firebase-core:9.4.0
Any ideas what I need to do? I have Android SDK 6 and 7, Tools (Preview Channel), and Tools (Rev. 23, 24, 25) install... |
5d617cc0f3a2d1b8ea7768340c9beac6f34ae5ed30f1fc87b092e694daf31cdf | ['38f63f7ba97b4f47ae4830ff2d7a933d'] | Установил и запускаю apache на windows10, уже полностью его настроил. Но, он не хочет запускаться и не выдаёт никаких ошибок.
Всё что происходит после запуска - ничего:
c:\Server\bin\Apache24\bin>tasklist | find "8000"
c:\Server\bin\Apache24\bin>httpd.exe -k start
c:\Server\bin\Apache24\bin>
Пробовал на портах 80, 8... | fe9b28ba462c52338b312094c4e26a425a551513360282144e76b7de7bea4aa3 | ['38f63f7ba97b4f47ae4830ff2d7a933d'] | Мой вопрос заключался несколько в другом. При нажатии на кнопку отправки формы, данные из форм должны отправляться письмом на мою электронную почту. Но этого не происходит и пытаясь выяснить эту проблему я немного запутался. Сейчас я не понимаю почему при нажатии на кнопку считывается отправка метода POST, но данные не... |
71c982f9e45848722bfbeb0f6e7421f1b310c3b4b8d91542a8c9408a03f937e3 | ['39030ffdc32d4358a9558ab22628400c'] | i have a question. Is it possible to make my friend and other people access to a database in PostgreSQL to write in tables? If yes, how can i do that?
I'm connecting to my database through this string:
db = psycopg2.connect(
host = "192.168.1.xxx",
user = "Ripetra",
password = "MyPassword",
database = "... | fda09cc60769b4e06cdaa1d51f4de9b5eb435a1b4eba9e47979c4ca4d97ff4d7 | ['39030ffdc32d4358a9558ab22628400c'] | By far NONE answered my question, so i'm stuck here...
Basically i made a program (it's connected to my PostgreSQL database) which, depending on the user input, it will change tables contents in the database. It's a sort of Register/Login sistem. (click here if you want to see the script). When i run it on my pc (Windo... |
ff88103b0cb893db41fb138fb59466c926c7529625e44180eba45518645e485c | ['39054f49bbd047808e167f9f0365f393'] | No clue how to deal with this situation.
Recently start unit test with django.
In my project, i have a custom change_list.html to add a button on the admin page.
I'm looking for a unit test which can verify this custom button.
Here is my code in admin.py :
class LocationAdmin(OSMGeoAdmin):
def get_urls(self):
... | 6624019d75e25b59de018c5db6b69e29b118519ba258c888e8cf4591bb03b5ef | ['39054f49bbd047808e167f9f0365f393'] | Here is what i get from my router:debug :
listeAbo-page ANY ANY ANY /abonnements
Seems OK for me.
From @ar34z, i've tested to put the URL directly on my login form (/abonnements) and it works. It's the only link in the whole site which have a problem. I still doesn't understand why.
Than... |
c4d8e0106a8cb380444a5c30421b97b0449320f77fe753f006e913df488d8383 | ['3924428e2f5e41ddb6a6f042032b7322'] | As <PERSON> writes, there isn't any cross-platform tool to managed work items similar to witadmin or tfpt. Also, the TEE CLC uses the TFS SDK for Java but the CLC is packaged up in the download for convenience. There should not be a dependency between the plugin and the CLC.
| a7862dbbe2194cf4b11f691d693873c3cbc05d4e7c3fda335246a24762782f16 | ['3924428e2f5e41ddb6a6f042032b7322'] | I ran into this issue today and was pulling my hair out trying to figure out what the problem was. It worked during debugging but didn't after packaging and installing. To be a bit clearer, if I packaged on my dev box, installing would work as expected but if my CI machine (VSTS) built it, it wouldn't.
It turns out t... |
7186ca87ecf6c1f0a82b43efb4b7565a5449989d2904f051e24b05b106a7e8f2 | ['394cc88fd715456bbbbce2e8a65d8399'] | @Ramhound: I tried the Google DNS and Open DNS as well and tried to chanegt the preferred DNS Server. But when I reconnect after changin the settings, it defaults to 'Obtain DNS Server Automatically' and I am not able to check with the changed settings. I'll try on MacOS and let you know | bea905b5ca6b2fc2ca8b74727561500612ec3befb88d7b65f6e1d59a4b3389f0 | ['394cc88fd715456bbbbce2e8a65d8399'] | You won't be able to do that with only the current pagination widget: page 5 out of 10 may or may not be the middle.
But if you are sure page 5 is the middle then just select page 5 when initializing instantsearch.js, using searchParameters option.
If you cannot do that, what I would do is create a custom pagination wi... |
b9370016568cba68a7a848f1a88050f3015ab40c89a1b7142c06bdb29983aed0 | ['3962880ed5f940fcb523d1be43411cf0'] | I coded program when i press "back", finish application and stop all service.
But after finish, Android studio says application is not closed, and profiler still say app is not closed and using memory.
How can I release all memory and close application without System.exit(0) and android.os.Process.killProcess(android.o... | 9852a9b8cd77c97ee26d014b23abf21c6ff00742f5212cecc68a275864bb0340 | ['3962880ed5f940fcb523d1be43411cf0'] | Use String#split(String).
Split slice string to string array with parameter.
As example, "test test2 test3".split(" ") returns {"test","test2","test3"}.
See code below.
Java 7
public String search(String target){
for(String n : list){
String[] split = n.split(" ");
if(split[3].equals(target)){
return sp... |
36ebc5e11d58f64871485e14d2fd6588a4c83cf11f58205e86aaf6fa7189bc36 | ['3969b89b18d14688bfa3ba715b0929fd'] | I recommend to use one of two commonly methods. I describe how to make it with fetch object, on client and express framework on server.
1. Setting the token in the HttpOnly cookie
In server controller
module.exports.checkUser = (request, response) => {
const { token = null } = (/token=(?<token>[^;]*)/.exec(reques... | 747dc46842c089bfb38ba5fe2b990bb382f9d4d534722fbc6fd4ace847da2725 | ['3969b89b18d14688bfa3ba715b0929fd'] | I think error happened because variable allStudents is not a React object.
constructor() {
this.state = {
filterValue: ''
}
}
render() {
const students = [
{city: '', company: '', email: '', firstName: '', grades: '', id: '', lastName: '', pic: '', skill: ''}
] // <-- this is your array of... |
9bb5c6081f5e243feff36849c0b786b7360c266253cd1950113bc5478b040781 | ['3987d7aa64dd4bcdafa50d0e73809578'] | I was wondering if anyone was able to explain why All of my JSON is returning as Undefined.. The json is question is this
{"273746":[{"name":"Darius's Wizards","tier":"GOLD","queue":"RANKED_SOLO_5x5","entries":[{"playerOrTeamId":"273746","playerOrTeamName":"Magnanimous","division":"V","leaguePoints":0,"wins":19,"losses... | 2535fe941cf0633754e439ef1302ad906dc7e70d60091a9f092bb5a26dcf86c6 | ['3987d7aa64dd4bcdafa50d0e73809578'] | JSFIDDLE for testing http://jsfiddle.net/8dw09y59/
Hey guys, I've tried everything.. Could someone please explain why i continue to get the "uncaught referenceerror: summonerLookUp is undefined"
I've tried switching the function to windows.summonerLookUp = function() { , but thats hasn't changed anything either. I've t... |
73756dc2877310b7624ed5f8d1505175473cff531a6f4944ff705a745bfd4ea3 | ['39a4ea407ed141b282869968636ffbf8'] | So if I take the function f(x) = |x| + 1 and I reflect f(x) given its definition, it is not -f(x)? Sorry, I am a little confused as I was taught that vertical reflections are always symmetric about the x-axis. In this case, if f(x) = |x| + 1 and the reflected function is g(x) = -|x| + 1 then wouldn't that be a reflecti... | ed4fc74f97826a502676a800b71e61015338b61447071fd9bdde4f6fe560afc5 | ['39a4ea407ed141b282869968636ffbf8'] | Ok so basically when looking at a function such as f(x) = |x| + 1 and when I am told that there is a vertical reflection, the reflection is based on the base function, g(x) = |x| and not the whole function f(x) = |x| + 1 because then that would be looking at vertical symmetry in the x-axis and not reflection, correct? ... |
b10c6276e441ffcea9e09939a5a6b71d38676df731327269887d318707a21715 | ['39a75e3b8ecb4f179e6c89719d92e7c7'] | I've integrated this nice Facebook-Button to my WordPress site via iframe. Although I care for cross-browser-compatibility plus the fact I could not influence the iframe content in regular ways I'm wondering why this quirks when viewed in IE6.
Could I've done something wrong anyway or is it conceivable stuff quirks by ... | ebd744c947887498eb9ccb9c22745bca1803843adb7377f03e24573fe703a7d5 | ['39a75e3b8ecb4f179e6c89719d92e7c7'] | In my HTML-template I have placed a logo surrounded by an <a>-tag. My purpose with this is to refer to the homepage by using just as much TypoScript as realy necessary. I searched in TSref and official forums on that but just came across a solution already creating this link by using stdWrap which is exactly what I not... |
086e5a52d6e7e50f3c6f83cc426b4c0c07001c28076410e0c87b3bde154e514d | ['39ab126ce98a49479ed76a6c76fce102'] | So I have found a solution to the problem. It works very well but It seems a bit overkill for something as simple as clearing a field.
Maybe a javascript snippet is a cleaner solution?
Well enough with the ranting here is the solution:
Clear the form field in the "command" object (the form backing object) when there ... | 3b4d10056fa24c34b598c570ffe9ff8bf6df4ae2a134d54f87fe7e3fbaf20403 | ['39ab126ce98a49479ed76a6c76fce102'] | As the title implies I want to change the http status after an exception occured.
The short background is that to be able to show an error page I need to send a status code of 200 to the client. (On error status codes it dumps the data and shows a generic error popup)
To test this I have:
@RequestMapping(value= "... |
6496a227c843833fe303b8b6bd2edadfc0280d04ebea969ae6e20fef1dc20f80 | ['39ad1cf14c2a477ba659a91ee334aec2'] | It looks like the site is doing something with the User-Agent. If I change that property to match what my version of Firefox sends, I get the full response body. When I left the property as 'ruby', the response was incomplete. Not sure what the root cause is, but this seemed to alleviate the symptoms.
require 'rubyg... | d58af0880329f3384b6c3b05cbefa435077051652995c90b598ace467cb4c189 | ['39ad1cf14c2a477ba659a91ee334aec2'] | I'm not sure how you're loading the xml data, but in the past, I've gotten around the issue by appending a random number to the path of the xml file:
xml.load("data.xml?"+Math.random());
Basically, Flash will always think the file is a different URL. It won't be able to find a match in your cache.
Again, I'm not sure... |
8c44af23c2ef401be7f905d18529f96a47ad35a342bd16cb396184f4fb1f9491 | ['39b073767b9b4b37b9a1e587d092b39c'] | could you please use next setting in your .xib file (416 = 480 - 20 (width for status bar) - 44(width for nav bar)
if you want icon in the top on iPhone 5 use next setting for icons:
if you want icon in the bottom on iPhone 5 use next setting for icons:
| 7114092176618607410d5526630fe6116a85ac8f11b498f6b435ebd50300dad7 | ['39b073767b9b4b37b9a1e587d092b39c'] | I thin these code will help you:
NSArray *query = @"https://oauth.vk.com/blank.html#access_token=b1b33dfaa3&expires_in=86400&user_id=311515 ";
NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
for (NSString *param in [query componentsSeparatedByString:@"&"]) {
NSArray *parts = [param componentsSepar... |
94c7b8f451841700cf623dc5f68c526dd92b1c2ef8481fc1b860aeadc0f3bedc | ['39b9b570fe754ce5a8c5c8ab6f264fb7'] | Is there a library or cli program which is capable of dropping/extracting frames from a SWF movie? Let's say I have a SWF movieclip with 451 frames, of which I will like to make a new movie clip out of with only the first 450 frames. No wrappers or containers though.
| 8e9f51bcb935508d5ae5d29c7f02544c539d2ff28ec370c985eba5aa3fb49728 | ['39b9b570fe754ce5a8c5c8ab6f264fb7'] | What is going to happen to HHA?
Will restarting my town cause the houses in HHA to disappear? I thought they might stay because these gamers are connected to your streetpass right? Or will that be wiped out too? It would be nice if I could get my furniture back once I deleted my save file. (after I unlock the HHA of co... |
e0478f858d435fc5bf1dcad467573b9028143bf6837ebdfc945e0dd89aecee47 | ['39bd723520a140a4aff36f0814420393'] | This is an exercise I came up with, but can't solve myself.... Here goes:
Say you receive as input a list of N nodes. Each node n is connected to one or more nodes. The input could look something like:
Node A is linked to node B and C
Node B is linked to node A and C
Node C is linked to node A and B
The goal is to fin... | 5eed450752243c2f52d76e6d7d4525c627b83a7749391424c3d949b07fba91ce | ['39bd723520a140a4aff36f0814420393'] | I'm trying to find the general way of optimizing a summation function and I'm a bit lost. I would like to find the maxium (and the minimum, ideally) of:
$$ \sum_{n=1}^{x} f(n)$$
For example, let's say:
$$ f(n) = -(n-4)^2 + 16 $$
In this scenario, the answer is easy to find without doing any work: f(n) is positive for $... |
4f01057e47ca948867ea5066384b7365a4466aa563ecefc2931798011c3def3f | ['39c2fa5e84a043b1abe646b299ee5303'] | Нашел ответ в английском стеке, вот ссылки:
https://stackoverflow.com/questions/36464592/psycopg2-cursor-execute-is-not-working-properly
https://stackoverflow.com/q/13715743/9374673
Мой класс в итоге получился таким:
class ConnectDB:
def __init__(self):
self.info_db = {"dbname": "my_data_base",
... | 459844dfb20145188ae96be09266336b1797299ed6812dc0fe8c24ad632535c1 | ['39c2fa5e84a043b1abe646b299ee5303'] | Supose we have $\{K_i\}_i a colection of compact sets. This means that for every $i$ there exists some $R_i>0$ such that $K_i$ is bounded: $K_i\subseteq B(0,R_i)$. Now let $K$ be the intersection of the $K_i$. By property of intersections $K\subseteq K_i$ for all $i$, this implies, $K\subseteq B(0, R_i)$ for all $i$, i... |
12f67b9add7ce69f03bdacf283ed18cba3d7bd41ffe5e6e2a8114a98e1e3e8f8 | ['39c458323b3a4e33981723396057cc64'] | I have some large files which I want to run on Google Colaboratory from my terminal by specifying the file name or by sending a request to the Google colab server. How can I do that ?
PS: The files are run one by one using a javascript file on which I have no control. Their running process is all handled by that js fil... | 8b3814efed0a66f4280b77773578439f0b1da88ccdb7f6fe9d34a1e51c56578e | ['39c458323b3a4e33981723396057cc64'] | This code has ambiguous behaviour as per ob.fn() call which is quite clear as per the function definition. But when changed the function definition from 'boolean' to 'double' the behaviour was quite unexpected to me.
public class Varargs {
public void fn(boolean ...a){
System.out.println("calling double fn"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.