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
fff6db255522635f13b13182e38828870c559c549e20f388730ffeab0609801c
['31c0a2720c9240a3ad6f17414808b948']
Installed bicon-git, this is written in .bashrc # hack to launch bicon if not launched if ! [[ "$(ps -p $(ps -p $(echo $$) -o ppid=) -o comm=)" =~ 'bicon'* ]]; then bicon.bin fi Launch ranger [~] -> ranger make Shift + s problem [dir] -> exit exit done [dir] -> exit [~] -> How to fix double input?...
106037c4903ca701ad91847ab5edaf4e76b4fb24abc89f58e6b2325bf8bc2dfc
['31c0a2720c9240a3ad6f17414808b948']
I currently run a headless server (Ubuntu server 12.10) with various applications running on the box accessed via web interfaces (transmission, plex etc). The box sits at a site with a quick and serves the purpose of being a central file repository, torrent box. I was wondering if there was any application I could ins...
7c4997c7e8eeb3f10a17bda628c6648bdeed0d4c9b6f1802e6fd40c8077d06f7
['31c3685d2b804db9a3076929f128c81c']
I'm still pretty new to XSLT and I have the following XML which I need to remove the namespace. I also found the following XSLT which almost gets the job done with the exception that it will not retain the xmlns declaration. XML: <?xml version="1.0" encoding="UTF-8"?> <etd_ms:thesis xmlns:etd_ms="http://www.ndltd.or...
b5d663d8822e3c1deb21a5a46677c49df0130efaba613837aa0088814b69781a
['31c3685d2b804db9a3076929f128c81c']
My XSLT is validating a language code, but for some reason it doesn't work. It does an include of another xsl file that contains all possible language codes. <xsl:include href="inc/iso639-2.xsl"/> This file looks like this. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/T...
f01994ced964340694e26d7b0986353f3eb0af98e543251967c694d2472a9dc4
['31c4a3cdb395451b97f0c294a85b1198']
I installed Ubuntu on a secondary HDD but installled the bootloader in the old HDD EFI partition (disk windows is on). Grub still presents me with a boot menu where I can select OS and everything seems to be working correctly. What is the downside to what I have done?
a0950a4ec56a564f30c6d4b34d4034d0600f53e39218fbd9444ce5abb5d983b1
['31c4a3cdb395451b97f0c294a85b1198']
So as the title states I am unable to add a Quorum Witness to my cluster with the two options that do not involve azure. I've tried several different commands for the disk witness as you can see it is disk number 9. PS C:\Windows\system32> Set-ClusterQuorum -NodeAndDiskMajority 'C:\ClusterStorage\Volume2' Set-ClusterQ...
e46569a2301f4b85ced912ddcbb96183be032768f677b0ce287f6ee0b928710d
['31eeb10c98dd44e8afc05b8b66c52020']
How can I iterate through my arguments to print these lines out for each of the arguments in my function, instead of typing each of them out? def validate_user(surname, username, passwd, password, errors): errors = [] surname = surname.strip() # no digits if not surname: errors.append('Surname may...
243754d87c711d66e370d34c55257987462510d073423d5287461b73b6f09dcb
['31eeb10c98dd44e8afc05b8b66c52020']
I'm creating a record system, where a student can be enrolled into a class. # MODEL class Association(Base): __tablename__ = 'association' class_id = Column(Integer, ForeignKey('classes.id'), primary_key=True) student_id = Column(Integer, ForeignKey('students.id'), primary_key=True) theClass = relationship("Class") c...
d2392fa58a4d738435620a48484118200c47a87447e3862b8cf282c410567495
['31f2fe3c05514c1197ab71c6083651f7']
I'm not sure whether you can say, although I have some confidence in my English skills: I traveled the whole of Germany. (or just:) I traveled Germany. It sounds vaguely wrong to me. I guess the better way would be to say: I traveled all over Germany. But I don't think you can say: I traveled over Germany. Right?...
b74574480e0521ddc8820210e3ec1fd648deb62ec20e6dc9f61fc8067acd85a7
['31f2fe3c05514c1197ab71c6083651f7']
I once attended a great talk by someone who said he was involved in coming up with the exception handling strategy for the BCL. Unfortunately I've forgotten his name and I can't find my notes. He described the strategy thus: Method names must be verbs that describe the action taken by the method. If the action describ...
fca753fd98ab3c073c2d76b346afb5db50b0c057047237c3e9a4ff1d7268611e
['32113302e0c14cfab9ac25d2cd247f90']
Всем привет, подскажите пожалуйста как правильно переопределить hashCode что б корректно работала такая запись: LinkedHashSet<Integer> uniqueValues = new LinkedHashSet<Integer>(); Random rnd = new Random(); while(uniqueValues.size() < 5){ number = 1 + rnd.nextInt(5 - 1 + 1); uniqueValues.a...
d3426ac5dc49fa87b60d09952618b93ea2742f2e2f282c35d074e9aeb6dfccce
['32113302e0c14cfab9ac25d2cd247f90']
Given a continuous function $f(x)$ such that $\int_{a}^{b}f(t)dt=0$ , prove that there exists $c\in (a,b)$ such that $\int_{a}^{c}f(t)dt=f(c)$. I designated $F(x)=\int_{a}^{x}f(t)dt$ and the question becomes to show that $\exists c$, s.t $F(c)-F'(c)=0$ . If we set $G(x)=F(x)-F'(x)$, by the continuity of $G(x)$ and...
42e4a9387313c76b9bbd2847283c13217c1dfb7d29bf9034b8c0d9b51063a4da
['3219020edc5042618d3bd9e671ce244f']
i hv same code like this import json param1 = "xxxxxx" param2 = "anaaaahhhhhhhhhj" param3 = "333333333" with open('data/'+param1+'.json','a') as f: data = param2, json.dump(data, f, sort_keys=True, indent=1,ensure_ascii=False) when i executed this, the output like this, not real dictionary [ "anaaaahhhhhhhh...
df6bb425e74cc941c59b95dae6f8dba9e489b4161c72cf666dcb50a01acffb9b
['3219020edc5042618d3bd9e671ce244f']
I try to create multiple upload images with reactjs (client) and using flask (server), but I have some problems, the output file in my server is just [], I already tried using request.files.getlist("file[]") and request.get_json(force=True) but the results is same here is my code: client import React, { Component } fro...
d7fb31bb7165ba918293147209270ef583dcd7266ee0708d8369f145b54adc35
['321bd8095a7a42f697f2902b94af76b6']
<PERSON>, not sure how that's a good strategy or how it works. You're setting yourself up as a target, and if it worked, people could just make up offers and ask for more money. "Hey I turned down a 50% raise somewhere else to stay here, give me more money"
5897056d03ded0ad8fcb38fc1f9e6e4f6a9d07afac23f5404f00c30a134c355c
['321bd8095a7a42f697f2902b94af76b6']
There are studies and plenty of things written about the idea of a 40 hour work week not actually being as productive as it seems. It was originally pushed for by unions and became a standard after that. (Not all peer reviewed proper sources ) https://www.igda.org/page/crunchsixlessons https://www.inc.com/jessica-still...
5fd8c88a0eca84f0b5708515a3be8e1fb85c9015f956130808cbadc147bd99ae
['321d8a97da5f45719fd61174a23360ad']
Thank You for the answer <PERSON>. I have solved it using injection of JavaScript in the code for WebView in android. final WebView webview = (WebView)findViewById(R.id.browser); webview.getSettings().setJavaScriptEnabled(true); webview.setWebViewClient(new WebViewClient() { @Override public void onPageFinished(WebVie...
6475e2374d6fc248767e6f7a1658500c3ad62161f759b62ee233f3adf8846515
['321d8a97da5f45719fd61174a23360ad']
I have been working on some JSON and XML parsing via URL. The URL which I'm using gives JSONObject and inside that I have XML. Here is my code what I have been doing for this: HttpClient hClient = new DefaultHttpClient(); HttpGet hGet = new HttpGet( "URL for getting results"); ResponseHa...
82810fb7b93321ec4ae6bdacb5821392804431f985945b212e5168a9c5c65b03
['321ea8597a7446d284788dd96de4c0a5']
How can you generate small world or scale-free networks with a certain density, say .3? In the case of random networks it seems easy because an edge is drawn based on a certain probability. However, this doesn't seem to be so straightforward for the small world and scale-free architectures. I was thinking of starting w...
04d61150179124554f622df94a4bd525143aca68e75e1bea2549d9703cbdecfb
['321ea8597a7446d284788dd96de4c0a5']
Tengo un gridview que posee un checkbox, estoy intentando que el usuario solo pueda seleccionar una casilla a la vez, si hace clic en otra casilla pues que se desmarque la primera seleccionada. Estoy intentando hacerlo con javascript sin embargo no me funciona. ASP ...
a85e7df5722448c8ba2b3bad2ffb106b63daebf8bd21a0828dc4d33b412b0d3b
['322f169cca0a4cc881123b777db10bb3']
I currently have a hss guitar setup with a coil split and a five way blade selector. in 2st position with the coil split, it’s like a regular hss Strat with the middle single coil and the slug coil of the humbucker, but if I put the coil split switch off, the whole series humbucker is combined with the middle single co...
7d53271e321f9236050071e1d056387c81b3fe47fcc5cd0219dcc50559d7740f
['322f169cca0a4cc881123b777db10bb3']
I’ve been playing for almost 8 months now but I can not do a full bend on the e string. I’ve gotten used to doing full step bends on the other strings but I could never do it on the high e string. Tried it once and broke my string. After that I got a fear of bending the high e over a half step. I use 10s FYI. So is the...
fdbb7e932e6f48d465bf7e34553b1c93464f3387382ec4694dec0f6a05c3ce57
['322f59b3df694587887f5165ea157ece']
From BAM 2.4.0 release onwards, the previous BAM activity monitoring components have been deprecated. They were replaced by a new implementation of activity search and monitoring with many more added features. The following artifacts will no longer be shipped: With BAM distribution: the activity monitoring sample and ...
b86fbea45c68a8f028a57a0af332933267eddccbab7770063cf002a27d60ac74
['322f59b3df694587887f5165ea157ece']
Problem could be with the command you are using to connect to BAM_UTIL_KS keyspace. Keyspace name should be wrapped by quotations as follows. Following commands should work. $ ./cqlsh localhost 9160 -u admin -p admin Connected to Test Cluster at localhost:9160. [cqlsh 3.1.2 | Cassandra <IP_ADDRESS> | CQL spec 3.0.0 | T...
f4e48a52dc70bb3a9db37c39751b8ff436f27098e676a60c24fc194c4197c4f7
['3230b9b08bae4f36bb0c3f7845c59942']
<PERSON> Thanks! Yes, I completely understood you, your comment was right, I shouldn't have written a short, shallow answer and I realized that soon and changed it for the better. However I think the way the pointing system works in SO could be improved, or maybe I took it too seriosuly. Anyways, thanks and hope I coul...
da629fc6fbf2c3b64b54a6427eabaa20bf43170d52048dbf8740d60ad2b28f6d
['3230b9b08bae4f36bb0c3f7845c59942']
I am building an app where the server needs to select rows based on some criteria/filters. One of them is the location of the user and the radius at which the user want's to see posts and other filters such date range and filter for a value of another column. This is going to be for an ad-hoc event discovery app. I hav...
013e2d228a1b6f275b802c8d75056003d5a85ab6c6b793dbe753df7ba446aa9b
['323991caffc5405d913d843ffeba674a']
I am trying to figure out why Apache2 ignores "authorization result of : denied (no authenticated user yet)" and let random user to login. Apache vhost config is : <VirtualHost *:443> ServerName vmntopng01.mgmt.local ## Vhost docroot DocumentRoot "/var/www" ## Directories, there should at least be a declarati...
276f77dad8c20c49d2537d4671c7fce6bf03436fd646589e8c9131f64d4e1378
['323991caffc5405d913d843ffeba674a']
Not sure if it is possible at all, but I am trying to find solution for such setup: BIND9 server, managed by Puppet(https://github.com/ajjahn/puppet-dns), Puppet populates zone files for all static hosts except Puppet we have set of network devices, managed by Ansible, and there we would like to generate DNS records d...
d5736c3dc80172292b9ef01289f5bff709880a7a594798e546fc0e8600bd4a56
['3244b1bcbbd04641906952cd0beab3a4']
Hi, I really appreciate the time and effort you have given in writing this awesome answer. After reading your answer i am no longer creating sorted vector for each query but instead i am just counting the numbers greater than k in the left and right queries. Moreover i have used fast input and output methods, but stil...
405de3328a22ec380a3fa385820236a0d44241609e26b42b7530188c62b53c08
['3244b1bcbbd04641906952cd0beab3a4']
You should. That is the short answer. In the longer answer, you would be surprised to know how many times security vulnerabilities happen from internal users of an organisation. e.g, If your test environment has admin credentials, then a unprotected transport layer mean someone from your organisation (who is not an au...
f903e97fae28c0b9ca8cc2c1b333231f5ab6cb6b18bf04d6730d720dc2f8dcac
['3245a97e2ee94f7786df9ebf2b9a40ff']
I'm trying to write a method that will take a string like "abcd" and then print out each character twice so that the output will be "aabbccdd". So far, this is the code I have: String abcd = "abcd"; String t = ""; for (int i = 0; i < abcd.length(); i++){ t = t + (abcd.charAt(i) + abcd.charAt(i)); }...
c41ba5bcdd824759309aac80561966a98aa73fe90b49ff2c939500eb061c60cf
['3245a97e2ee94f7786df9ebf2b9a40ff']
I've gone over the code and re-written it several times already and each time I get 0s when printing the array and the mean. I'm using codeblocks as the ide. Below is statlib.c // Calculates the mean of the array double calculateMean(int totnum, double data[ ]) { double sum = 0.0; double average = 0.0; int ...
5b50d75e14a2716009d835b4ed20a439e765ddf90da2f50195fc372223772684
['32495c7c3b07417086f77833d07baa1b']
I want to make a room in OpenGl with Visual Studio 2010 and add some objects like a chair, carpet etc. I designed the walls only by using textures. I have some problems when I try to import objects from 3DS Max. I see the object, but it's all white. I should be able to see its colour.What did I do wrong? Thanks. <-M...
83f2be547c0607d8bc5a383cccf78ccb1cc9c9e79ffe870ebc90b5dd9c3afd45
['32495c7c3b07417086f77833d07baa1b']
I have a problem. I draw something using a loop and I use Sleep to pause the execution. In the meantime, I want to be able to see what's in a textArea, which has a lot of lines and I have to scroll down to see them.But I can't.Using Sleep it's not possible. Any suggestions? Thanks.
659704dbc577625d4536bae5b3816f5ff01b417dc793a388b32d8b6b784a756d
['324ad26fb20844a9a5697ea5b39696d6']
Image source: wikipedia The above wave is generated by PWM. As you see from above image the analog wave have lot of whipsaw blade like pattern, in simple terms as you increase the frequency the whipsaw pattern will get shorter, which in turn smooth the wave form, based on the frequency and filter technique used to smo...
7e32ee208def66a6c23d557d8151a0ae02d1e743564fb568b53a108f058852a0
['324ad26fb20844a9a5697ea5b39696d6']
Though the transistor act as a switch it collector current is restricted by the base current and ESR of the capacitor With rough calculation the base current is approximately 120 mA, 2N3055 has a DC gain of 20 - 70, taking the maximum gain the max collector current can be 120mA X 70 = 8.4 Amps, the peak current of 2N30...
809544fbcff58aebecaeeee6f6f473fe1ef83e3f9b0c7800b92ce6b04b8a0829
['3250eecdc1bc4729ad20c6b4db773132']
So I am making a tetris game and one of the problems I am running into is piece rotation. I know I can just hard code it but thats not the right way to do it. The way the system works is I have a 2d array of an object 'Tile' the 'Tile' object has x, y coords, boolean isActive, and color. The boolean isActive basically ...
174b5afa12f8c3c9ec2d01496714e2b1a49e563a04ef833250438a0d91a3ddb3
['3250eecdc1bc4729ad20c6b4db773132']
Ok, well I made a simple 3D cube using VBO, and I wanted to load textures onto it. Only problem is that the textures are all messed up, here is my code: public void create() { setup(); render(); } private void makeCube(float x, float y, float z) { int cube = glGenBuffers(); int texture = glGenBuffers()...
97472ba5447d6728626093d4d1ad87776d6a6676495824b664cfcaa62823bae6
['3253b47f9faf45e185cc1462ae664e37']
I seem to be unable to get the COM3 port to work on my Dell Vostro 3500 laptop. I am trying to work with the Arduino application, which requires COM3 to work. The laptop has recently had a clean Windows 7 install, so I've suspected a driver issue so far. However, I have now installed several drivers from the Dell web ...
b162a94d7d60690ae03b5d870e45b34f71638964fc15b112abf5d6b29ad05190
['3253b47f9faf45e185cc1462ae664e37']
I wrote a sample script based on bash dialog, in order to change my laptop brightness until they fix that in 13.10. Here above is the link to the source on github: https://github.com/kjpopov/Ubuntu-Useful-Scripts/blob/master/choose_brightness You can edit it to add more values, and also you can change the line 33 to ma...
e3efd59a6bab512b6ecf08a9f25734dd32e68a9e66ec27a3ee456fdf670fb98a
['3254fb69a5e94510a921d63426d84650']
just to know, I am not a system admin (I mean this is not my job), and I try to configure my apache just to produce my projects. My system is Ubuntu 15.04 and I have installed Apache2 Apache/2.4.10 (Ubuntu) with PHP 5.6.4-4ubuntu6.2. The problem that I have, is that my files getting cached, whitout using any cache plug...
aeb77b0bf58160517078bd7d649289e591ba7d0c0c57e8de97eb10c335113ccb
['3254fb69a5e94510a921d63426d84650']
I have a Windows 7 installation and because I run an Apache web server with Virtual Hosts, I have assign a static IP in my network interface. The given IP is <IP_ADDRESS><PHONE_NUMBER>. Suddenly, today, my computer cannot get connected on the internet because of the static IP. If I change the static IP to dynamic IP th...
fc47e855a57c4637780c9b52ee8055b918ad4975a9d9d7ab919833d875b69769
['3258daba89a74b76932cb1c2886ec5be']
if your input file contains one url per line you can use a script to read each line, then try to ping the url, if ping success then the url is valid #!/bin/bash INPUT="Urls.txt" OUTPUT="result.txt" while read line ; do if ping -c 1 $line &> /dev/null then echo "$line valid" >> $OUTPUT else echo "$line...
9158e0a7172798a0c60515439705561b1c8706c043f8a1c63f0bfd4b46a01815
['3258daba89a74b76932cb1c2886ec5be']
first thank you for editing your code (it's more clear like this :) I have 2 or 3 advices : 1- when you want to store a value in variable dont use "$" symbole, this symbole is used to get the variable's value ex: MYVAR=3 echo MYVAR "this will print MYVAR" echo $MYVAR "this will print 3" 2- always ...
24491185e62b3282c46ecbd84189cd7f0b8d27aab6ef86b6c95b85c340f967fa
['32679b157e464a34ab8d761179aaa71d']
@vinaya If you view the log on the Linux server it's presumably running on, `less logfilename.log` + an in-file search for around the date and time you believe everything began would be your best bet. `less` doesn't load the entire file into memory at once, which makes it good for viewing and searching very large files...
36c8f9698b3c5ed5a73476be09ae08925f8fad34ccb58123a5888a3bda5de20a
['32679b157e464a34ab8d761179aaa71d']
If the network does not require a password (an open network), then actually you can sniff all of the traffic without even connecting to the network, which is an added bonus for the attacker. None of the traffic is encrypted, so the attacker can simply see all of the plaintext data in the air. This means they do not eve...
b1e3d0b645c908c134712ce1b0d528c40aaaa0481ff5eaa4b5490f2a89c3f8a5
['326c0558f2134e238890b20111a27d87']
I have the following code, what I'am trying to do is that when it receives the input from text_to_search, it finds if it is an instruction, it is any word that is not an instruction (ID) or it is an operator, so far it prints me if it founds an instruction but in the ID part it also prints me Set, instead of for exampl...
46fa76bf8cb888fcaf06dffaddd526e4a256f783e2450f17ebd41eb7932e4fbf
['326c0558f2134e238890b20111a27d87']
In the documentation they show this example to build a tree: def p_expression_binop(p): '''expression : expression PLUS expression | expression MINUS expression | expression TIMES expression | expression DIVIDE expression''' p[0] = ('binary-expression...
2433933e1f017878882e06ed841f724fcb0011167ee666ccad0ce63a618cfbd7
['326caf00d6794484aa3bd96e326904ce']
A circle $O$ is circumscribed around a triangle $ABC$, and its radius is $r$. The angles of the triangle are $\angle CAB = a, \angle ABC = b$ and $\angle ACB = c$. The area $\triangle ABC$ is expressed by $a, b, c$ and $r$ as: $\Large r^2 \over\Large2$$\Bigg(\sin(x)+\sin(y)+\sin(z)\Bigg)$ find $x, y$ and $z$: My approa...
02c8a89120e56c64b84ae001239e463e84ef4989971cd427efb1d5e67f61ed63
['326caf00d6794484aa3bd96e326904ce']
There are two circles that go through the coordinates (1,3) and (2,4) and are tangent to the y-axis. Let $a$ and $b$ be the radius of those circles, what is the value of $a\cdot b$? My approach: The question already tells that there are only two circles that attend to these demands. I made a system of 2 equations usin...
c2fbd1f681df4b2506e9dccbcdd708f5720058e2f5cfcc442afad321c937350f
['327dd88b324b4d3cb4637d3cf575c0fb']
The first thing to ask yourself is: is agile the right fit for what we're doing? If your requirements and tasks change daily since you're constantly uncovering new information, then you may need a different approach. "Force through a week and finish what we started": don't do that. PM methodologies are there to help yo...
1402174943b21e0d269a38ec4fb88b4a94d0fc8413c394b44af3ce6a5f8b94aa
['327dd88b324b4d3cb4637d3cf575c0fb']
Generally, I'd say its the same way as finding your "best" feature list, pre-processing methods and algorithm - you'd find most answers starting with "give it a try and compare", "check which combination gives you a better cross-validation?" etc.. More specifically, when there is no farther documentation (and its an op...
6c88c0218b43fd7d606fbab0558600b60abcb6a77b075b45f20fdbe19170c708
['32894f29af9049ff8809324465e7b55d']
All i am trying to do is to set the selected value of drop down menu according to the particular value returned from the database like if person saved his gender as 'Male' and he wants to update his profile then the selected option shown on the Gender's dropdown llist should be shown as Male cause if this doesn't happ...
bbc531dafdfa0b48d44c8581d6893928c9174ffda4bb612d9011cc77549caa63
['32894f29af9049ff8809324465e7b55d']
I have this code and its working awsomely fine if i provide a direct link of an image. Just and just only one problem i am not able to pass my uploaded image to facebook->api (whether its valid or not) and the following always echo echo 'Only jpg, png and gif image types are supported!'; i even remove the check on...
409792ce78637db86587ba8e69733bfbc482f2e6c74528567561175ee4d182ac
['3290ddf04d504dca871c5fd5d1df4aa5']
I'm using ConEmu with Windows Subsystem for Linux and I'm trying to figure out how to allow mouse clicks to be sent to programs like tmux and vim. I have set mouse-select-pane in tmux (1.8) and mouse=a in Vim just like I had in iTerm (I'm a recent OSX convert). I also have Send mouse clicks to console enabled in ConE...
bcadb735d6a563b06f372c5765930d93d6177d00614a54dac27914665f9c4a58
['3290ddf04d504dca871c5fd5d1df4aa5']
I can't find a way to use the source server tools from the Debugging Tools for Windows on a static library project, which is built separately from the solutions actually using that library: The output of "ssindex.cmd" always displays "zero source files found" for the PDB file generated for the library (using compiler ...
cd9fcd9fd571ccbc84871323868209a379c93169293dbeb26e17aac5bb181fb3
['32913ad1550b44ac893589675197f65e']
I have created 2 pandas DataFrames with data pulled from Yahoo Finance, and I need to make sure they are the same length in so much that they both cover the same dates - and if one is shorter than the other, drop any excess data from the longer one. start_date = '2005/01/01' end_date = '2016/03/31' o=data.DataReader('...
30eaa4cd683ccd1f5848abd7b12f7e33e572ac5ef54c4c729308e69a1d4cf321
['32913ad1550b44ac893589675197f65e']
I am currently attempting to iterate through some data contained in an SQL request cursor, alter the type of some of the data into "datetime.time" and then combine that with another variable into a new variable named "datetime_db". I have two variables named "date" and "nextDay" which have been previously defined earli...
30682336d2a306d209dcb782dbb469ee39ed89c668ad179ad83183c08b713226
['32af0cd7f6b04a2fa99cd25607994f10']
Your solution is not bad, but can be simplified. You don't have to split the strings and flatMap then. You can just flatten the List of Strings. A.map(x => if(x.contains(y)) {x} else {""}).filter(_!="") It would be better to write: A.flatMap(x => if(x.contains(y)) Some(x) else None) or A.filter(_.contains(y)) But you c...
305c5f3dd7d0e340d0bc959cf9e4d791adb3b40b0eff326393cadf665588dbab
['32af0cd7f6b04a2fa99cd25607994f10']
You can solve it with a single foldLeft, iterating the input list only once. Use a Map to aggregate the result. listInput1.map(_.split(",")).foldLeft(Map.empty[String, Int]) { (acc: Map[String, Int], curr: Array[String]) => val label: String = curr(0) val oldValue: Int = acc.getOrElse(label, 0) val newVal...
5b296ae14fc71ea2058fe8fab7caf844a9dfc07e915adb8e344c56c7819382ca
['32b514ff4d5745f69cf2bb3572823118']
@Parfait has a good use of lapply that I would keep, so I won't recreate it for my answer. For your question of only looking to refer to one spatial polygon dataframe in your call to addPolygon you can use rbind once they are created. Note this only uses one colorFactor set. #Create Isochrone points <PERSON> <- osrmIso...
339c14e2d0b93f5df7e20e7f9285dfebeea09c4411b6f23cdf82bd6503e3a695
['32b514ff4d5745f69cf2bb3572823118']
Not sure if this is exactly what you are looking for, but I replaced the da.repeat with using np.repeat, along with explicity casting dd_test.index and dd_test['units'] to numpy arrays, and finally adding dd_test['transaction_dt'].astype('M8[us]') to your timedelta calculation. df_test = pd.read_csv(StringIO(test_data)...
db99210c4793045c818a7adb804bd1f2a2872a07b0ee3493a7c73cdecee2ed04
['32cf5bcf932e4b94ad2794da38bfdef9']
Is there a way for an iPhone app to receive a URL callback without using the colon? The iOS Custom URL Schema requires a colon : in the URL . Unfortunately the API I'm communicating with only accepts domain names not URL's. Colons, forward slashes etc are not accepted. Maybe there there are other options other than ...
cf9cb883e5d3ee061f0458e0162dff7a9ececf9b2c1fb2b7e6d34641326b7a56
['32cf5bcf932e4b94ad2794da38bfdef9']
I just can't get Xcode and SVN to play ball when it comes to committing new files in new folders. Has anyone worked out the process to do this within the Xcode IDE or do I need to use a third party client? I don't want to become a Terminal expert and before anyone says use GIT, I want to use SVN because our project ma...
7be5697e00c7e9e1a07ce8ee1723e2f7c82f97b481f3d552b74d4b55c20ed85d
['32d27e0e02f043a1be41aa020d36f95f']
Actually you can pass send action method from parent to child, call it in child component like this.props.someMethodToDispatch() and do something with it in parent component before you dispatch action. For example: const dispatch = (action) => console.info("Action dispatched", action); class Parent extends React.C...
e17d8d195e0581c0d7874ef6dc6389492e58f0b2de619c6fede030718f43536e
['32d27e0e02f043a1be41aa020d36f95f']
You can create HOC to handle form changes. For instance import React from 'react'; import PropTypes from 'prop-types'; import {formValues} from 'redux-form'; export const withSyncFormValues = (WrappedElement) => { class WithSyncFormValues extends React.PureComponent { propTypes = { autofill: Pr...
41afe87faf3ca7fb69885f017f67eeb3f1f035e9c909369228fb9af4d1d6190c
['32d66e7345e848278830f1c6fa9e13d0']
How do I build a tree which has a depth that i want? For example i want to create a decision tree which has a only 3 depth. load ionosphere treeModel = fitctree(X,Y) view(treeModel) view(treeModel,'mode','graph') This code create 7 depth tree. I use same data set but i want to create tree which has 3 or 2 depth. H...
9637def941fe728d3d5a15dcb03d140d12f2a14a0eb4a364f546ad60b29ee00c
['32d66e7345e848278830f1c6fa9e13d0']
It is very interesting bug. I use a image which is "Screen Shot 2017-05-12 at <PHONE_NUMBER>.png" on xcassets. So this image causes random crashes on iOS 9.2.1 and lower iOS 9 I should not have use image name which is contain point. I lost my weekend :(
be82eeeff03174c61dd05476f5f82db11b07633e6442278163f396be603e91b6
['3321f1c29a6d4feb8db9f0500bc31f4d']
In IE 8, I have form elements. When the page is zoomed in (ctrl +) in <select>s alone not getting zoomed in properly.It looks like hidden half way and stays in same size (as in 100% zoom). If I re- render the page it zooms in but it stays in the same size even after zooming out. In IE9 it works fine. I need to support...
4d8588a48528d8bb449cb52dc87d0395aa7f16c823715c8a6bb4cc91e13161f3
['3321f1c29a6d4feb8db9f0500bc31f4d']
I have a table of contents which is shown with 3 rows by default and on clicking more it shows all the rows. But the there is a jerk. here is the link to jsfiddle I need some smooth effect so i use slideUp and slideDown instead of show or hide. show or hide is working fine. I tried setting height of table in script but...
6d69c7f92f160197be327f5434b7a2bb249bfcecf293955492287294a39408af
['332443c5b00344c8a27345c6286aa2a0']
I am using Firestore in a React App and I see this error whenever there are two parallel request. What does this error mean exactly? Firestore (4.5.0) 2017-11-05T16:39:32.783Z: RPC "commit" failed with status: 400 response text: { "error": { "code": 400, "message": "the stored version (1509899972098969) does...
7957235a6141e92267c7e7ee99f5511869f229c03b37e60015d0e20681036052
['332443c5b00344c8a27345c6286aa2a0']
try this, .img-wrapper{ width: 100vw; height: 300px; overflow-y: auto; overflow-x: hidden; display: flex; align-items: center; } .img-wrapper img{ width: auto; height: 250px: margin: 20px 25px; } Search for css attribute overflow-y: scroll, that will allow the div to be constraine...
8dd0901a33c6e78688935e54c1b8e45fa61689c35203b3bf7d1456e0c0494213
['332818a5e45c44cc9c4bc6bc40e5b852']
I want to be able to have a window listener that when the window is opened, some graphics appear. This comes with some problem though, because you can't set a window listener while the window is set to visible (or at least that's what I've found), but if you wait to set the window to visible until after you set the lis...
2f816072a2d0686f85d6fba041d0c822b4147278f95cd02416925a3c99a82f00
['332818a5e45c44cc9c4bc6bc40e5b852']
When I try and import the AWT package in eclipse by doing "import java.awt.*;" at the beginning of my code it comes up with an error that "The package java.awt is not accessible." java.util seems to work fine, but the awt package doesn't. I'm not sure what I need to do to make it "accessible".
31a2d332e8f54857a2b0ec13e7c89748e1955a4ea4aaa94560727451b049cc99
['3343b3d5f359453d892b69ad4310ce6a']
I am using a #define in one header that is defined in another header. Sometimes Visual Studio decides that #define exists and it colors my code as if it will be compiled in. Sometimes it decides that it doesn't know what the #define is and it colors my code such that it will be compiled out. The only problem here is...
a49b6598f4507f0d7432be68dcc60b10a30db65312c55ceaac322e5ea9c4cf42
['3343b3d5f359453d892b69ad4310ce6a']
This appears to me to be one summation divided by another. Here is my attempt at a straight-forward answer. My results were definitely averages that were more heavily weighted toward the earlier entries in the list, but I don't claim to know if they were correct. double[] m_prices; public double Rema(int k, double l...
71db95b8aeacecc5ae8c77b6f42a58e98152bcea433506a338c4ca9a291782e3
['3349b804ceb648b3848b26dd5f312008']
You haven't called the load_home() function. If you call you will see preventDefault error then remove (e || window.event).preventDefault(); this line. Then you will have this error Access to XMLHttpRequest at 'https://facebook.com/' from origin 'some origine' has been blocked by CORS policy: No 'Access-Control-Allow-O...
315e922f68d3072ce5e87fb5a042a6bd1c8c7a60d864b512d00527ca7f20072e
['3349b804ceb648b3848b26dd5f312008']
This is the proper way with your thoughts <!DOCTYPE html> <html> <head> <style> button { height:40px; width:160px; border: 4px; border-radius: 20px 20px 20px 20px; border-color:red; color: yellow; padding: 12px 15px; text-align: center; font-size: ...
d14cf4bd4dd8ce4e256d35d4ca3381e520dd78f0d148661a309af85c0d608dff
['3350251ba56f4c869185c26a2178b1e8']
Recurring billing API call from Recurly to PayPal is failing and the error code returned is 11451 (Billing Agreement Id or transaction Id is not valid). However, the Billing Agreement Id is still in ACTIVE status in PayPal. Any idea, what API call is made by Recurly to PayPal ? How can I get the logs for the same?
cd045fa1bddb204440db09f2a89c3c0ebc469dd969a8cc96b6cd188af0904aef
['3350251ba56f4c869185c26a2178b1e8']
The root cause of this issue was due to type of Billing Agreement created. Recurly needs a Billing Agreement ID which supports reference transactions, for them to process the future payments. However the REST API SDK supported billing agreement is not a Reference Transaction type, it is just a recurring payment type. ...
e06fdd19536e755281214c07bb1e1d009f98d6a78daa29204f33761eccb8f052
['3353af5f06e348a689fd74df231f3243']
I have such code in AspNetCore 1.1.2 [ApiVersion(Versioning.V2)] [Route("api/v{version:apiVersion}/[controller]")] public abstract class ApiController : Controller { } public sealed class AwesomeController : ApiController { [Route(""), HttpGet] public string Get() { return "Hello from 2.0"; } }...
80df232e5e4d829d9146957876e0c95b8a156d71b6afa6e061a3956ac5bee407
['3353af5f06e348a689fd74df231f3243']
I'm running Windows 10 with the latest updates installed. I'm trying to set up a swarm using multiple physical hosts running docker Linux containers on windows host. When I'm running docker swarm init --advertise-addr <IP_ADDRESS> --listen-addr <IP_ADDRESS>:2377 Where <IP_ADDRESS> stands for physical address of my curr...
8b91ddf249304cffe8d1d180ea8d9f95de79471a14085d9a0ca6b32a6f332151
['335c0c05458f4e6c9ab916c576d4d4b6']
According to my experiments, any wifi card can (naturally) connect to a access point as a client and act as a server (most of them in ad-hoc mode). Why can not a wifi card behave as both a client and a server at the same time? Is there a hardware restriction that can not be worked around by a software? Can't switchin...
4350178a8f8e2903545075232cda50dedc05ba4f8ae3f1627ce5359112af45ce
['335c0c05458f4e6c9ab916c576d4d4b6']
<PERSON> We are discussing only the charging phase here, cut off phase is out of the scope of this question. As mentioned in the answers, charger (the device or the human being) should stop charging when the current drops below 0.1C (C is the Ah value of the battery, not the CC value. CC is only an upper limit of charg...
cb7f41960fa4a3f3bc2e098544670d9844357dfb39282a8d9b19225622bcacc7
['33652b97ac324d6c9f9b876df3fbf8b5']
I have the same problem sometimes, but i notice it always happen when i create the project outside the AndroidStudioProjects Folder. Sometimes when it happen, i will locate the file in the project folder then open it with another editor(Noteoad++) then i copy and paste back the code, and you can try clear cache and res...
6b73c2ca1b94a3974440a1e7cb5d983b55a7a7b5d942528ea219c425a0d5e9b9
['33652b97ac324d6c9f9b876df3fbf8b5']
Try this Create your interface method in your adapter class public interface ItemClickListener { void onItemClick(String text, int position); } Then create a variable of ItemClickListener in your adapter class ItemClickListener mItemClickListener; create an onClickListener Method in your adapter class pub...
b496b76fb9e21923023132d3e0d80e57c31459b0261df4f52543561aa8f472eb
['3371fcf9c1ba4dceaca4e25f60502a8a']
malloc and realloc required the size of the space to reserve(allocate) in the memory, so if you want to make an array you must allocate the size of 1 element multiplied by the number of elements in the array, I suggest you make a variable to hold the size of the array. BTW "Segmentation fault" as far as I know, means y...
d833eda041fd65425116dade3f87a2b0d085ff5943c388d858c0a0c9558e43a9
['3371fcf9c1ba4dceaca4e25f60502a8a']
From my personal experience that is how facebook posts data to its server for login verification (you can check it yourself when you login with the developper tools opn on network tab, look for a POST request to login/) To decode it we need to know how it is generated and from a first look it looks like linux password ...
afe225bd603cf9d1136b5d4444b1da42bf95b1b17057c394950078d200f7d969
['33739c7fd6774325a655ea0c8eb37d29']
I had the latest eclipse and also the latest junit 4.12 jar but still I use to get this problem. I finally fixed it. Follow these steps: Close your maven project created in eclipse and close eclipse or STS tool. Go to Maven repository: C:\Users\.m2\repository\org\springframework\ and delete everything inside sprin...
e80bdf67edbe732777f0237bec89a2f2e7d7df2d4523a09cc7834b70f0ab5328
['33739c7fd6774325a655ea0c8eb37d29']
I have implemented the spring security with LDAP using Spring Boot. I'm able to successfully bind with my company LDAP server but with hard-coded values. This is the only way I can bind with my company LDAP server and proceed further since I do not know the Administrator/Generic UserDN or Password to make a successful ...
50114d01a05cedcfe2dce8cc3c10bb962ee9be445eaa6762a9efedb33cb21bde
['33831686a0cf4ed38a248391ada5894e']
Can you pass it as an arguments to the StatefulWidget? You can then access it from the initState method of the State object using widget: class Foo extends StatefulWidget { final var data; Foo(this.data); @override _FooState createState() => _FooState(); } class _FooState extends State<Foo> { ...
0416bffb6b804d7160f2baf5852b56e5f3eb22e878b942f9bdfd84f9b9348324
['33831686a0cf4ed38a248391ada5894e']
Flutter's Icons class gets its icons from MaterialFonts like this: IconData icon = IconData(0xea00, fontFamily: 'MaterialIcons') That hex number is the Unicode codepoint for the glyph in the font. You could use a Map<String,Int> to map your json icon String value to the codepoint int you want it to represent. For exam...
7d740efa4549ca30ad95c790708506c25fe33a93d0b500a54bf99b7faa97fb73
['338daa7126ab4a73bfc9d88fb337093e']
I have a primefaces datatable which has some editable columns. I want to make one of cell in one of the editable columns as non-editable based on some condition, e.g, If that column is color, user should be able to enter different colors. But if the row contains another column with a particular id('*), user should not...
e6f77f77180c7d609d41b7b37fa3a933d11a1ac2a5ebfb15eb4d3f0b839ef549
['338daa7126ab4a73bfc9d88fb337093e']
I have a web application where the UI and services are running on different tomcat servers. I have to integrate my application with Keycloak which I could do and I am now able to login. I want the password entered by the user for logging into the keycloak in the UI application. Is this possible?
4eb8367ba06b2cc2a3aa0375a190c2d21243248d8053f89b0e75976fedc9b619
['33906173e6114ce9a5ab53856f244ad9']
The $message variable is used twice... once to receive data from the form, and then you overwrite it? You may want to use a different variable for that. I changed to $msg. Also, you have a lot of needless php tags. Maybe try something a little cleaner like this to start: <?php $to = "<EMAIL_ADDRESS>"; $subject = "C...
1b6e9fce37acd3f68937cbd3340a4199bc00d04e2af72d18927d1e2a87a3c117
['33906173e6114ce9a5ab53856f244ad9']
I'm not mad at <PERSON> at all... Just wanted the post back on there so I can find a solution to my problem. It looks like the question was reinstated... It's a very weird issue... I'm going to talk with my hosting providers - may even have to pay them for help with it. I'll let you guys know what I find out...
7ac93a38e8936f7eb3b6e6c8bef551e30252415f6b89e757efb37ce8cc1699f1
['33997861d04d4081b3359726d4f7f39c']
I have a question. I'm able to rotate a rectangle by a certain angle, but through this rotation the starting X and Y coordinates didn't change of the rectangle but just the view on the rectangle. So how is it possible to find out the rotated starting, ending X and Y coordinates of a rotating rectangle during a rotation...
c4b72aeb1d0640e27dd7d264fda1da5ea62aed86c0ab8823d7bfc595bbebdb04
['33997861d04d4081b3359726d4f7f39c']
I'm asking because I heard about some issues for some users which are using my Application. I was already thinking about what it could be but didn't found a pattern behind the error to fix it afterwards. So I thought about asking you maybe someone could help me to figure it out. The application is about taking informat...
e9acab57c294d605e7b570529733a9f3d31e1353e6eab902bda8d0d086ef7548
['339c2cd763fe459c885a162a7711ce75']
This appears to work to find value and update it. I've updated it so I can find any value for a particular value. //search for all nodes with <DBSimulatorConfiguration> element string xml = "<path>.DBConfig.xml"; XDocument xdoc = XDocument.Load(xml); var elements = xdoc.Root.Elements().Elements().Where(x => x.Name ==...
c6212c15ee080a8cba8b3ea7f9fbfa78ea7c581d8c08c3b7a038afb88ed71e4d
['339c2cd763fe459c885a162a7711ce75']
I have a python GUI written with Qt using Python 3.4 as the current python version with two buttons. One launches a python script and the other launches a perl script. The Perl button launches this: subprocess.Popen(["ipy64.exe", "qadriver.py", arg1, arg2], stdin=subprocess.PIPE, shell=True) Python button launches th...
f27bce1d23e891990f735ba2a0ae3286ea24df7cc14a4f342af271d4f4ce9fb5
['33a489f8da87491796d5fe43abc88639']
library(purrr) map(split(test_list, ceiling(seq_along(test_list)/3)), ~reduce(.x , `+`)) $`1` [,1] [,2] [,3] [1,] 11 14 17 [2,] 12 15 18 [3,] 13 16 19 $`2` [,1] [,2] [,3] [1,] 3 12 21 [2,] 6 15 24 [3,] 9 18 27 Credit to this answer for the neat splitting code.
bf8b53d6a477cd0f3d17b4fee888475aafa1c725ff5b63dcd365edc403817252
['33a489f8da87491796d5fe43abc88639']
I'm not entirely sure why I'm getting the funky formatting for life, but I think this gets at your need for a count of the meal types. df %>% group_by(name) %>% summarise(count=n(), medianDate=median(date), life=(max(date)-min(date)), wins=sum(num.wins), chicken = s...
df32e93ac7060ef34ab75f26da545fcaaf990ab8f9ebd98d3ceb5c9c06d73072
['33a5ea171c5b4525a960e67ff25f487f']
Lets say I use a black key jpg image as my layout in Java Code. Is there an easy way to get the region out of an image so I can use region.Contains() for my onTouchListener? I've looked for them and there isn't any. I ask this because Im making a piano app and would like to get the regions of the images I use for the b...
40dd42cd9cb82cfef23340e0e560d7a20b5cef2612dae2b48a47e71e39a5d221
['33a5ea171c5b4525a960e67ff25f487f']
Hello guys I am basically doing a piano app. After much thought I think I've figured how most piano apps are done and I'm stuck here and this seems to be very crucial to get all the other functionality such as the slide,multitouch,adding keys,etc. Is it possible to know the dimensions of my drawable button before Hand?...
7fbd76c405d5d66082eee1792ed0c0e925b6a92616a00e8913c0a7d81028ca32
['33a823e1b2794beeb14b56f40b3530f4']
Tenho projeto de capturar caixas eletrônicos próximos de uma coordenada no formulário do site da Mastercard. Eu consigo trazer o resultado mas não em json. Pelo Content-Type ser text.XML, não deveria permitir trazer resultado no json? Ou resultado será sempre HTML e precisaria aplicar BeautifulSoap na resposta? Fonte h...
c6fc56de072b4dcbcc086d34adafcf978f6426cfcdbb4ba622ed0e1367ba71c2
['33a823e1b2794beeb14b56f40b3530f4']
Assuming you want a SOLID code and keep the single responsibility principle, you would need to inject window and document separately. A clean way is to provide each of them using the useValue property of your provider: @NgModule({ declarations: [...], imports: [...], providers: [ { provide: "windowObject", use...
d871613b80ce09a4d4d7c7aba610ea3ec668b7786628a60c8d7ffe9f425c290c
['33bb60ea902c41e99a42a56417ce8a28']
My application brings up a different view each time it is built in Xcode. This is exactly what I want it to do. However, if I simply press the back to menu button in the simulator and then reopen it the view does not change. I am changing the view by overwriting the viewDidLoad function in a Custom View Controller. Why...
499663a51df7c2617ea106bb5e37645ec192a10a7b75ad37706776c3650c4e47
['33bb60ea902c41e99a42a56417ce8a28']
I have a UITableView subclass which initially holds nothing, however by pressing a button I want to be able to add a string to the data and have it show up in the view. How can I do this? I have been trying to simply modify listdata, but this only seems to work once as after that the Table view does not reload, even th...
c2878d4c0fbc5a9dfb98cfa43291e564598306c66b51c29c6bbd67b516bdc89f
['33e2a433add64935b9983dc3522405ee']
I have a label that changes often, so I've put it in a function. But when I call the function, the label is not displayed. If I set the textvarible to text, then it's working as expected. What am I doing wrong? text = "Now visible to others as {}".format(SERVER_NAME) self.updateSearchLabel(text) def updateSear...
d240a5aca329c423043fcbda409a01474f6d350cc9220de8fca0cd93f4a3bf0d
['33e2a433add64935b9983dc3522405ee']
I'm trying to send an email to the website admin, but it isn't working as expected. I did this before, where the exact same code is working.. I'm using my gmail account to send emails with my Laravel application. So my setup is as follows 'driver' => 'smtp', 'host' => 'smtp.gmail.com', 'port' => 587, 'from' => array('a...
aa86ecfb03a05495f9e5d35ff95a3c9caff46f6482abae09384f9b5ae122bd1d
['33ee8b8255e146cabeeaf922b64a1406']
Hi i want to refresh the page after any of the ID time expire <script type="text/javascript"> setInterval("divID();",1000); function divID(){ $('#btime').load(location.href + ' #bitime'); $('#rtime').load(location.href + ' #retime'); $('#stime').load(location.href + ' #shtime'); } </sc...
f43a1009c556da2a730b93ea8b4a5f5adfcb23fcf084f77e9ac13b10c529798e
['33ee8b8255e146cabeeaf922b64a1406']
<!-- TemplateLib.php --> private function gameHeader($metatags = '') { $page = str_replace(array('/', 'game.php', '?page='), '', $_SERVER['REQUEST_URI']); $page = $page ? $page : 'overview'; $parse['bodyID'] = $page; return $this->parseTemplate($this->getTemplate('general/simple_header'), $parse); } <!-- simple_heade...
fe3483b0883249f61e6000c379f94559b888f089553a7cffb98159aca2cd43e3
['340031e4b5634c00a84fcda5aebaed44']
I just had the same issue with Worksattion 7 and Ubuntu 12.04. I tried the suggested solutions, however they did not work. What worked for me was Creating the VM first by choosing the option "I will install the OS later" then mount the iso on the CDROM through the settings window and boot it up. Worked 1st time. also o...
c7dcf3b2895eba5307f4947bedb13fa80a657405e2b23c002d84383b5e0bee28
['340031e4b5634c00a84fcda5aebaed44']
I found the problem and posting solution in case somebody gets stuck like me. In my case I am only returning one result and I assumed it will return one object. This is not the case as indicated by the "ResultList" error. Even if you return 1 result the function will still return a list with 1 result.
274bfc3f30135457f7ac7a6d264eb42ca3effad0e5cefb41124ce6f45d7b3823
['34008cc30cb94b928cf7da11d15df0e1']
I have an xml like this : <name> <class> </class> </name> then i want to add the tag like this <tia:Demographic><Age/><DOB/></tia:Demographic> in between <class> How can we do that . i am using following code. XDoc.LoadXml(@"<name><class></class></name>"); XmlDocumentFragment xfrag = XDoc.CreateDocumentFragme...
ee738659a31895849697bb3adc4c21d3a1909ea3a2fd4f01b353ce561403bf18
['34008cc30cb94b928cf7da11d15df0e1']
Using core java script you can find like this: var jsonData = {"data": [ { "id": 1, "title": "Category title", "products": [ { "id": 1, "title": "product title", "volume": "40" }, { ...
d964eaa2474d65dfd6e66d6a6a830ff40091c358f10faa406f1c98d76855727a
['3415a23937104cc5b4ff0cc83abf38c5']
I am trying to do the following in python: Splitting a file of para of statements into sentences. Splitting these sentences with contractions into words. Trying to remove stopwords from the set of words. When I do the 2nd step I get the result [['Hello','World'], and so on. I understand ( if I am not wrong) I have go...
d17da77485f3a991de0cb68fb519bfedfed0350d9a30b3fbfaa03b9974572b18
['3415a23937104cc5b4ff0cc83abf38c5']
I have installed Maven 3.0.5 on my windows 8 64 bit machine by the following steps: Downloaded apache-maven-3.0.5.bin.zip and the archive is stored in C:\Program Files\Apache Software Foundation. I changed the environment variables as follows: M2_HOME with value C:\Program Files\Apache Software Foundation\apache-maven-...
9ee1592ff59b9b6dbd82c6ed553306e8f073285a8fe6c9e085ead12001bbf1e2
['341f4ff6b5e746408a3af4f955545a86']
Thanks everyone for your quick response! I just figured out a solution which works for me: function() { var items = {{dl_products_checkout}}; var itemsValue = []; var sumValue = 0; var i, len; for (i = 0, len = items.length; i < len; i++) { itemsValue.push(items[i].price); for (i = 0; i < itemsVa...
02cc5ae128322ebc1ecced36291c26baa7c7009cb38a74edcc488b49cc452a23
['341f4ff6b5e746408a3af4f955545a86']
i'm trying to get the innerHTML out of two different ids to count words. Therefore i used querySelectorAll with two id matches. I only get the first match back. Is this method even possible? function() { var wordCounts; var wordCountTemp = document.querySelectorAll("#text-block-10, #text-block-12"); var i;...
20d38ed732f8e60245fcf2bc7bd23e3321700d1ed86d1578b75803af42574557
['34487b8774c244a08587a5195dc81319']
If you want to make it generic enough and suitable for real-world application, it's a bit more complicated. First, you probably want to get rid of the content between <script> and </script> tags. Second, you cannot assume that opening tag always contains the same text, e.g. text in <span class="myclass"> is not quite t...
fc2d99fc6ef50b878a6dc186867adbe2699361ca5b8ad4205963cd38e52e212b
['34487b8774c244a08587a5195dc81319']
Styne666 gave the right regex. Here is a little Perl script which is trying to match its first argument with this regex: #!/usr/bin/env perl use strict; use warnings; my $arg = shift; if ($arg =~ m/(#(?=\d*[a-zA-Z])[a-zA-Z\d]{2,})/) { print "$1 MATCHES THE PATTERN!\n"; } else { p...
d2dd55411f5467967e5e8daa96e98a7b6d2449737151c7f6c873b8e85ce3173a
['344a0e74eaee46d5a461fbf14749b8f9']
WOuld strongly recommend refactoring the code, you have nearly identical blocks of code repeating three times and makes the code extreamly difficult to read. Break out the identical parts and put only the differing parts in if clauses. As to solving the actual issue, something like this should work: setDateTimerPickerV...
808dc9ec7b0377a1cc09b51d756a10f8d89e57aa74fd723e7fd73f5bd1d8b1c8
['344a0e74eaee46d5a461fbf14749b8f9']
In JavaScript, functions are just another type of object. Calling a function without arguments is done as follows. This will always execute the function and return the function's return value. var returnValue = b(); Removing the parenthesis will instead treat the function itself as a variable, that can be passed aroun...
814036bdff860adacd4e7023650b2462c05661824476126aee2923e48f408eab
['344cb4fca69344b99dfd89e812d94636']
Your actual Code create a list for each row and an list for each cell, this don't fits together. Following script search the table (it is the only one that has the attribute summary) and loops over each row (tr). Than it gets from the Week column (td class B6) the first part before the " to " and convert it to an datet...
5c31e68c44e2d2963f5551512d84cf298e869cea17333200e2040637fbf37be4
['344cb4fca69344b99dfd89e812d94636']
In addition to the previous post, if i use this HTML: <html> <head></head> <body> <div class="specs__group col-12 col-lg-6" style="min-height: 39px;"> <div class="col-6 specs__cell specs__cell--label">Blade Length (in.)</div> <div class="col-6 specs__cell">16 in</div> </div> <div class="specs__group col-12 col...
27e880663a35e2fe6dc502ed298411f9495debfb0003a212ea9b3810da548922
['345e41d2556d409393e918ea2e9e2c5c']
I have a big zip with 300.000+ files in with all directories and subdirectories On the other hand, I have a list of 1200 files I need to extract from the zip. This list has the dir path and file name in it as one (see exp) Exp: /var/db/bla/file.ext At this moment, I use the following code to search and extract the file...
13edcdb7f5b61a14e2df0fc7124f2e569be5d0ea62c18754c1e022c900b4262e
['345e41d2556d409393e918ea2e9e2c5c']
Hi iam trying t merge a couple of databases with each other. I have the following code to search for the databases, and then combine them. import os import glob import sqlite3 con3 = sqlite3.connect("./combine.SQL") #Empty DB directory_with_databases = "./unpacked/" #folder with "full" *.sql dbs databases = glob...
aec17fdcef987e3aabb09fc93f3a5a0a610268d147dc8395af52fc1b9fbf00f8
['3475c9c3fb634d5ea995437451d06daf']
I solved it a little bit different. Solution for my problem is kind of as Draco18s says...How I solved it is, that I have specified on which position I want to see my value of series. So I have made as first indexof my item in a list. and then I used this index in series data. So solution looks like this $....
fc3737cdf02f6677c678a4fc8d3a46d1b3fc988f8218b4e6c327749ace9caa28
['3475c9c3fb634d5ea995437451d06daf']
I am working on a "schema" search, where you can write some part of the xpath and after that, system should show you what are the further possibilities of the node (so what other node can be accessed after specific node). However, I am looking for some solution which would create me a list of possible parents and child...
e8fb15cbbd5af30c14d2211cc3a5c8625af4ab2a1b4fe954552604c362a2a69e
['347ea95e19e64931880884af5d71a396']
I'm trying to make a push-notification-settings page in my Flutter app. The page should allow the user to configure which push notification he/she wants to receive. For example one wants to receive a notification for a friend request, but doesn't want to be notified when another user accepts a friend request. I wasn't ...
cd34b4e68f14c842883b9a368a2da1c6974c32b92e3eda745408bdf6cba416eb
['347ea95e19e64931880884af5d71a396']
Before I had the version v1.12.13+hotfix.5, then I switched to version v1.14.4 and it worked. The error says that you should add WidgetsFlutterBinding.ensureInitialized();, but since that didn't work for me I switched to the other version. One thing to keep in mind though is that you still have to add WidgetsFlutterBin...
82cef077437623bae990decee8a0ee112870a7ad527a5062fcc6b6fbb525f015
['34808958b3fe404899de0821082f02da']
Let $S=\{x_1,x_2,\dots,x_n\}$ be the set. Since $S$ is a set then $\forall i,j\in\mathbb{N}, 1\le i,j\le n$ if $i\ne j\Rightarrow x_i\ne x_j$. Suppose we have a subset $S'\subset S$ such that $S'$ has not adjacent numbers, then $S'$ has a unique way to "put" its numbers such that $S'=\{y_1,y_2,\dots,y_k\}$ and $y_1<y...
d4c4376d594a30fe5919807ea85b0742fcf5c82c13e3ec75867a6680a9fbd8bf
['34808958b3fe404899de0821082f02da']
This is my solution: Lemma 1: $\forall a,b\in\mathbb{Z}$, if $\gcd(a,b)=1\Rightarrow\gcd(a+b,a)=\gcd(a+b,b)=1$. Lemma 2: $\forall a,b,c\in\mathbb{Z}$, if $\gcd(a,b)=1\Rightarrow\gcd(a,bc)=\gcd(a,c)$. Proving lemma 1: Let $d=\gcd(a+b,a)\Rightarrow d\mid(a+b)~\wedge~d\mid a\Rightarrow d\mid b$, but $\gcd(a,b)=1\Right...
f25964fe1436a568bbd2e249ac9f52f6db480c332f621cecb24c547edf8a2114
['3494716ffcfb466992b23ac5fca993eb']
As you can see here, the formula to standardize is: z = (x-x')/S, where x is a point, x' is the sample mean and S is the stdev of the sample. This means that x' should be the mean of all the lists in a column (for example F1), and S should be the stdev of all the lists in a column. Then this computation z should be ap...
ea5ee2e9fd6783c187120376c610ca4a2e9c63ce53420f6ea343808b928b6456
['3494716ffcfb466992b23ac5fca993eb']
Let me explain one of my approaches, I know it's time-consuming, but if you need something simple-stupid, here it is: When I try to find the optimal number of clusters, I just do a for loop between 2 to n, using a different number of centroids in each iteration, fit the model and print the silhouette score. I select t...
a2bf3b5925e23b01fd67ee9c367c6b3bb07d93230c3b79fb96bce8c4cfbcbd65
['34a4b918064749ae82d9ac645b83530b']
Find the condition on the real numbers $a,b$ and $c$ such that the following system of equations has a solution: $2x+y+3z=a$ $x+z=b$ $y+z=c$ After calculation I get $a-2b-c=0$ will be the answer. Can anybody please confirm me please that I am correct or not.
77515277cc597c3177b4ef32454692b328a9fb110571fd3c0f30ec88c72f053d
['34a4b918064749ae82d9ac645b83530b']
Note that if you get a tooltip at the top of your Chrome browser saying "Apps, extensions, and user scripts cannot be added from this website" after clicking the install link, you can simply go to `chrome://extensions` and drag and drop the `.js` file that is linked to above.
418a3217326a013ee5782264314482facede39b65893ab5037762dd4d315268e
['34b10528f93c4b5bb15c9d52af13a401']
I would like to load a webpage on an iframe and then change some styles from the parent page through javascript. The webpage to load on an iframe isn't on my domain. I mean, it can be some random page on the web. Is this possible? If so, how?
bfbd358aac2844565e9944c1980db519ab85404bc8317c9ea4dc8bbb26e75f68
['34b10528f93c4b5bb15c9d52af13a401']
The SBS Servers tend to gather a lot of backup data, in hidden directories that happens to get the quotas over the limit. You should check for such as at times the servers might have been set up to back up each of the clients in a small SBS environment. Once you do find these then you can proceed to un-hide and delete...
3fa1f6563ff41ae8b9b5f5b5874c55857f487c64127db11caa7c0ca9f01d8866
['34b636351fce490bbc32cae37b763d05']
I installed SuSE 64 bit version, and i saw it has libraries (Samba), installed with both 32 and 64 bit versions. We used to upgrade only the 64 bit version of libraries of Samba in our software package, leaving 32 bit untouched. We are now thinking to totally remove the 32 bit version of libraries from the OS. Will it ...
81578a36dc2f5e574527ed523e35f116b73f91bdce739d9c08f72f76f819e6dc
['34b636351fce490bbc32cae37b763d05']
I am using SUSE Linux 11, in Zenworks distro and i can see. kernel version is: 3.0.13-0.27-default. I can see that when the distro is loaded, the e1000 driver is loaded and not e1000e although e1000e is also present. I have some questions: 1) Why the e1000e driver is not loaded automatically like e1000 ? Does the drive...
0c4e44f97e33a04156382d69723625c05bbdcda0f21042c5990e334301b3eda1
['34bffb30db1c43e29f0cc79ab6f1e6d0']
I also came across this issue and soleved it using the getMultiCapabilities() function in your conf.js const _ = require('lodash'); let capabilities = { chrome: { browserName: 'chrome', platform: 'MAC', 'max-duration': '1800', }, chromeHeadless : { browserName: 'chrome', chromeO...
67edd695368a01eecb184746ef3509038123d1a2d688e110d6ead4860a3afcbd
['34bffb30db1c43e29f0cc79ab6f1e6d0']
You would need to separate your spec files (so data row 1 gets an individual spec file and data row 2 gets an individual spec file etc) then and add the shardTestFiles:true and maxInstances: 3 capability which will run test files in parallel. As far as I am aware running different tests in the same spec file in paralle...
1ff216c44d6c9103c22ae11eda34927d40fa85005cc7db41755963cd3b6f0b2f
['34c0529aaa2341ecb2d257451d6688a4']
In my program a user can log in to a website in webbrowser1. but when I try to log out the logout button is buried beneath a drop down menu. The button has no ID or I would .Invokemember. I have tried clicking and opening the drop down with that method then tried to look for innertext and invoke but failed. can some he...
aac4e88ceacdb4fe326a39fb4d4570ddbba42809069adac6883d518566ca4428
['34c0529aaa2341ecb2d257451d6688a4']
Pardon my lack of knowledge, that is why I am here- I am trying to verify the first 2 bytes of a .bin file with button2. The .bin is loaded via OpenFileDialog1 into Text1.text when button1 is clicked. I want to make sure the first 2 bytes of the .bin are "ff 4f" which is what they are when I open the file in a hex edit...
2ac6d140c95eddc31221b66b86e909f141774503c24ec3b3efbf38c9c1837cbb
['34c0a224ca1b492a8891e89b9ebc1dc7']
Okay, so I've started making a game using Qt so that I can learn both Qt and C++ at the same time :D However, I'm stuck with an issue at the moment. I'm trying to make a textbox using a QGraphicsRectItem as a container (parent), and a QGraphicsTextItem as the text itself (child). The problem I'm facing is the child's r...
bb9bd00a6b885e72d12b9c5e03f788386749cb7ac7cc968439e1f154a14f957e
['34c0a224ca1b492a8891e89b9ebc1dc7']
I've recently started to learn C++ and I'm trying to compile and run a very simple program. #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; cout << "Hello Again!"; return 0; } The program itself compiles as it should without any errors, however, when the program ru...
525b6f89d1940eb7b36590fed53d0ed069de1472d894412d09bcbdb6d74cc714
['34cea832270d4bf9abcf0685ae4c2343']
For whatever reason, the height was being set to 0 somewhere. It worked outside of the HTML5 tabs and I checked the HTML5 tab css and it wasn't being set there so not sure where it was being set. I added this to the RSS feed css to fix it: .rssBody { overflow: hidden; position: relative; height: 748px; } .rssBody li.r...
107049c26eea27b753a750313b13885320194f73b0442d599576c78d401ce973
['34cea832270d4bf9abcf0685ae4c2343']
I'm trying to have multiple Kendo Edit commands on a single row. The total number of Edit buttons will be 6, along with 6 Kendo switches. Each command will have separate emailSubject, emailBody, and emailAddress, which are associated with each switch. I need each command to open a Kendo popup window and be able to upda...
b4c6199401d42db434ec38005736c203ba0fa86a20c6954ec849bedd8e959c65
['34ee9305d165433bb7cc1d23fd9d55e5']
Are you thinking of the dto going into the action, or the one(s) coming out? The one going in will be used directly against a repository, a service or some other collaborator. I would mock those instead and place my expectations there. Your test code will also have full control on creating the ingoing dto. If you like ...
75473c36c454b02a14efd655ffbeb64c2d4a11f732a1007cb57fec87554d0f2a
['34ee9305d165433bb7cc1d23fd9d55e5']
I don't think the database schema ever changes so drastically that the versions of wordpress on box 2 + 3 would be prevented from reading from the DB after you've updated on box 1, however it depends what version you are upgrading from. Why not set a similar environment locally and test upgrading site 1, while still tr...
a355fb6b8b02f8a33c7c858a20140dd93698b49562dcae6bbaa5b3a8b8bb8e7b
['34fa758c32324688bd52bdc1d59978be']
Trying to override callback function in BluetoothGattCallback mGattCallback = new BluetoothGattCallback(){ //something callback function like: @Override public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { //do something read/write } You need to figure out how BLE callbac...
ef471033b1ba15c93836d6e3444da4089dad6757503ecb936efdd9d0fcad85a7
['34fa758c32324688bd52bdc1d59978be']
Here is my opinion: You need to figure out what kind of characteristic you are going to get data? Some of them need to set indication or notify first! Like: a. Get the descriptor of the characteristic BluetoothGattDescriptor descriptor = gattCharacteristic.getDescriptors().get(0); //Usually is Client_Character...
14c554442dd002f3320b265a5bf7c330f29296d916167bf5a4da1ae9cade6377
['35001a7ac2244a16948c70f882c527f9']
When I ran: SP_Spaceused TEST. I got this output which is very strange for 20918 rows. Output: name rows reserved data index_size unused TEST 20918 6240816 KB 6235480 KB 2304 KB 3032 KB I Try to gess The reason. I copy These new records to another table. select * into TEST1 from TEST But...
e08d6f764db4a123eded0e7535ee2195cbafb02620181ce489818832e6d80dc0
['35001a7ac2244a16948c70f882c527f9']
The problem is that your form is using a route that points to the show page, instead of pointing it to the POST /admin/countries endpoint. You have two options: change the url to admin_countries_path or simplifying the route by using only <%= form_tag [:admin, @country] do %>; the :admin refers to the endpoint, so Rail...
10b4b596a60ce35840c5ce8ff480bb8dfb6203f987ef7703a9d627aa1dcd2774
['351119b4d0d946a49c73cef4001367e0']
I have solved this problem by adding linking with additional libraries for FFMPEG: vpx, vorbis, lame. And it is very important to keep the order of linked libraries. ..... ... TARGET = client INC_DIR := inc include $(NACL_SDK_ROOT)/tools/common.mk DEPS = ppapi_simple nacl_io LIBS = ppapi_simple nacl_io ppapi pthread ...
8ec2de58cd63e7150b788a52fbb6c5608fbea8b8113772ba7aa00cbab9c3b4fa
['351119b4d0d946a49c73cef4001367e0']
T writing code using ExtJS4.0.1, MVC architecture. And when I develop main form I meet problem with search extension for web site. When I was trying to create new widget in controller, I need render result in subpanel. and so when I write sample code I meet following problem: **Uncaught TypeError: Object [object Object...
158a59b2a73f0c3b178a17027a70f66e00b0bd1f2336ee6efe03a67b10b3e180
['35177041f60a43a99fb92309ae3ecd81']
I had this problem: How to do unit test with a "socket.io-client" if you don't know how long the server take to respond?. I've solved so using mocha and chai: var os = require('os'); var should = require("chai").should(); var socketio_client = require('socket.io-client'); var end_point = 'http://' + os.hostname() + ':...
53c7c75c7288a77239aec8ab275dd4fb85d69db1f1c01b2a66ad461d64d70ba1
['35177041f60a43a99fb92309ae3ecd81']
I have a WAR application with two servlets deployed into a Tomcat7 server. One of these servlets is to all catch RESTfull web service. When I try to upload a file (with multipart mode); the server throws the follwing exception: org.springframework.web.multipart.MultipartException: Could not parse multipart servlet requ...
6565bf179f90af4f6c0aace6012ebb363b5f8feb85c8ec8c4655dbed71aa2b5d
['351773ba31e445079d2c63a8d722de00']
to test if a string is empty: String someString; //... if(someString != null && !someString.isEmpty()) { //do what you want with the valid string } in your code it will look like this: .setPositiveButton("Add", new DialogInterface.OnClickListener() { @Override ...
e344083f7f4d241ca664fc7ac5aa42ce374d9fe80efdb0b0b696218b77fd55bc
['351773ba31e445079d2c63a8d722de00']
your while loop is actually an endless loop on the main thread. that is why the alert dialog is never shown. How can I use this alertDialog in the while? you shouldn't stall the main thread. replace the while statement to an if statement and continue your code execution after dialog finishes its work: public void get...
c36f3ffe046a0864fd5e240ba67b525f746103b53e324ea7b3d369ab02ca216c
['3523c0be6908485d9653dc6da8cca6c6']
@Keshav solution will update everytime you finish editing the text area If you want to update it directly when you press the key, you can use jQuery and with this code: <!DOCTYPE html> <html> <head> <meta charset='utf-8' /> <title>Test</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery...
b7059dc5c8b6bdcb1653f99724e40b3fe85b8c3ee4f00a119187b0d7e8d6614e
['3523c0be6908485d9653dc6da8cca6c6']
Sorry guys, looks like the error comes from the state of roleCategory student. Let me explain what is my mistake (if you are already familiar with redux, you might think it is a stupid mistake): I used combineReducers functions from redux module. combineReducers will separate the state according to every reducers (corr...
a59f2164b2cbfe60d4edee7c1f33acd50d303f1ef0d0f5ed85047b7e291eb11c
['352d2dccd27a4760b77b852196952e1a']
If you use a jQuery selector for the mega panel width option in the mega panel theme page, the mega panel will expand to the width of that element. So on a site where I was using the Headway theme, I used #whitewrap in that field. That caused my mega panel to expand the full width of #whitewrap, which is the full width...
094b9f2dc4b348b088239eb9483fb0481f269fdc2ab9c7b128511870cb9ee67f
['352d2dccd27a4760b77b852196952e1a']
I've been ask to troubleshoot a problem on a very, very old html website which I did not build. There are two html forms which each call their own php scripts to process them. They have been getting empty form submissions. I put code in place to make three of the fields mandatory as well as added a captcha form. When y...
65cf2c3e02c4d103ff08f8b86ce1c17a281a9f11de5572b5675e238caef28f78
['352e30fd102a4c189a826624afcf208e']
I m working on c# .net web application.I m using Facebook API for retrieving data from Facebook account. Now i want to delete wall post or inbox messages through API. i saw that it can be done by graph api,through deleting object. i try this string token1 = api.Auth.CreateToken(); string sURL = "https:...
76d272725b04a6476075b266a86cd32e61b5b2d1dccc6573ced9f910ef37dcab
['352e30fd102a4c189a826624afcf208e']
Стоит следующая задача, менять цвет сайта в зависимости от категории. Без возможности менять цвет в админке. Есть идея генерить для категории класс типо, category1-class. И заранее в css чтоб мы имели такое: category1-class { .bg-primary{ background: black; } .bg-secondary{ background: white; ...
857927079d8caa9d66aaef558a4d5a864540b0028a1a8c065945a82993e18861
['35301f75522744a88603721ff67c3933']
Created a drawing thread for the surface view that listens to the camera preview callback with OnPreviewFrame. Inside the thread's drawing loop: c.drawColor(0, PorterDuff.Mode.CLEAR); c.drawColor(0x1000000); // magical color that removes everything (like transparency) if (currentFrame == null) return; c.clipPath(circ...
d904edd2fbd406f7b0867014d726bf77c152c27df123ea3c13d4b911fcf67345
['35301f75522744a88603721ff67c3933']
I have a Unity project and am building for iPhone. When the app starts, it is open for about 1 second before it crashes and GetCloudProjectId() is highlighted in the Xcode debug window. The project uses Unity Services In-App Purchasing so it needs a cloud project id. I can see in the Services settings that is set corre...
a0a729dfb673fa2e687666d42e21b8924b6dde26f329f4aed518832f338e712b
['353a9596d80447dcaa5d4b058742733e']
I think the offline aspect of the codes is the most important part of this answer. Just because your computer has internet access doesn't mean your phone does; for example, you could be traveling abroad and not have cell service, and be accessing your account at a public computer terminal with wired internet access and...
9c27b0b95df7d177dd27c081ab96db09d27511aa76d47001b30c1ac61bb4439c
['353a9596d80447dcaa5d4b058742733e']
For reference, our users are aware the camera may be recording (it's stated in our signed agreements with them, and also in a short-form FAQ we have too, just to ensure they're aware), but the light would be incredibly annoying and distracting to them so we shut it off.
185f48e87b4f310ccc9057bee1c1cf3e47fe6652a1fd404fe5da35fc157f2d41
['3547a7712070472b97092d336cd37129']
I'm trying to search off the contents of a sub-document referenced by ObjectId, like so: Model.Idea.findOne('_key.code':code).populate('_key').exec (err,idea) -> return done err if err should.exist idea The schema looks like this: Key = new mongoose.Schema( type: type: String enum: types index: true ...
5c1792462555dd4cec32e48ba8dc19cb23ca4ce1a3b5a668cb29216716743a21
['3547a7712070472b97092d336cd37129']
It looks like this is a result of a bug with Caja and will be fixed when an updated version is merged into Apps Script. The ES6 Error object inheritance implementation in Chrome 44 (as <PERSON> found) is causing SES initialization to fail: Caja Issue 1966 This is being tracked as Apps Script Issue 5084 so if you're af...
a65c6b9d54ef36bb328886abd1ca1552ee4e3f644e64d48caafe05c390abed79
['35572c63cfdf4e18a0b1b56ec233d555']
If you have created model by following proper naming convention then you can try the code below. public function delete($id = null) { $this->User->id = $id; if (!$this->User->exists()) { throw new NotFoundException(__('Invalid user')); } if ($this->User->saveField('status', ...
35801547dec317d5f103048a370a11667299ff42bef91d46c6377d7364b97a13
['35572c63cfdf4e18a0b1b56ec233d555']
I have a table named 'companies'. I want to join this table with 'plans'. I have written following model relation. Company: public $hasAndBelongsToMany = array( 'Plan' => array( 'className' => 'Plan', 'joinTable' => 'companies_plans', 'foreignKey' => 'company_id', ...
d721dbc7eba5fcb247190043d6c32e5d6a3467de1c83e09fe6483f8efbf2116d
['355f6d84c4344609bcb3b43a4c88f6dc']
I installed lightdm to take a look,but I didnt like it...so just removed.But now I have a lot of new stuff(apps) on my gnome dash that I dont want,like "clipter","users and groups","xarchiver",etc,etc...how can I remove all of that,please?? I'm in pop_os(ubuntu based)
745ce8f862494ed7547e3cca5cadee0438e789fae0d8d665fdedb867c1d44877
['355f6d84c4344609bcb3b43a4c88f6dc']
Так попробуйте (особо не проверял, только как путь решения): l = [('Главное меню',), ('О нас',), ('Фотографии',), ('Информация',)] d = {'one_time': False, 'buttons': [[ {'action': {'type': 'text', 'payload': '{"button": "1"}', 'label': label[0]}, 'color': 'primary'} for label in l]]} print(d) {'one_time': False, 'but...
91cf375f80810dffc7356480fb8ad18c4a869311868f893a6d7c9701fe93a766
['35690171d1e14732b05d05ccbb60c353']
I'm currently trying to capitalize the very first letter from an input. Here's what I tryed : fieldset input { text-transform:capitalize; } But it doesn't work the way I want, as every word is capitalized. I also tryed this : fieldset input:first-letter { text-transform:uppercase; } But it seems <input /> doesn...
82a6f213f9ffda5990f8650d75b8fb6fa490b25326bd6a79563056cd3d314aad
['35690171d1e14732b05d05ccbb60c353']
Here my situation : The user click on a LinkButton, and the page does a PostBack. But I also need to prompt a file download to the user at the same time. In order to do that, I did this on the LinkButton lnkPrint.Attributes.Add("onclick", "window.open('Download.ashx?type=x')"); The Download.ashx Http Handler generate...
8ac31772781b4bfe0e69d60eae7130878c69dbebe45e9a4a0d556b52e936dded
['356b267cbd8b4a589dda8b05b2f1259a']
Working with a laravel 5 app and have a problem with phpspec. Why does my Phpspec unit test below fail or more precisely how can I get the stdClass Object keys to match so that it wouldn't fail? My spec file: function it_checks_add_starting_date_to_flow() { $dealflows = new \stdClass (); this->add_s...
b99401db7e1a7e2028da9598b6d2813174885a6f6cd4d8864e11dee41d6910ae
['356b267cbd8b4a589dda8b05b2f1259a']
I have a problem. Was trying to implement ajax post in laravel and now all my buttons with type submit post to the same route even if they didn't have any functionality before. Also, I had a cancel button that redirected to previous screen also with type submit that now also post to the same route as all other buttons....
926ff86a922ccc721cfa88654b70c557640edce9eedea6c1b2d99bc32a8c7174
['357125cd3624444a939f79f05af0346f']
following the documentation for SQL String composition, I want to execute a DELETE statement in my postgresql database: db_cursor.execute(sql.SQL("DELETE FROM {}".format(sql.Identifier(table_name)))) This results in the error: File "try_pandas.py", line 189, in _store_in_table db_cursor.execute(sql.SQL("DELETE FROM {}...
311eb39c8441d7c2265c116ee49ecbb4de1514c28fd528d1c3fe90e6925b695b
['357125cd3624444a939f79f05af0346f']
The function that I want to cache is something like: def a(x, time='last'): I have deterministic behaviour for every a(x,y), except when y=='last'. So when a(x, 'last') is called, I would like to call the "real thing" and an lru_cached function for everything else. I imagine this could be possible with my own decorato...
39de8f2ddaf07106e56ccf3bcb698ed67979c3031205fb72d0587ca3e89db510
['357a00f9ebfe4011ada261d64db158a4']
i can't seem to use UIViewContentModeScaleAspectFit property to scale my imageView within my scrollview to fit the scrollview size. - (void)loadView { UIImage* image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.moilum.com/images/atomicongallery/setmenu/setmenu1.jpg"]]]; image...
0172ce40088b4181eb55bf494b6e90a662ba7e8d3112c58a5fb050f2b14bef3e
['357a00f9ebfe4011ada261d64db158a4']
Hi my delegate isn't passing an image and some strings to my second navigation controller. Can anyone see whats wrong? I've created ImageAndTextDelegate.h , PhotoEditViewController.h/.m and PreviewFrameViewController.h/.m . Basically after selecting some images and typing some text in photoedit. i wanna send the data t...
41f79018ed214a33a1c8be31c4575fcf82249c53b2628a8970aa415275ba7e04
['357a419d508c47c9889834d1c7c0b7f2']
I think it's OK to shrink the text size, of course you should see if it harms the visual consistency with the other buttons. If it's an option, you can shrink the text on the other buttons in this screen. My answer is based on the Translation app of google that can translate signs in real time. They adjust the translat...
d39c4039e0240cc4b1d0423aaa54f89cdd0a32e16c7b5aa4df1fc3621cb78749
['357a419d508c47c9889834d1c7c0b7f2']
I'm following this tutorial on how to import stuff from Source to Blender. https://www.youtube.com/watch?v=XX5mzUeZJDo But when I try to import a map (bsp) I get this error. I get this error when importing from SFM and TF2. I don't know what I can do. Everywhere else I go I get ignored so I'm trying my luck here.
abc0e53f550b2b7dd333049b43115528933f9530b5616c59d585b71997a7f139
['358abe14176444a18782bf01ec0e4bfa']
I had the same problem with OpenJDK 8. The font called "Monospaced" was correctly mapped to "DejaVu Sans Mono" for the "regular"/"plain" style, but something else (probably automatically bolded) for "bold", even if using "DejaVu Sans Mono" directly does the correct thing. The solution is to fix ~/.java/fonts/*/fcinfo*....
f43141008d93b5d40f54b2b9931bbca5eadd7525a869e652ff58f5a866164d43
['358abe14176444a18782bf01ec0e4bfa']
Using Fluent NHibernate, I have succeeded in setting up a global Filter on my NHibernate session, and using it in ClassMap classes. The Filter WHERE clause is appended to queries using that map automagically as it should - as described in other posts on this forum. Fluent NHibernate does not implement ApplyFilter<> of...
2278580172ab43423db2c0ad0667d36e6e36e534a518f57c927158446fde3312
['3592a207fc63452a8b9452ac88fd353c']
First of all, I'm a relative newbie to coding. My goal is to scrape at least the last decade of Billboard Hot 100 charts using the Python code below with billboard.py. My hiccup is I have tried a few variants of while loop statements and none have seemed to work to get me to the previous chart. I have an idea of how it...
80b02279184fdc23ba963732bdea3b583b92ad9812b379d1fa60ce47ca2b40e7
['3592a207fc63452a8b9452ac88fd353c']
I figured it out. I had to change how my script was comprehending the for loop. My revised code below import billboard import csv chart = billboard.ChartData('hot-100') #chart = billboard.ChartData('hot-100', date=None, fetch=True, max_retries=5, timeout=25) f = open('hot-100.csv', 'w') headers = 'title, artist, pea...
a8af40f0ff2b6284d09b63d9d7768edc521160926f979f48f285ab03a1e7de42
['359f6620d7d341bfb5bf6a6e5aa95f69']
You can create two buttons, Something like this. <button onclick="showImage(-1)">&#10094;</button> <button conclick="showImage(+1)">&#10095;</button> and write the javascript function something like this to select the images function(showImage(n){ var y; var x = document.getElementsByClassName("mySlides"); if (n...
818d613651454180208826ceeafebd04f6aeb123c04c3f925692fa404124c14a
['359f6620d7d341bfb5bf6a6e5aa95f69']
XML File: <item> <item_price>56</item_price> <gst>10</gst> </item> <item> <item_price>75</item_price> <gst>10</gst> </item> <item> <item_price>99</item_price> <gst>10</gst> </item> I need to sum of each (item_price*gst) using XSLT I have managed to get the output individual by using for each loop: <xsl:for-each select...
e71ca2cfec5a1d3b066e9f84af8184545158f7f5d879cf52f44f51b4731ff8cc
['35a723fa8b074ebd82a43ac66cb6e267']
Is a function a "special kind of relation", or, does it "describe a specific relation"? My text on discrete mathematics explains: A relation is a subset of a Cartesian product and a function is a special kind of relation. But it would make more sense to me if a function described a relation as a subset of the Carte...
5fd1237cb75c9ee5cab00183e23e94a591fcd101f8e4e98a8cf9c67166f6051d
['35a723fa8b074ebd82a43ac66cb6e267']
It would be easier if you provided your config, however, it seems all you want is redirect a specific URL to another URL. You can achieve this with the "redirect" keyword. There are multiple ways you could achieve what you want, using different "redirect" keyword combination, so here's one solution: frontend http a...
d229cd105d0f2191241ed8a9774eccec30bc66d2d3115038f9968f349d9208a9
['35ae1dce50b741c1b080e94fe4e6e5e3']
My program is supposed to basically output the sum 1+2+3+4+5 and get 15 and then stop. However, it stops at 6 rather than 15. I know my while is a<6 and not 15. Im trying to accomplish it going through 1+2+3+4+5 and stopping at 6 that way. a=1 s=0 while a<6: s+=a a+=1 print (a)
eb4098dcd12cb1c1c99525cb6f938496e4ad9ebb11989cb490d17f8486e2fc9c
['35ae1dce50b741c1b080e94fe4e6e5e3']
My program is supposed to take an input and output powers of 2. For example input 8, and output 1,2,4,8,16,32,65,128. However, instead of doing the 8 integers and outputting each *2, it only goes up to when it hits the number 8 and stops. I do not want to use the ** operator. limit=input('Enter a value for limit') limi...
af7ee9f6e757242b6a146d08c277da1ef02b46cc9212740ce7b40ffd127a2cf4
['35b47984400b46f8b01937e2afdcce2e']
I was following this guide to set up jabbed on cluster http://chadillac.github.io/2012/11/17/easy-ejabberd-clustering-guide-mnesia-mysql/ I am using two was instances having ip Master -> 111.222.333.444 Slave -> 222.333.444.555 But since I do not have DNS configured so I am using ip addresses like 111.222.333.444 etc...
7b8db879fe49661ec4e02c264267ced28c079a3b1a98af32ec3958e1938cfe6d
['35b47984400b46f8b01937e2afdcce2e']
I was working on mapbox and on the basis of my current latlong, a random distance of 226mt and a random degree of 179 degrees, I calculated another latlong as follows. function findpos(){ var ptt = new mapboxgl.LngLat(latitude,longitude); var ptt2 = destinationPoint(179.85, 0.226, ptt); return ptt2; } ...