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 |
|---|---|---|---|---|---|
00ed279da0671b58412ab6b340c92cab664131dd4e65d0fb469cd686d3742fae | ['a2c69657376041768d7ca5685ef2eb0b'] | Actually its quite easy to authenticate a customer in your case. The customer info SOAP response gives us the password_hash of the user registered in Magento. This hash is an md5 hash which can authenticated using the password which the user will enter along with his email in your system. I have a sample code below hop... | ba03262fd9c4c79fa54653c5a17c94d062392956a2efbd89f4203b708a1eced0 | ['a2c69657376041768d7ca5685ef2eb0b'] | If any one in the future is going to face this same problem with the Mana Dev layered navigation bar this might help. You are seeing this error because you have deleted an attribute from the system which was being used by mana dev. Now Mana dev plugin keeps a copy of the attribute used in layered navigation or search, ... |
bd57a4bb93ae68789faa450c1faffa62fda1e650a55c60ee3fcb3151d3ec3c4b | ['a2da6ced4cfd4e8d85bc2b15ce456d06'] | I have a group of (dynamically added) div tags which the user can drag around the screen. What I need to happen is when the user drags (using JQuery draggable) one of the divs near to another div for a line / border to appear, and then the divs to lock together, similar to how Google docs presentation and MS PowerPoint... | dbe91340c65f4ae93b2de235c16a0a6c971998a922aad253ec5de1d07c24c1eb | ['a2da6ced4cfd4e8d85bc2b15ce456d06'] | I have some code which works in essence, but fails to add one to the value stored in a MySQL Database.
The aim is that a word is picked from a text file, the scripts check if it is in the database already and if it is, add 1 to the relevant row in the database. All of this works except for the +1, which just adds an ar... |
d36e50186220e1d2fcf61c628d260c55428be1d5d00f8fa219d541c6ad20360f | ['a2de202a03b54484ac234b710f481037'] | I have a data table and a code table, And I want to join one column of the code table to two columns in the data table.
I didn't find a way to join so I tried:
SELECT
A.COLUMN1,
(SELECT CODE_NAME FROM CODE_TABLE B WHERE B.CODE = A.COLUMN2) AS COLUMN2,
(SELECT CODE_NAME FROM CODE_TABLE B WHERE B.CODE = A.COLUMN3... | de6c6b27be9cd942f02a3fe636a0472121a64b4575b7c60555ccb4e102f07f80 | ['a2de202a03b54484ac234b710f481037'] | I have an app that consists of a pure webview. I have been running this app for about six months and have had no problems so far. But about a month ago there was a problem.
Users of galaxy note 8 and 9 are experiencing inconvenience. My app will see the login screen for the first time. Here, users of galaxy notes 8 and... |
1b75a2e68db970dfb0a9d3f96ecf8f52e2975d71f2c16480d1faabfef8825386 | ['a2df956ee7e94a58ab399b180727c983'] | I've just got my 2D sprite game running on the 360 and WP7 and it's far slower on these than the Windows counterpart. The FPS is about a frame a second, but on windows its smooth. I'm using Farseer the latest version in this. Is there anything on these two platforms that could cause such a drastic slowdown?
Thanks in a... | 8cef737d93e9e6dfdca8e000eedc0173bbe835c0b498417921fad1f279854335 | ['a2df956ee7e94a58ab399b180727c983'] | I've added uap10.0 to the target frameworks list in the CSProj file (Net Core project) so that I can reference this library from a UWP project.
As follows:-
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp1.1;net462;uap10.0;xamarin.ios10;MonoAndroid70</TargetFrameworks>
</Property... |
8db2e0c85c94a29450680630e82b5ac324b340d0e610494ebf19e757797577bb | ['a2e0dc0936b3499ca55c7760859b796b'] | So, I'm making a custom PC case for myself. I want to add a simple on/off key switch (like all of the bikes have), only on ignition, start + restart button should work.
Here problem is that, I bought a ignition switch of some motor bike which has on/off as I wanted, but when switch is ON, circuit opens, when it is OF... | f1427034fe8ec5d97d879e7491ad9fd23773cd6d3c2985f6c54ead6d92bae342 | ['a2e0dc0936b3499ca55c7760859b796b'] | So I've three relays connected in parallel. Each of them gets triggerd with 9v and I've a 5v source. Can I trigger all the relays with 5v by connecting some kind of additional electrical part, like capacitor or something? Btw they all should be triggered always be default (continuous flow should be present).
Also a ... |
0b961a02bc1a3006c58a4a98e8431cd5dda6b3726842a4d1921cdc731dce85c6 | ['a3044538325145f28bde6bc109d49a2b'] | I'm trying to generate an adjacency matrix (later to be used to create a social network graph) from a simple three-variable data set. See below.
Year Company Project
2001 A Proj1
2001 B Proj1
2005 C Proj3
2004 D Proj4
2004 E Proj4
The idea is to generate a matrix in which... | 4f59544d9b2d9d9d5d88ab0f7178994cab8f997218c08dc9f5f6fea593b93571 | ['a3044538325145f28bde6bc109d49a2b'] | I have a data frame that looks as follows:
df <- data.frame(x = c('a', 'b', 'c', 'd'),
y = c('b', 'a', 'c', 'c'),
z = c(1, 1, 1, 4))
I would like to identify duplicate cases/rows. Seems like simple task I thought I should be able to tackle via duplicates or unique. Not so much, unle... |
8af45d7e575d7ad45036dfcce70364e8b8bd8e2693fde88ec562295ac4e0b055 | ['a3170ff036064310ba2bc6f7af0ef0d3'] | I tried to add this ppa and it's working. As a workaround to add it to your system execute the following under root (sudo su before executing the following code):
echo deb http://ppa.launchpad.net/captiva/ppa/ubuntu trusty main > /etc/apt/sources.list.d/captiva-ppa-trusty.list
apt-key adv --keyserver keyserver.ubuntu.c... | 3a2179f53b08136d92f93f13fbd34ac166303ed8f451bb07f913c37ea39e0f26 | ['a3170ff036064310ba2bc6f7af0ef0d3'] | See the domain's whois data:
$ whois youplus.biz |grep 'Name Server'
Name Server: NS77.DOMAINCONTROL.COM
Name Server: NS78.DOMAINCONTROL.COM
It happens this way:
When you do
dig @<IP_ADDRESS> www.youplus.biz
you force dig to go to <IP_ADDRESS> nameser... |
ed3b99acab461ed0f3b14cf33913f7f92bf30123e2457b562297b36e970091fc | ['a32956678b07414dac0c0a14f219ae75'] | I am interested in comparison of visualization of dataset: histogram and density. I used dataset below for example only, however the idea is the same and it is for Poisson distribution:
Could anyone help me to plot display this with ggplot2?
example <- read.csv(file=url('http://www.math.uah.edu/stat/data/HorseKicks.csv... | b914cac05c4687810c9173da16aef46755b3c6110c4ceca7b643bf77a7e9f32d | ['a32956678b07414dac0c0a14f219ae75'] | For the subject of generalized linear models:
How to construct a nested sequence of (at least 100) models by adding one variable at time?
There is a base model_0, E(Y) = b0 + b1x1 + b2x2, which is a part of next complicated model.
The pattern is:
model_1 = model_0+b3x1*x2
model_2 = model_1+b4x1^2
model_3 = model_2+b... |
8cc89ffca0553d027739455a4c319443b951b4eba9f4db52e81944093bb58675 | ['a3309aa6285645db8b2fd35429afb29f'] | First, sorry for my bad english, okay go to this question above. I was surfing a lot for reference about this question on many websites, but i didn't find the right answer yet.
I'm trying to make a C program which this program can determine if the user input an integer or not, if user didn't input an integer then the p... | e82bf73b038fa6c9a6d9a3d1790a5b46233e27784104dc595e1e22d6967f299b | ['a3309aa6285645db8b2fd35429afb29f'] | Forget about bootstrap img-responsive, try to use pure css code and embed it to the image html tag. And use Viewport-percentage lengths: the vw, vh, vmin, vmax units. Vw (for width) and vh (for height) for sizing the image.
Here's the example code :
<img src="/images/xxx.jpg" style="width:100vh; height:150vh"/>
for m... |
9921b00f1d3e073d6001e14c7cb1b8e7ad7e06d1861cffeacbbd6d6d12ab8700 | ['a33237dfda6b4aca91309bc2f8c9f3f9'] | We have this problem on all our servers, I check one of them is using VMXNET3 and problem still exists.
We are struggling with problem about 2 years... Next time this problem happens, we are going to use Microsoft Network Monitor to trace packet in order to find a clue. | 3d90341775e2ca4d74b46bb14f93e21863a2ec5051c4687e19abfa40823f24b7 | ['a33237dfda6b4aca91309bc2f8c9f3f9'] | No we don't use IIS Dynamic IP Restriction, We use similar rule on our firewall before web server, and nothing special is reported by firewall when this problem happens. Very interesting point is that even sites without any active connection are affected by this problem. and I think problem is not related to heavy load... |
59dde017188a6cc8b6015288285e18d539b9d923fc9f570525de847ca6dabb2d | ['a33a52c62d8a4241a0b9818c70ab9917'] | I'm working though <PERSON>'s Lie groups, Lie algebras, and representations and I want to show that the matrix Lie group $Sp(2N,\mathbb{R})$ is not locally compact. I've already shown that it fails to be compact since it is not bounded. The text doesn't talk about local compactness at all. How would I go about proving ... | af2a5d4751a37303565545764e72414e92f7192282c4929ac29773092b745d07 | ['a33a52c62d8a4241a0b9818c70ab9917'] | Let $\phi:A \rightarrow B$ be a ring homomorphism, $M$ be an $A$-module, and $N$ a $B$-module.
Prove that
$$N \otimes_B (B \otimes_A M) \cong N \otimes_A M$$ as either $A$ or $B$-modules.
We know that $B \otimes_AM$ is a $B$-module and $N$ is an $A$-module via extension and restriction of scalars. We have that $N \cong... |
844a6e6b3f30ab55d0b1d74db3371c0b23324b372a8a864e6b3076e2f5cd45f3 | ['a347e22c5ad24a609100e0862f42294a'] | It's best to use from 9AM to 4PM , as I'm not sure implementing 9.30 till end at 4 in single line
00,15,30,45 09-16 * * 1-5 command*****
If you want exactly start at 9.30, you would end up adding two lines.
30,45 09-15 * * 1-5 command
00,15 10-16 * * 1-5 command
| 5425877477d5b2918bf41ea881b14d6dc7254151ac95f34fdab2706ef8e2be7d | ['a347e22c5ad24a609100e0862f42294a'] | The webpage content you want to download, should re direct you to the first website you mentioned if the cookie is not available for your session.
Ideally you don't have to authenticate with cookie site and launch the to be downloaded URL.
Use below parameters with wget to get authenticated on redirect.
wget --usernam... |
e625bed5f7c19bb06b158405bd5d6c41239d9f045a6b43392186e2485bd62299 | ['a366705452284d61aec2d4e389e8c5cc'] | Всем доброго времени суток!
Столкнулся с такой проблемой, как отправка сообщений с localhost. Использую сборку XAMPP (Win7).
Пытался по этой инструкции (http://www.simplecoding.org/php-mail-pod-windows.html) и на этом форуме (https://php.ru/forum/threads/otpravka-pochty-s-lokalxost.40515/) (надеюсь администрация не рас... | 8e4bb35e166720634b103829484207348e3e43cbd069a24d1985fdcf73cab0db | ['a366705452284d61aec2d4e389e8c5cc'] | The idea is to use l2 cohomology as a quasiregular map invariant.
It is easy to see that there are closed 1-forms on the ring which are not exact, but it occures that every closed l2-form in punctured ball
$f_1(x,y)dx + f_2(x,y)dy$
is exact. Here $f_1$ and $f_2$ are $C^{\infty}(B_1\backslash\{0\})\cap L^2(B_1\backslash... |
a8fb2e8c232b9c901ee4d3cbb0f1cd8f79ab209fc0be7a56bcb1319f588f6ae1 | ['a36815ccb27e4311ba7e3f8745fcded6'] | If you don't want to manually type out a level table like the other answer suggets you can also try doing your process with a recursive function:
$current_exp = 0;
$current_level = 1;
$to_next_level = 1000;
function did_level( $amount = 0 ) {
global $current_exp;
global $curent_level;
global $to_next_level... | cf883ce70a210771cf324147db8efe794d882905ebd288a9eebde5e5413ba9f0 | ['a36815ccb27e4311ba7e3f8745fcded6'] | Check your line with:
realpath(dirname('__FILE__'));
__FILE__
is a magic constant, and should not be wrapped in single or double quotes.
If you were to echo out the result of that function call you would probably see a different path than what you're expecting.
You're also trying to use string interpolation with sin... |
1215e7842fb0a6634962b037b7ed215e6dfdb5f1baa315a8187fcd04ad5533f6 | ['a389091deba24ef9a5a45f7712e1434c'] | I'm trying to learn Django but I need help because I'm having trouble understanding.
how can I iterate through all of my models without having to write for loops for each level of tasks that I have?
Example but like infinite sub tasks:
Task #1
1.1 Subtask #1
1.2 Subtask #2
1.2.1 Subsubtask #3
Task #2
2.1 Subtask #4
... | 34200385d7aa91199dcc9fb09374e3c5ad22233e2766f2247700fe730db8980c | ['a389091deba24ef9a5a45f7712e1434c'] | I'm trying to recurse my list.
but even if I have only one task under another task it runs ERROR maximum recursion depth? Why?
task_recurse.html
{% if items %}
<ul>
{% for task in items %}
<li>
{{ task.name }}
{% with items=task.subtask.all template_name="task_recurse.html" %}
{... |
493559f0fd2953360f8f50594079b4ab5fd99f55ee0693e0604833e66c30a560 | ['a39fa63da08f45f1b7d057ba9f245b47'] | I provide an answer that runs in O(h) running time.
class Node {
public int key;
public Node l;
public Node r;
public Node p;
public Node(int key) {
this.key = key;
this.l = null;
this.r = null;
this.p = null;
}
}
public Node preorderNext(Node v) {
if (v.l !... | ba9f06ae480474cb59ad62bc6b81064be258cd792f97bf089fb30d2c6883a433 | ['a39fa63da08f45f1b7d057ba9f245b47'] | Currently I'm learning threads in java. I'm wondering what happens when a thread's run() has returned(which means the thread is dead)? For example:
public class ThreadA extends Thread {
private Thread threadB = new ThreadB();
...
@Override
public void run() {
threadB.start(); //It will take a ... |
01bb0baf0d6442d7d77c30eb0ea3765fc54549459f6fd823b78a3192c64faef6 | ['a3abc7dd83bc4c8db9787492d1e7bf79'] | I've solved the problem.
What i did was to change the base in setup.py to : base = None
and I installed the xlsxwriter by following this thread: ImportError: No module named 'xlsxwriter': Error in <PERSON>
After this, I encountered another problem:
No module named: scipy.sparse.csgraph._validation
but I simply add th... | e0acccc4885a46237d38b90330e580dfec956728d0e28a05da97df993cef3d17 | ['a3abc7dd83bc4c8db9787492d1e7bf79'] | I made an executable gui (with tkinter) file using cx_freeze. The executable has several buttons. When the user click the button, the calculation should work and then it will write out an xlsx file.
Everything went good when I make the executable, there was no error. But when I click the button, it seems like the calcu... |
01521ef3a26fffb2628ae609b3c4cd1a18d7d9a6b509083ff207fcbd6574afcc | ['a3b23d93167249baa1ad96af76898f3f'] | Say, Tables A & B had common column AB and tables B & C had a common column BC, then you could use a query similar to the following (table B would have column AB and BC while A would have just AB and C would have just BC):
select A.*, C.*
from A
join B ON A.AB = B.AB
join C ON B.BC = C.BC
| a2a89cfb6b297184ca208efe8c7a61331842a529bd826e2037d98123a04b9871 | ['a3b23d93167249baa1ad96af76898f3f'] | You need to include the ngRoute module. It was put into its own module a few releases ago.
Make this change and see if it works:
var demoApp = angular.module('demoApp', ['ngRoute']);
You have included the script file for it but have not indicated that demoApp has a dependency on it.
|
1ba5685a5578bd8403952d77fa0a8e4ef8a26a79cc5f0a9dfe70e4ce339951c9 | ['a3b8dbc49e044f37b62462d2c25f1776'] | As <PERSON> said, we have 2 invocation methods:
1) python -m tests.core_test
2) python tests/core_test.py
One difference between them is sys.path[0] string. Since the interpret will search sys.path when doing import, we can do with tests/core_test.py:
if __name__ == '__main__':
import sys
from pathlib import P... | cbb6482cb6aea5ddc6d9a004e7fd8c9906c80fd284ba11690aefd340843518c1 | ['a3b8dbc49e044f37b62462d2c25f1776'] | Pro: F-literal has better performance.(See below)
Con: F-literal is a new 3.6 feature.
In [1]: title = 'Mr.'
...: name = '<PERSON>'
...: count = 3
...:
...:
In [2]: %timeit 'Hello {title} {name}! You have {count} messages.'.format(title=title, name=name, count=count)
330 ns ± 1.08 ns per loop (mean ± std... |
549aec93922b8c7d7fe04979bdc76564d9f8730770d6701a98202d82d0e7be3c | ['a3baefcb1acd4282bb42e3f2974085fe'] | public void paintComponent(Graphics g) {
Image frstWinBackg = new ImageIcon("new.jpg").getImage();
g.drawImage(frstWinBackg, 0, 0, getWidth(), getHeight(), this);
}
I am drawing an image file as JPanel background through above code. When I make executable jar file of my project, I have to keep that image file ... | 919ce9042a4615bf8f2b6c9ab50d163a5def7bb87d3a970e2b96e0a6d575cdc5 | ['a3baefcb1acd4282bb42e3f2974085fe'] | public void paintComponent(Graphics g) {
Image frstWinBackg = new ImageIcon("new.jpg").getImage();
g.drawImage(frstWinBackg, 0, 0, getWidth(), getHeight(), this);
}
In this code, image file is read inside paintComponent() method. As paintComponent() method can be called several times in a second, it searches f... |
b81fefd817aea0592e5af81d86589dc7f016b041f701a8343918baec4b81eae5 | ['a3beeed614c14c699c489ca6e85303de'] | How do I install Let's Encrypt Certificates on amazon Linux I already have a WordPress website hosted.
Can anyone tell me the steps how do i start with it and what are the commands and what permission I should change and how do i edit ssl.conf and add certificates and auto renew.
| 7e24c8251278d877ea0a03901b4f9c38ed2584cb8a6ba46c9bad39e8d0970d21 | ['a3beeed614c14c699c489ca6e85303de'] | <PERSON> Thanks for you response. My first thought as an alternative is not a real service instance, but rather a Fake. I believe Fake dependencies would still let it be called Unit test. If providing a real instance I agree it would need to be have a configuration without side effects/external deps. Models instances, ... |
475ae55e39d1f99ce3517e2dc0c175b40f26e858b33fb91bc59ae75f92892aa7 | ['a3c1e925f169478aacd474d979294ac9'] | I'm currently using MVC5.
Imagine the scenario where one controller ActionA does its work and the redirects to another controller ActionB but also wants this second method to display a message on its related view.
If Controller ActionA sets the ViewBag.Message and then calls RedirectToAction, when ActionB starts, the v... | 6abac9be594ccacf6e72bf22314e3a21ee677e85b1815d954bc3ec269a951be7 | ['a3c1e925f169478aacd474d979294ac9'] | I'm reading left and right about Async and Task but I still don't get how one can wrap an existing 3rd party call into an async method.
Mainly the 3rd party dll offers a method to call one of their APIs
var client = new FooClient();
var response = client.CallMethod(param1, message);
if (response.RestException != null)... |
c38063ff59ff586fd0613c3fb39bd2b2966c76475c9d2749b1073ce9ab0e715a | ['a3c3709f6af248de9d47a4ecbb589f55'] | I detected few days ago that my server was under slowloris attack (I found a lot of "-" 408 0 "-" "-" values in my access.log).
I changed my configuration like this:
In mod_reqtimeout:
RequestReadTimeout header=5-20,minrate=20
I installed mod_qos and configured it like that:
QS_SrvMaxConnPerIP 50
QS_SrvMinDataRate 120... | 65eb3e11e65fb4ddf62eab208ef0bbbbfdbde8f161f046c11b4330175ab3ac63 | ['a3c3709f6af248de9d47a4ecbb589f55'] | I wanted to assess the feasibility of using a on/off push button controller IC to latch the input ON so the hold down time required is minimal. My battery pack is fairly large and 6uA would take quite some time to kill the battery. I just thought it was odd a basic FET leakage was much less in comparison |
aa2cb6409051a305a02344126cf68b9cb87a6edd5fa426a2c1b8d296c7bdd0b9 | ['a3cec9abb545449794dd6be7fe693141'] |
Let $P(x)$ be a polynomial of degree 4 , having extremum at $x=1,x=2$ and $$\lim_{x\to 0}\frac{x^2+P(x)}{x^2}=2.$$ Then what is the value of $P(2)$?
I worked out the limit using L'Hospital got a relation in terms of second derivative of $P$; the other derivative relations are that first derivatives are zero at 1,2.
... | b86762e105d94c5eb7ff22bfb4dff6202d669979694f3fc6c22c7aee3286b76a | ['a3cec9abb545449794dd6be7fe693141'] | I'm trying to update the retention label and sensitivity label of a file in a SharePoint Online Document Library using CSOM.
I can update the Retention Label using the SetComplianceTag method and it works well. How do I update the sensitivity label? From what I could see online, I use the same method, but when I try an... |
bec11c56e46bf9295e271f500f39554941c73b108f7f6850765e2b7e2502e8d3 | ['a3d8b63f7531483b99f1dd2fa54757d1'] | @DaveyDaveDave maybe I should've stopped the conversation after my "Please don't answer if you don't know what you're talking about" comment. but when you ask 1+1=? and someone answers 3 and they persist on it, I can only replicate by calling them incompetent, call that rude, I call it saying the truth. Answers of the ... | f65f086eabd535f6946dda2d30d14bc2184aaa25a7611cda740c041fd44dfbb6 | ['a3d8b63f7531483b99f1dd2fa54757d1'] | I'm performance testing the below Javascript code snippet under Firefox, Chrome, and Safari
var f = function(x) {
return Math.sin(x);
}
function testSpeed() {
console.log("test started, please hold on...");
var time = Date.now();
for(var i = 0; i < 1000; i ++) {
for(var x = 1; x < 200000; x ++) {
f... |
2c56bcf5b0198a96d9f1625732024d71bef8087287323152d4b9a13b3032c2ee | ['a3f486d36ee142f79a25278109c08c7d'] | I am currently receiving 2 e-mails a day asking me to update a Wordpress multisite I once worked on...and I am starting to get desperate!
Things I have tried:
I have changed my email adress both for the admin user and in the general settings.
I have tried adding the following to the functions.php file:
apply_filters(... | 88e0d99e1f3070bac965f5339751429bdc4c9406a3deebace8848ef0ad70e520 | ['a3f486d36ee142f79a25278109c08c7d'] | I'm attempting to create a booking calendar using the jQuery UI datepicker.
I want to be able to save all the dates in between a min and max range. Meaning, when the user selects a min date of "04/16/2014" and max date of "04/19/2014" I want to save every day in that range to an array.
Saving just the min and max date ... |
9e370e02e718298e7f54aa166e53f8ee39b7cb2b283ea520e1a487512e14ff02 | ['a3f9e3d864dc44ceb01ae8331cffedb4'] | I have android project where - ListClass has a Listview. Upon clicking on an item of Listview - opens CardFlipActivity with two fragments that are set up to be viewed as pageflip action. I need to play a video on the top fragment and display a image in the bottom fragment of the CardFlipActivity
1) How to pass the st... | 70077b1dad0a97705788955071ad70618d8dc4ba4577647bb964824721f260e9 | ['a3f9e3d864dc44ceb01ae8331cffedb4'] | I have a tab bar project with one tab in the beginning and the view controller has buttons. If a button is tapped - a specific view controller is expected to be added to the tabbarcontroller/tab items. But each time I press the button the same viewcontroller/tab item is being added (multiple tab items of the same). I a... |
577a8a8311ac2c86d3ede71ce16cc3e5cd0085f4efa3a53c4731b673bae5bca6 | ['a3fe5b6a0ef443c09c014f8d33ba7651'] | If your script depends on having variable names have hyphens, that's a programming error. If it is convenient for you because of the tools that you regularly use to have the variable names contain a hyphen, you may have to learn more and different tools.
Have you tried using tr to convert the hyphens into underscores?... | bff1cf319cbee5f99bbeb4f3d6582efd84dc127668017cfa0d2b3d16db21f82e | ['a3fe5b6a0ef443c09c014f8d33ba7651'] | I agree with <PERSON> answer in general. I would add you need to read the installation docs to know what "make clean" actually does. There can be different levels of clean that you might need to use, such as "make realclean" and "make distclean." There are informal conventions for these, but nothing carved in stone.
|
77b313c2d2e6f45e3bb8a355b124191e654db7421f682fba1d901cb1fb20ffdc | ['a405304e73fd4e62968624a2bf92f2cf'] | Yes, you can do that. You will have to create a wrapper bean around the data source class. Here is an example of how I have done it before. Hope this helps!
<beans>
<bean id="someDao" class="com.dao.SomeDAOImpl">
<property name="datasource">
<ref local="secureDataSource"/>
</property>
... | 14b810eaa39d4e34f4adc7056faaa03020a4880847fa2d10f95ee300860af692 | ['a405304e73fd4e62968624a2bf92f2cf'] | Since you mentioned you want to do certain things during the deployment I think you can use spring here to perform certain tasks or load something in memory (cache) during deployment. For example in the application context xml you can have this:-
<bean id="someCache" class="com.my.company.MyCache"
init-method... |
624a6140f3f9d234cbd58ee1989e95b1200a18fb2edd33103cd12de451c00469 | ['a41a1c1678bb423e9caf57fd6f096419'] | How would I create variable sub-headers in a BIRT list..
The original BIRT list is as follows:
Sys_ID | Sys_Name | App_ID | App_Name
----------------------------------------
S1 | ABR | A1 | ABR: Bim
S1 | ABR | A2 | ABR: Dip
S1 | ABR | A3 | ABR: Saw
S2 | TIP ... | 2fa719425afff905fc45eb9073366f1c3963b65646472a01b8c6edf7c26f5ff7 | ['a41a1c1678bb423e9caf57fd6f096419'] | I'm trying to implement an SSRS report without showing repeated subreport headers in each subreport shown in the top-level report, when it runs.
But I still want to show the top-level header on the first header row of the top-level report, the top-level header's columns of which correspond to each subreport's columns o... |
074984cbca4beda5102d8b1f5ed66445830dcc4ea8eb62170197365163b189cd | ['a4279dab25a643e9889f6d1a9c42ba42'] | Could it be a mistake, that Im operator is not "idempotent", since, if I apply it to a, say, 5+i4, I should get number 4, and since 4 is real, next time I apply Im to 4, I get 0 ? If shown in Cartesian coordinate system, first application of Im will project to imaginary axis, and every next time, there will be no need ... | 13decff679191b5f398fc24868435ac88770d882045306a0e7bed302ae45b476 | ['a4279dab25a643e9889f6d1a9c42ba42'] | Всем привет! У меня есть два файла - .mov и .jpg. Они располагаются в Firebase Storage. У меня есть URL для их загрузки.
Что необходимо -
Загрузить эти два файла и записать их локально. Далее воспользоваться local URL для того, чтобы к ним обратиться. Проблема заключается в том, что реакции на запись нет вообще никако... |
7ab398f746ea8e5c5ef9fd13b23bef90b11c2f8ad42aa1c21714b158100a9e34 | ['a443d142f77f4aae8761cd2c548777fc'] | Can we do operations on a csv file or sql table without reading the file ,i.e without using read_csv or read_sql_table.
Basically i have a very large files and need to compare both files or tables and delete the common rows.
import pandas as pd
colnames=['email']
data= pd.read_csv("sample",names=colnames, header=None... | b99c09a4b187b7e9f0622b550deb051dffe81adf47bc63f14e7d9ace624e3de5 | ['a443d142f77f4aae8761cd2c548777fc'] | I was able to pick the records from the mysql table and put them in queue later get them from queue but not able to insert into a new mysql table.
Here i am able to pick up only the new records when ever they fall into the table.
Hope this may help you.
Any mistakes please assist me.
from threading import Thread
import... |
6958af54416df8a33a5290066bcf8982c58fcd0e1b4072a6c28514ada2cb2319 | ['a4507e9348a24f4eb30c27a35169c222'] | I am on Lubuntu 18.04 LTS. I want to create a hotspot in a simple way so that I can share my LAN (wired) connection with my Android phone. Tried several method, including manually creating wifi hotspot (edit connection etc.) , but still not successful. At most, my phone is able to authenticate, but getting stuck at "Fe... | 3686e96ed115a0266211b9ad98da5b1f2a0f521f725bbcc7a1563b3e510bf5d6 | ['a4507e9348a24f4eb30c27a35169c222'] | On my Windows 10 laptop, (UEFI Secure boot), I can boot from Ubuntu18:04 live-USB, successfully. I don't actually install Ubuntu ( I choose "Try Ubuntu"). Still, when I reboot (after proper Shutdown and removing USB), I get Windows boot menu with Win-10 and Ubuntu as option. It means, this EFI entry is being created on... |
78406e3ce178173b0a1dfddef257c3c52b64d88570c18bd528ebabd34cbe4eda | ['a467dd5b8ff2493ebc11abf9b6591f77'] | I don't know how I got the name Trane but the furnace is actually a Payne model# pg8maa036070. I don't know how to check for gas pressure or how much is required. Is there any special equipment I need to check?
Something I forgot to mention is when the furnace starts and the third burner doesn't light, I'll let try a ... | 95d1e5133cf9f77567281aacc10cec66fce8be59296425ecfbbc752429064227 | ['a467dd5b8ff2493ebc11abf9b6591f77'] | Thank you for the response! I am thinking about getting a raspberry pi, and based on your answer, I could probably learn a lot just from experimentation with different components. Also, I will be sure to check out the different books you recommended, as they all seem to offer plenty of information towards my question! |
cfbbfa8676d52e8e29b555068593f7ba984aaa65f9ddf516eff996ac05611467 | ['a46d6330eb2347c291401a438d8fc762'] | This may be a silly question. In the sentence 'X was measured with a galvanometer', does the use of the word 'with' instead of 'using' convey the meaning that X was measured along with a galvanometer?
Which of course does not make sense, but to be correct should we not say 'X was measured using a galvanometer'? Or am I... | 3b0787057abc38739b929e028f7b4a58e747af9d12d59ec446a5c1d9dae485dc | ['a46d6330eb2347c291401a438d8fc762'] | I read an article on climate change which used the expression 'extreme high temperature'
Extreme high temperatures set to break records: ANU expert
I understand that 'extreme' can mean extremely low or extremely high. But since the article is using the word 'high', isn't the usage 'extreme high' redundant? So I figur... |
61d217f6dffb285574928e7351bdd357f03f06e01f9fc01dd2e690faa397f5e8 | ['a4742d9e9650476a8a1680a9c41c768d'] | I shared my solution that I use in my projects. Maybe it helps someone.
pip install django-fake-model
Two simple steps to create fake model:
1) Define model in any file (I usualy define model in test file near a test case)
from django_fake_model import models as f
class MyFakeModel(f.FakeModel):
name = models.Ch... | c42b22b8113561eeabcbc4973f2debcb0bd0dd71e335b438cf47ce73e0b439e5 | ['a4742d9e9650476a8a1680a9c41c768d'] | I think you may use pre_save signal to validate events count.
I'd add field number to event table and unique key by (user_id, number)
pre_save get last number from events and compare it with quota if last number greater then quote - raise an error
unique index need to ensure that two events won't save parallely
|
f97620ed18427cb3ae0d5f3313814f018368df449667414881138fc2bc2fcb51 | ['a474c0dbff95426ca17dfc1ef9a0e8e7'] | I want to create a PowerShell script to do following
1) Create Login/User in SQL
2) Grant Access to Database
3) Remove Access to Database
Process will be like this
1) Connect to SQL Server (Instance) -> Connect to Database in that instance -> See if Login/User Exist -> if No -> Create login -> Create user -> Grant Acce... | 51613f50ec37e73b68492e1cdfe03f43f5f8b04f52033b507b676c9203f1714b | ['a474c0dbff95426ca17dfc1ef9a0e8e7'] | I was able to resolve this issue by saving the credentials on the XYZ server and then calling them under my INvoke-Command.
Like This :
$Session = New-PSSession -ComputerName "XYZ"
Invoke-Command -Session $Session -ScriptBlock {
$password = Get-Content -Path D:\Creds\creds.txt | ConvertTo-SecureString
$Cred = New-Ob... |
0a2316b82f6624e94fe5abc0f6a7e6729f3009948be36eadc422424e22f56170 | ['a48e633c5fa345eba4572e8bbed5493f'] | If my spring-servlet.xml is
<bean id="defaultAnnotationHandlerMapping"
class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
<bean id="annotationMethodHandlerAdapter"
class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
<mvc... | 6ad10e726637cf1b2d57314494edf2e9e8679ae9547625376f8d2b267f68c4c2 | ['a48e633c5fa345eba4572e8bbed5493f'] | I'm getting the following error. It seems there are multiple logging frameworks bound to sl4j. Not sure how to resolve this. Any help is greatly appreciated.
14:42:35,411 ERROR [stderr] (MSC service thread 1-3) SLF4J: Class path contains multiple SLF4J bindings.
14:42:35,412 ERROR [stderr] (MSC service thread 1-3) SLF4... |
84fc2bfbbf1c037c7274e508d6860bf36407910517b00a10e0df232a8fb4f1d3 | ['a4af4633298d4e4fad6271c39cdcc960'] | I'd say you have two questions to answer:
First, What is the max time you want to spend working? Anything beyond that, book yourself to be somewhere else. Personally, I have to pick up my kids - that's a hard limit on how long I can stay at the office, because I must be at point X by time Y. (And most employers have e... | 11fa8e9facb36d29e093a45108e80d918779433e9e08affbd613efdff6fbced6 | ['a4af4633298d4e4fad6271c39cdcc960'] | Let's look at how a quadrotor flies, then apply that to a trirotor.
Let's assume that we want to remain in a stationary hover position. To do that, you need to balance all the forces: thrust from the propellers vs. gravity, and the torques of each motor.
Each motor produces both thrust and torque according to the equat... |
12fde3a0fad228e3127e4c61825115a59eaec8a7954327422050669f4c8a13c1 | ['a4afc55acbae491e8d14ccc5447ec6e0'] | @ <PERSON>: I believe you need to check your /etc/xrdpstartwm.sh - the first lines in mine reads,
if [ -f /etc/X11/xinit/xinitrc ]
then
. /etc/X11/xinit/xinitrc
exit 0
fi**
That means that if /etc/X11xinit/xinitrc exists, that file will be executed instead - and it won't help much to add the
. /etc/environme... | 17a785657d9e96fdffa5a69fc6103a44fc790292691925f1685904d2ce780455 | ['a4afc55acbae491e8d14ccc5447ec6e0'] | I believe the :before pseudo element is placed inside the element but before its content. As such the before element is still a child of that a and will take up space within that element. The underline you are seeing is not part of the :before element but the anchor element.
As such I believe you have to take the :befo... |
0f5148982931d33fb3988b9255beabadd9c8d519b28224fc4c3b7a8afb8c271b | ['a4c047d2d31a4117aa964e0ad2d98e76'] | I have this simple project to do. This is the code I have so far, it works perfectly fine. But if someone types in a letter or an unknown symbol, the program crashes. How can I make this error proof and display or print a message if the wrong thing is entered?
def excercise5():
print("Programming Excercise 5")
... | e82d1efa8e9eea1ea83bebddb63fe0970e5b18871a00f251ce8031e299f5cc25 | ['a4c047d2d31a4117aa964e0ad2d98e76'] | This is the problem I have to solve : Write a program to sum a series of numbers entered by the user. The program should first prompt the user for how many numbers are to be summed. It should then input each of the numbers and print a total sum. This is what I have so far:
def excercise13():
print("Programming Excerci... |
9c87a1a1bfb5c15b89f6486784bb1eb8272fd2682145afa2531220e7d57d1716 | ['a4ce9dd769a24f86940135bcc508f82b'] | My understanding is that Random forest itself is a regularization method for decision trees by repeating various forms of decisions trees and have some fitting better to some data and other fitting better to others. My question was why don't we just apply regularization at each node of a single decision tree.n | 283e41c801663c4f8062b82a59c7e30d3e467a6354b2ddc78377fad9d4a2aed0 | ['a4ce9dd769a24f86940135bcc508f82b'] | This problem involves logic-based math, I tried making truth tables for this problem but I don't think you can because there are 9 doors!
Below is what I came up with but I want to know if there is a better way of figuring this out.
Base on the tip from the hostess, there is something behind door8; then it is either ... |
8c18f3558681ff2e60a2f3c0f55f3aac6c1d3f712f5f9bb33cec8773c0b87f93 | ['a4d0b502cbb84d40bb36c6d4ce6000c7'] | I get a csv file has data like below:
> "value","name"
> 403.375,"C1"
> 409.625,"C1"
> 300.5,"C11"
> 321.125,"C11"
> 740.25,"C2"
> 718.875,"C2"
> 303.25,"Q"
> 323,"Q"
> 146.875,"H1"
> 171.75,"H1"
> 210.875,"H2"
> 234.625,"H2"
> <PHONE_NUMBER>,"CQ1"
> 1742.5,"CQ1"
> 2319.875,"CH1"
> 2449,"CH1"
> 1227.25,"CH2"
> 1157.375... | cbb4b4d04794b72f569190c273963cf531cdb73bdced0a9acf55c2b4c2d4a8cc | ['a4d0b502cbb84d40bb36c6d4ce6000c7'] | I have two vector a, b. I wanna compare the size of them. I know I can use if (a.size() > b.size()). But my question is if the size are too big out of the type int for a or/and b. For example, a.size() is 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999... |
f1de1c094654e3a8b0989ab097cb3da87c24fc363900b4f73c762586395830dc | ['a4d49d991ac64be4a6f58bfaaf5e15d5'] | One way, is to construct an ArrayList named equalOrLower let's say, and whenever it is computers time to choose, a new ArrayList is created, which will store all the enemy possible cards whose value is less than the players number. The enemy (computer) can then only choose a value from the newly created ArrayList.
in... | a517b23987749db57739ac1b30476f1fb9ac19b20b4c54b1eb81e2277d009b09 | ['a4d49d991ac64be4a6f58bfaaf5e15d5'] | I have the following yup check:
nrOfApples: yup.number().min(0).max(999),
And right now if I leave the field blank, it validates as false. Is there any way to make yup.number() accept empty values? I have tried:
yup.number().nullable()
But it doesn't seem to work. Any ideas on how I can make such thing happen?
|
5f4ce9f365555021f6739dc9f30e9b019e1d37a61aafc695da427c6568203a31 | ['a4e93ab7cbc645fab6a2bf0cc8433f5e'] | I want to find the nearest neighbor of the output compared to the training set based on this framework: https://github.com/carpedm20/DCGAN-tensorflow
(I asked already generally in this post: Generative Adversarial Network: How to find the most similar image to the output within the training samples? with the answer:
"T... | 5de447344c629ad9e6f830bcfcd597032783fd006d8e9a6f3eb2c0805e24e920 | ['a4e93ab7cbc645fab6a2bf0cc8433f5e'] | Even though the user is the same uid=2000(shell), still the output of group is very different when run on adb shell (rooted device) than on serial console.
So it seems that through adb shell the user belongs to more groups than when logged in on a serial console.
On other Linux systems it is the opposite - you have mor... |
25e1e7f9237422e72205ca535c0621dba250e4dcd88495d1c8cc1d2959f14b46 | ['a4ee3be2e024457b9e7c86cb33ed8725'] | I want to fit a distribution.
If I have a dataset I can do it quite easy:
library("fitdistrplus")
data_raw <- c(1018259, 1191258, 1265953, 1278234, 1630327, 1780896, 1831466, 1850446, 1859801, 1928695, 2839345, 2918672, 3058274, 3303089, 3392047, 3581341, 4189346, 5966833, 11451508)
fitdist(data_raw, "lnorm")
This ... | 50576bcd83a2f80ead6f6358a7ac8bfc89c006c250aa0a2bc3fb7ff2cf197a8a | ['a4ee3be2e024457b9e7c86cb33ed8725'] | I am trying to do a lognorm distribution fit but the resulting paramter seem a bit odd. Could you please show me my mistake or explain to me if I am misinterpreting the parameters.
import numpy as np
import scipy.stats as st
data = np.array([1050000, 1100000, 1230000, 1300000, 1450000, 1459785, 1654000, 1888000])
s, l... |
0c47ad784933da77abc387aa4c4c3b49bc9beaeb172f826e290f819f99afa597 | ['a4ee7d143d8048858245b56ab44f0540'] | In our project, we are using Selenium Web driver to automate web application.For one of the application, we need to submit a mainframe jobs and then only a data will be available for next application.
As we were not able to automate mainframe jobs, there is always gap between two application and we were not able to ach... | bac62cab67029734cc404d16dfb68934f733eff3899e50d9cebde7978db11d5f | ['a4ee7d143d8048858245b56ab44f0540'] | I want to get URL in LI tag through X PATH and Validate these URL based on its response code.
Could someone help me to get URL from below and to validate URL using response code.
<li class="menu-link divider">
<a onclick="getSearchOption('Amazon.com','http://www.amazon.com/s?url=');"></a>
</li
|
d1f7fd18c06570ef1ea9321c6ac6a8986ee780c1f0989dcfbcac593546af149d | ['a4f09906d4564e5883a33d2d7e72f3cf'] | I am currently working on a project which has a number of background tasks that get executed. Each task created and then sent to a concurrent service which manages the execution process of all tasks. Each task is stored in a database table during the length of its execution.
My dilemma is that each task performs very s... | 32878f1e721a74386506137fc345968698e3b5b9128caf141b5aa5edb058a8eb | ['a4f09906d4564e5883a33d2d7e72f3cf'] | As far as C++ goes, there won't be any issues with using one header file and splitting the actual implementations of the functions between 2 files. However this strays from convention, if you need functions from "Second.cpp" in "First.cpp" perhaps you should look at what is happening in each one and maybe the functiona... |
de04e9d331683a99cdd0cdf86dabdb951cec65a32942cd38f6e640e45654dbff | ['a5000e3ab7e7453598878801c95dff57'] | Hello Forum, while working with CI 2.0.3 and internationalization (i18n) library, i’ve run into this problem. I’ve read similar posts here, but they did not solve my issue. Hope somebody here can point me into the right direction.
The routes.php:
$route['default_controller'] = "home";
$route['404_override'] = '';
$rou... | 23afe8bad90eb03926240cf73420cece6f530ee06ba242caa40500744bb4cc19 | ['a5000e3ab7e7453598878801c95dff57'] | Suddenly get stuck into this mode
After hours of working on a doc, I've CMD+TAB'ed out of the doc and suddenly come back to this. It's happened before and after some clicking around, I went to Review > Protect Document (which was enabled somehow) and that fixed.
However, now it won't work. I desperately need help. I'm ... |
476a1f7766729d33b35c81925f4acd2ba8ecf7b8cf8f5e403a6a79da300b9f14 | ['a505f6739f904155833dced663ea3b75'] | I am trying to add values to the saml:AttributeValue elements of this xml document:
<saml:AttributeStatement xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
<saml:Attribute Name="FNAME">
<saml:AttributeValue></saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="LNAME">
<saml:AttributeValue></saml:Attr... | 82b9100345bc839b835df1ab6421fe0d8eb8a7311e2828ce2ad194f07d0941ff | ['a505f6739f904155833dced663ea3b75'] | The issue was not so much on the xsl side of things, but on how aspdotnetstorefront used the data. I got around my particular problem by modifying the procedure outlined here: http://forums.aspdotnetstorefront.com/showthread.php?17159-Display-Product-s-Mapped-Categories-on-ShowProduct-aspx-simpleproduct-xml-config
Tha... |
82e11b4ef4f817268594c061764616e64e977b8ea91aadc66603428109182031 | ['a507c07136c84ce8810e1057c8776179'] | I want to select an image id every 24 hours . for example at special time like 12 a.m , i able to select a random id to set it to my imageview.
I know to use alarm manager , but I do not know how to use it.
here I just selected my random id like this ans set to SharedPreferences and finally it get it.
i want to this ev... | b5b0a5e5330c2edb34d7914aad847b8220e77c522bff0c2b4f6aa3e993402ed7 | ['a507c07136c84ce8810e1057c8776179'] | In my project I had some music in raw . I can read them and play them easily in this way :
Field[] fields = R.raw.class.getFields();
for (int i = 0; i < fields.length - 1; i++) {
SongInfo info = new SongInfo();
try {
String name = fields[i].getName();
if (!name.equals("ringt... |
b696a44aec01382437c0167377c6711d4e96ccff32b405e1ce9415baa878c72b | ['a512160b4b9b43b190013dc7daa0d70e'] | por isso que estava querendo concatenar a minha lista com um {{ forloop.counter0 }} pois dessa forma resolveria o meu problema, "creio eu skaoskaosko" pois quando eu acesso a lista dessa forma `{{ list.0 }}` ele me retorna só o primeiro item da `array`, e se pra cada loop eu tiver um `i++ do counter` talvez resolvesse ... | c29f697d85e0f0bd6bc4636d74d1599772b14c8cdd25339978dbedd67d283245 | ['a512160b4b9b43b190013dc7daa0d70e'] | Well, I did finally figure out what was going on, and I'll post it here even though no one ever responded to me... but this might help someone down the road, so here goes.
Basically, the problem WAS in my firewall. Specifically in the Intrusion Detection section.
Detect TCP probes
Block sites probing TCP ports ... |
c6d2e900a25af93bbc70ddc8ceb103f5cba8f5349a09f016a4fad91ebdbb8155 | ['a530ab9d7387445f9e9c8f6aec07b5b3'] | user_word = input("guess a word: ")
with open("C:/Users/Callum_test/Documents/Python/dog.txt") as dictionary:
if user_word is dictionary.read():
print("Well done, you got a", len(user_input), "letter word")
else:
print("That's not a word!")
Hello,
I've created the above code but for some rea... | 2623a1ebcd4bee364a9bc37cd9e8d0acfd6da4748f5847a8665fd0b05f80a52e | ['a530ab9d7387445f9e9c8f6aec07b5b3'] | I have created this code to get 3 different options in 3 different places. Its actually a flash card program i hoped to get working but I can't. It goes into a endless loop and i have no idea why. There may also be other problems but i havent got to them yet but please tell me anyway. Keep the sam var names so i can u... |
fb507462f6102843dfa8e43cabf0eb2797cc7537542f2f004099253fa274186a | ['a54028c0956e4087893ece452059c326'] | The above tends to be more common, though it is rarely clarified. Thank you for pointing this out.
In addition to the above ambiguity, there is also some disagreement on how the folds should be treated in per-fold models. In the answer, I suggested that "each model is built using four of the chunks as a training set, a... | e339f09bd22417c15f56784812e777d610285882e1961000fc828f9e3853e269 | ['a54028c0956e4087893ece452059c326'] | Lots of ways to cut this cake, some context would help. One way is to look at proportion of individuals within each group who moved from X to Y on a given question. Picking the X and Y should be based on the initial hypothesis and context it provides. You could also abstract away the magnitude of the changes and just l... |
6ce256eb6675e7100fac722f8140049536aa05e26f3c955abd525ab9bd30f3d1 | ['a5444f2bff6e472dbf9882d06588d46b'] | There is at least one situation that only
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
must be used instead of the counterpart
getLayoutInflater
That situation is in an arbitrary object class. For example, I have an instance of class call objectA. In objectA, I want to inflate a view onto the parent view (h... | 53d7d8fa5e1473d7b4b3e4a0233df483c08128ae61cd4bde3dae5303cb3d652d | ['a5444f2bff6e472dbf9882d06588d46b'] | I am having an issue about generating Android KeyHash with debug.keystore that I don't quite understand.
What I understand is that if I generate a KeyHash on my PC no matter how I generate it, it should give me a unique keyhash. And I can bring this keyhash for integration with Facebook SDK.
However, what I found out i... |
b51f67daea8a3f5482173d0e1238ef468698bebdae716a592a55afa1054bbbdd | ['a55c1dbbac434543bfe8ad3285468443'] | I would like to install Linux on PC through USB flash drive. But there is already old operating system. I want to clean HDD using command line. In windows, I just use diskpart > list disk > select disk > clean. Is there any way to clean HDD as easy as Windows does?
| e061df3d2b5d8bf7467893a577fd945a27449ee3c15cd4830f5beb97dcc42841 | ['a55c1dbbac434543bfe8ad3285468443'] | I made a simpe AutoIt Script to deploy Categories
#include <File.au3>
#include <Array.au3>
$sFilePath="Kategorien.csv"
$outlook = ObjCreate("Outlook.Application")
If Not @error Then
$ns = $outlook.getnamespace("Mapi").categories
Local $aArray[1][3]
_FileReadToArray ( @ScriptDir&"\"&$sFilePath,$aArray, 2,";")
... |
4aa65526fc80211caaa72352700c8e413b6f1436b279c66640ba754eb8693483 | ['a55ca3922ca34c0384e08cda9851cf60'] | Highlight the variable and then press Control+Shift+G or Right Click->References->Workspace will get you all of the references of a particular variable, and you can see where it was assigned or passed as an argument that way. It will show up in a window on the bottom, and a double click will take you directly to the re... | cc9d2a364615539e8ec74962593e9cd462db5ad47747067a05a3d105aacb1ab1 | ['a55ca3922ca34c0384e08cda9851cf60'] | If you're talking about redefining an actual type system, like making a statically typed language dynamic or making a weakly-typed language strongly-typed, then no.
Practically every language lets you define your own types, so I don't think that's what you meant either.
The only thing I can think of that might fit into... |
ad800868542c4bbbb922bef438b82c32071ee46e11b473eead63b648c01e2cad | ['a563e1826eb442dbb74071acb4d02ae8'] | I've to deny access from set of IP set from specific country and downloaded the list from http://www.ipdeny.com/ site.
I tried to block this set using
firewall-cmd --permanent --ipset=blacklist --add-entries-from-file=/home/cn.zone
but that got failed. Error
Error: INVALID_IPSET: blacklist.
How can i block them.
| 16f851ee96445f79845a71c0d7c86bb4c2989a0d16eb6cf667a4e50222d994ad | ['a563e1826eb442dbb74071acb4d02ae8'] | I try to switch an existing (and well deploying) application to MySql instead of Hypersonic. After I follow all steps from JBoss tutorial my application fails in deploy saying:
org.hibernate.MappingException: An association from the table OLOLO refers to an unmapped class: com.trololo.pack.Class.
MySql DB for JBoss has... |
a7c75ea27b014e382f11463c72616e045b59a93fdfc202881b5c79878a8ce1df | ['a569e4037bc24d7aa87f804e2a6d2bca'] | Not exactly the answer as I was asking for (Graphviz), but I found a much nicer solution with MATLAB. It was about plotting a seating plan for an event.
What I did broken down:
imread() image of the floor plan
Roughly determined pixel spacing, used as x & y vector for image() so that tables are in scale with the room... | 9a1b9b62a25d7f770e8c5cb936ac78599862e3e49e677e5564f4001ad2ab64a4 | ['a569e4037bc24d7aa87f804e2a6d2bca'] | Alternatively, you can also use the built-in rmdir() function with the s argument to remove all subfolders and files in the given folder:
rmdir('results', 's')
Please note that your results folder will also be removed, so your code would need to create an empty folder again (see mkdir()).
Further, I suggest to always ... |
57412dcfeb40b10fa9c6a2fe8426f76a0ec0f855755cd8c30bcd5c042be340e4 | ['a56d15e6a27e44389cd3d2ecf19bbbdb'] | Yes you can use linked servers, that is one way we handle this. You will need the correct oracle driver installed in order to use it. I would put the opentran on the inserting of the data versus any checking or auditing of the incoming data. As the oracle db is remote you can't include it in the transaction.
| d2fdab4319d08b3f127bd3ca19d34b4cb1059ab649b17fee5bddf1263c677e2a | ['a56d15e6a27e44389cd3d2ecf19bbbdb'] | I know that there isn't a specific answer to this and different countries have different guidelines in regard to this. There are a couple cell-phone towers in my vicinity (one of which is some 15-20 meters away). I live in India and I filed a complaint with our Department of Telecommunications and just today, they came... |
66303ae429cfb4567975df18a6c0ca76b2c5640a9da296db995690f01fc586e0 | ['a5706637cdeb43508106ab59ed5f84dd'] | Currently I build HTML templates and replace {Title} placeholder with matching values before sending 'parsed email template' to recipients but the issue is there's no way to generate 'list of data' in table dynamically, thus resorting to using angularjs 'ng-repeat' but when parsed, it sends out angularjs tags instead o... | 7d72d5255d5f2229227504081881e496d883676dd76763710c1d65bf5e5e6aa0 | ['a5706637cdeb43508106ab59ed5f84dd'] | Having researched the issue extensively especially applying recommendations from similar issues on stackoverflow, the below code still returns error ""System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: connection rejected at....""
try
{
var mail = new... |
a9fcee3f3271b9715a7d392740c55ddaeafeecdc08dc1a357c14136bd0e209da | ['a5740c4966cd4f4d8adfbd80f80cd87f'] | I want to replace switch statements here with proper code. I need suggestion of doing this in an improved manner.
switch(true) {
case ($value === 'test1'):
$testArray['class'] = 'incomplete';
return $this->icon(
'test_0.png',
$testArray
);
case ($value === 'test2'):
$testArray['c... | a67208c22ccb99dcc80d6e0d3d5dff55ac512120a8948cdab71276f4a56b898b | ['a5740c4966cd4f4d8adfbd80f80cd87f'] | I've a code something like this, i just want to know is it good habit to use lots of 'and' 'or' in a single if statement
if (array_key_exists(self<IP_ADDRESS>SUB_FORM_CONTACT, $data) &&
array_key_exists('company', $data[self<IP_ADDRESS>SUB_FORM_CONTACT]) &&
((array_key_exists('salesRegion', $dat... |
1c06f9b88b77bb57187a665b9778376b88f126ab8f49ef237873bd7d1662f2b2 | ['a575de0f1f754e218755876018a1567d'] | In android mobile we have an default application Market, under submenu there is functionality called all applications. In this, first it shows only ten records in which it will display defalut image and text, then in back ground it will update images. When we scroll down (i.e., end of list) and it shows loading and the... | bc39304123a7b4913b0ed46ae0e501e50456f6c0078ba9ef0492c0b656ff653c | ['a575de0f1f754e218755876018a1567d'] | I want to create a layout in such a way that on top edittext and button should be there in one row.
The search text I enter in editext and click on search button. Then I want to display a custom list view where each row contains image and text.(As per the API demos example list14 I have tried). But when I run the appl... |
571fac16eae3f6c677a7527804ddc88ba0fe6772a99e96639f57f36a299a99c8 | ['a5769940aaeb44cd952580e1f01a87f3'] | I agree with @Barmar, and thus I understand your misunderstanding.
However, correct me if I'm wrong but I have some doubts about your get_maximum_hourglass_sum function because it seems to me that you are actually taking all of the middle row of an hourglass into account (instead of taking only the middle point)
PS : ... | d8fc7801226e9e389d20c28f3b76738b140006f6a53801e02d88d083bff26fad | ['a5769940aaeb44cd952580e1f01a87f3'] | Thanks for asking,
I took some time to understand the objective of your algorithm but if you want to loop and save all of your sublists I think this should work :
def slicing_items(slc_len = 5, lst, iterate_num = 25):
# slc_len correspond to the number of slices, lst is the list of sequences
n = len(lst)
k = 1
p = k *... |
547f69d41bf4c8342d7d5c80438fdefa73dceb32ed890158858948d4c2c56526 | ['a57a442f88384a5aa78e581bbb3110fa'] | I created an app initially using Pie sdk
And it worked on Pie devices
Now I want it to run on Nougat and Oreo as well
How to do it
I am attaching the log as well as the app level Gradle after changing the sdk version to 26
APP LEVEL GRADLE
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-se... | b1c71f30469eb0b6bd95208ae9f8060ab0cc89ccbeda91b13439b73e9b637230 | ['a57a442f88384a5aa78e581bbb3110fa'] | I made this app like 1 year ago and when I open it up it pops up with a bunch of totally random errors...probably due to updates but then
error: incompatible types: Fragment cannot be converted to SupportMapFragment
.findFragmentById(R.id.map);
Maps Activity Code:
import android.location.Address;
impor... |
f7f6a37d6be3b1f35ad82719e89704c440e0d58b4ad99ea37401be5a258d545f | ['a57f84eac01b45c9af7a0b5a14c6c0b5'] | I'm still a rookie to the R world, in a very accelerated class with limited/no guidance. My assignment is to build a custom function that reads in a specific .csv, and take some specific columns out to be analyzed. Could anyone please offer some advice? The "sample code" I was given looks like this:
AnnualLekSurvey=... | 72e4449649f21e4e9387df90ea3463febccc812c7eaf1635a03597015b442784 | ['a57f84eac01b45c9af7a0b5a14c6c0b5'] | I have 57 individuals (with ~60,000 replicates) labeled by "ID_Year" used to create a GLME model of habitat selection. How do I extract unique coefficient estimates for each "ID_Year"?
Here is the model:
Cand.mod[[25]] <-glmer(Used ~ WBEMesicHa + Treatments + WBERoads45 + WBERoads25 + WBERoadsUn + Powerlines + Agricul... |
d1c4f32687244250c6972b2f565a7f4c72a501ec191ee8e95a913bb1addac62e | ['a58096ea0090448ca54fc3c85600441d'] | Let's say we have this array :
Student[] students = new Student[3];
students[0] = new Student() { Number = 123, Name = "<PERSON>", Firstname = "<PERSON>" };
students[1] = new Student() { Number = 456, Name = "<PERSON>", Firstname = "<PERSON>" };
students[2] = new Student() { Number = 789, Name = "<PERSON>", Firstname ... | 690003db5a2becb3966e0f73f4f75c6230d998bbd2edca1c9b3253f7759b0296 | ['a58096ea0090448ca54fc3c85600441d'] | How can I get which radio is selected via jQuery?
I have two radio buttons and want to post the text of the selected one, how can I get the text with jQuery?
I know how to get the value of the selected radio button :
$('[name="topping"]:checked').val()
<div>
<label>Would you like extra topping?</label>
<in... |
9a142d924fcdc8fcc8750a40a1b9477561a29c94b786099fec5cf7d713f58bfd | ['a58b94cd7f754ed291f81213cdb5bd0e'] | I need to get an image using webservice which is rest.And most of the tutorials are about click the button in order to trigger the process.I need to implement this such a way that when activity opens images has to be loaded immediately without trigger or clicking the button or something.I just need a source or idea.
An... | 6704ed94079411da53fdf1bf8cfa48971c9457aff22963b6bcbe7a7f751ff08a | ['a58b94cd7f754ed291f81213cdb5bd0e'] | I want to create a drop down list as it is shown in the image.
Image
So when it is clicked,I want it to show up like this right under the text.I want to get some source to do this.If you can give any source it will be appreciated.Thanks.
|
f7e24834f41042a0916ad628916913434067ebbff4f1e2039cb3c536b0f09d85 | ['a5919ed6811943bb9ea8ff4557242635'] | Has anyone got any experience of building .net core apps with TeamCity and Octopus? I know there are various guides on implementing this but they rely on having a project.json file which has been removed by Microsoft. Has anyone come up with any solution?
I'm currently using the dotnet-core-plugin suggested by TeamCity... | 4921adaaab03ad7bedfd147bd4fae6a4e11191e815999ea92392960eee4f334e | ['a5919ed6811943bb9ea8ff4557242635'] | I'm trying to call a function from a C++ library using DllImport
[DllImport("DLL.dll", CallingConvention = CallingConvention.StdCall)]
private static extern IntPtr XXX(double dtoday, double dexp, double fwd, double[] sList, double[] vList);
The signature of the C++ function is
std<IP_ADDRESS>vector <double> XXX( cons... |
0228621978fe2523d430f420d23c6b404a82bf37b37f6312b7e0725e2e3b35fd | ['a5a4255027174e3db02537ede7590d29'] | This is my code:
$(function(){
$('.pop').dialog({
autoOpen: false
});
$('.show_pop').click(function(){
$(this).closest('.parent').find('.pop').dialog('open');
});
});
http://jsfiddle.net/0v62hL7p/4/
I need to target only one .pop and open the dialog.
What am I missing in my code? Thank... | 4eed36b3ae8b9bc548286e8b09e4bee7a3ff27a249322b2c14f80376613f9ab3 | ['a5a4255027174e3db02537ede7590d29'] | So I'm trying to look for functions (among y and z) that contains a function call a using Eclipse search.
In this code:
void y ()
{
if {
}
if {
}
}
void z ()
{
if {
}
a(b(c,d,e));
if {
}
}
My Regex matches the entirety of functions y and z excluding before the function name.
\b... |
955dda57a7ce6b7dac5d441d860ba3021d0cb45cbce8adecedfc403a76744c20 | ['a5b3e05397474273ab6dc17e6e18ab59'] | So you're saying a series resistor on the data line is bad design practice since the I/O pin is still pulled high? It seems the most simple approach and I can confirm that it works in my case. Out of curiosity, what sort of chip is it that could self destruct? | fc439314bbfaaafcc3e8762fd0f788f990620e1b77e04644a9c998063e387162 | ['a5b3e05397474273ab6dc17e6e18ab59'] | Hello all, i first want to thank everyone for their opinions, very much appreciated, i missed out the point that known vulnerabilities are as important and dangerous as well since it is known to all attackers for exploitation. Before reading everyone's comments, i thought unpredictability was the more important issue a... |
18c2d4ea4ff03897144cfb31b971466f08f69fc7a4676aee06ed8f3ac001516a | ['a5b75c3ade7448938933355fcc08aee5'] | Suggesting future improvements is an excellent idea, but I would recommend putting that into a *separate* follow-up email / memo. Busy managers seem to have a tendency to only read the first "pane" displayed by their email tool (about 25 lines), so lengthy emails are best avoided (I learned that the hard way). It also ... | 7fa1ba6533dfa67025fd0a5c43323be149e31ff5e2dbd8f18adf6e492f63f8ab | ['a5b75c3ade7448938933355fcc08aee5'] | formatting a 8GB SD Card will lead to the same with GB and GiB: 8GB = 7,45GiB but dont forget with what kind of system you format. FAT will lead to a very small table, but e.g. ext will lead to a bigger journal. When you format the 8GB are still the 8GB! or the 7,45GiB are still 7,45GiB. |
2cb87ac649841b376feec89bdad75057cc4fa5e29d5536570f87e1f97494f933 | ['a5b9c82f152b4e639fbc5d95e5489c94'] | Is possible to run CoreTelephony framework in background mode? i'm making hardware for iphone ad i need when the iphone is in sleep mode and when you recived a call or sms my hardware make sound. i can make this when my app is running but when i put the iphone on sleep mode not work.
Is possible to do these work in bac... | f830555e210b6447b37d510f3d757479102bf04522c34887528ca3d15532ef14 | ['a5b9c82f152b4e639fbc5d95e5489c94'] | I am developing an application in which I need to detect when my iPhone receives a notice of Twitter or Facebook, and then perform an action on my application.
example: I'm hardware developer and would like to make an application when a notification arrives me, flashing a LED (independent of the iPhone).
What need woul... |
b30f98d0aefd364e96166f733b939c7c5a131c1b18272eb605f19644c3f9898b | ['a5bcdbb569084fb0b3781e1b3cf32982'] | You don't want to prevent your users from closing multiple modals rapidly, every approach in this direction will be a fail.
What you want to do is preventing your user to close any tab by mistake.
As it is a mistake use case, do not design for it from the beginning (except if it does not disturb any 'normal' use case).... | 1c2554a6ab86d3df9de80a016bcc022a2a12779fdfd98da0a95e1d7310a98b6e | ['a5bcdbb569084fb0b3781e1b3cf32982'] | Short answer is no. You can add a standard pagination but the dots like you did are :
- not actionable
- it is very hard to understand what they are for at first glance.
You should find something else that does not have those problems.
A pagination could be enhanced with the dots like you have though, but then take car... |
10de6a36e3a08267f627f9f95b4f269aa8b48ed1946f318080fa3e634d7c4a4e | ['a5ca81dce1af4f8fb511a3a9ea1a16d0'] | Ok, use requests.get to make a get request, then use .json method to parse response as a json, then optionally convert timestamps (given in ms, divide by 1000 to get seconds) into datetime objects like this:
import requests
from datetime import datetime
from pprint import pprint
def get_stock_prices(symbol: str) -> l... | 0ca852aeb81ba7e7e4b705588b1479209030557312c98d7193044bb586d03836 | ['a5ca81dce1af4f8fb511a3a9ea1a16d0'] | Wow, it's been a cumbersome task, but I've finally managed to do it. I've used find function with a filter function to find <p> elements inside the table.
https://www.crummy.com/software/BeautifulSoup/bs4/doc/#a-function
Please note that I've fixed the malformed parts of HTML you've posted.
from bs4 import BeautifulSou... |
0a48c40e880ec4fee67ca9eb60120c2e3c82e85a6b88b3d44e0b5fabcb45d0c0 | ['a5d1025a99854de8b8869959717c57d9'] | Looks like you are not overriding the hdfs configurations dfs.name.dir , dfs.data.dir, by default it points to /tmp directory which will be cleared when your machine restarts. You have to change this from /tmp to another location in your home directory by overriding these values in your hdfs-site.xml file located in yo... | 7defa1c675b55f492ec79afa83393501f94ac5ddb27c0c1ca2538de068afcbfd | ['a5d1025a99854de8b8869959717c57d9'] | Looks like you are not overriding the hdfs configurations dfs.name.dir , dfs.data.dir, by default it points to /tmp directory which will be cleared when your machine restarts. You have to change this from /tmp to another location in your home directory by overriding these values in your hdfs-site.xml file located in yo... |
c7d4c923324201170da1ec142bfe3b713b532feb80c04a81f2aa4a8a373c90a9 | ['a5d225ece8624090ac3132c6730e9525'] | When trying to add/install Blocktrail SDK as dependency for Composer. It shows
an error like this: Requested PHP extension GMP is missing from your system. (Link to screenshot)
I've tried enabling the extension GMP in my cpanel using php.ini. But even if it was enabled it still shows the same error which is very confus... | c0a6020513565098edd01a54eb3cfad008265e34e18dc93221950d2b0a040e0d | ['a5d225ece8624090ac3132c6730e9525'] | This is my index.html:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Code Concrete</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root></app-root>
<button cl... |
428a399c1f46af6a7398b2aae4d967484bd078651f6c0c8ae606d3f7124158ce | ['a5d75b6b39134bff9ec9ff0cd2b326e4'] | I have followed a tutorial from this website http://jtreminio.com/2012/07/setting-up-a-debian-vm-step-by-step/. I am up to the point in the tutorial where it says to login via SSH. I have installed Putty and logging in under debian-vm as the host name and I have also used <IP_ADDRESS> as a IP address. I get a connectio... | 2ede72699c2fc9ce69edb0c817cb18809671ac3900a05c18a12b0ef8122b5e3c | ['a5d75b6b39134bff9ec9ff0cd2b326e4'] | I done all the instructions you gave me. disabled adaptor 2, started ssh on debian, got back tcp <IP_ADDRESS>:22 LISTEN. I pinged IPV4 address on my windows machine from debian and that worked. The eth0 from the ifconfig has a inet addr of <IP_ADDRESS>. I managed to ping to the windows machine without disabling the fi... |
2b75ef1ba2aea4e6fe3d79e65b9f04836fefc38855e4b38961442c8945f9f31d | ['a5e4a874525545f797b4e0b49d6b2d57'] | The Boost community has discussed that some weeks ago (copying code from Boost and publish in a project with another license). The conclusion was that this is unfair and not legal. Note that even open source licenses might not be compatible (lawyer with a presentation regarding to mixing open source licenses and deriva... | c87f4d2b93d5afe114f9f026339be1e706038958ce239b79d3cae020171bee35 | ['a5e4a874525545f797b4e0b49d6b2d57'] | I have a column in excel 2003 that contacts phone numbers. Thousands of rows of phone numbers. Problem is they are not all formatted the same way, some are <PHONE_NUMBER>, some are <PHONE_NUMBER>, etc. I need them all to be <PHONE_NUMBER>. How can I do this?
Thanks!
|
36b04b0255608f8c54d382f8f85eb1af951023ff6f9ddeadd3fb9948645b7f55 | ['a5e7d155c76d4d48b815025defe962dd'] | The master branch of http://github.com/zenovich/runkit is compatible with all versions of PHP. Sandboxing only works if thread safety is enabled. So you should recompile your PHP after configuring it with flag --enable-maintainer-zts to use Runkit_Sandbox class. After that you should use Runkit compiled from source.
| d4548436b39333c96d612981de5a64b2afdbc50c63093f88789dd388af93ba5d | ['a5e7d155c76d4d48b815025defe962dd'] | The runkit extension is a perfect solution for your needs. It is proven by years of my personal experience and described in many presentations and articles authored by different authors in the internet.
I can assure you that the runkit_method_redefine function as well as the whole runkit extension is not experimental a... |
8e0f6ecb155ffca4dfeef35f943d4a679779a241158c5b496a38ef7490dd4d37 | ['a5ee440b1a2343e7acd412018ed901a0'] | ctx.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight)
The sx,sy,sWidth,sHeight are measured according to the source image. Say we have an image in way HIGH resolution, for instance, 2000 * 1000, then the sWidth and sHeight should be scaled up to that resolution. In your case, it should be 80 / 300 * 20... | b7866eceac1730ed18c17b87d63147f5dfb2d50148e0a05ae3c24c494aa37bda | ['a5ee440b1a2343e7acd412018ed901a0'] | $.next() finds elements only in its siblings. If you want to search in its children elements, use find() and a precise selector instead.
<div class='container'>
<div class='a'>a
<div class='a2'>a2</div>
</div>
<div class='b'>b</div>
</div>
console.log($('.a').next('div')) // div.b
console.log($('.a').next('a... |
5abc0fc37aa3b787030cd11ef468e13164d7614f0b076d95aa5fa10ad2f7a30a | ['a5f336a6acb34f23aa4f573400b9fdef'] | You could use this
var timer = setInterval(function () {
scrollOK = true;
}, 100),
scrollOK = true,
count = 20;
$(window).bind('scroll', function () {
if (scrollOK) {
scrollOK = false;
if ($(this).scrollTop() + $(this).height() >= ($(document).height() - 100)) {
//now load more list-items beca... | 8bbf47a8429ad99a5689f1340cd2fac94a0bbac39a0658d08b56d2cedfa27c5f | ['a5f336a6acb34f23aa4f573400b9fdef'] | <ul data-role="listview">
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
<li>10</li>
<li>11</li>
<li>12</li>
<li>13</li>
<li>14</li>
<li>15</li>
<li>16</li>
<li>17</li>
<li>18</li>
<li>19</li>... |
df980b6325cb9865d1be5c1265a7fbf35a5e057908339cbbe424721e161d99ea | ['a5f7ca42cd4c469fa3e29061c9edafb4'] | I'm pretty sure (Someone correct me if i'm wrong), using the new operator allocates dynamic memory for that variable. The variables will most likely already have some garbage value assigned to them that gets overridden when you assign a new value to them. Whereas assigning it NULL just assigns it whatever the NULL valu... | 2a5283bf7b81abaf43cc224648f48898b5fa3015ec9f68904ca21ad3bb7e46a7 | ['a5f7ca42cd4c469fa3e29061c9edafb4'] | What are the major differences between Logstash and Fluentd?
What I know so far is:
Both:
- Open Source
- Available on Linux and Windows
- Data/log collectors
Logstash:
- Centralized repo for plugins
- Small fixed queue size (often need Redis to manage)
- More memory intensive (~120 MB)
- Commonly apart o... |
a89a387a96e2ddeaa1a8e92f10a39b1c9f31877ef2e3fd9e0889d679f455d15a | ['a60ba5bc64fc4dd2b147110889cc73e9'] | I have this code, which generates a HTML table from a Google Spreadsheet. I am attempting to make just the table auto refresh every 5 seconds, while the spreadsheet loads. However, when using the following code, it just makes the table disappear after 5 seconds. Does anyone see what is wrong or have a better solution?
... | 84c5563fa3a3cadb04435c0242dbcb5b98aa1e98773216a24453ae69f8c64d50 | ['a60ba5bc64fc4dd2b147110889cc73e9'] | I'm attempting to scrape this Tableau dashboard, however I'm running into a problem where I am missing values in my output. Specifically, it seems like my code won't scrape/print repeated values (a value that shows up twice will only be scraped/printed once).
Here is the code I am using:
import requests
from bs4 import... |
38d5430d12d36ddd07aed99ab14c0da9b2cb387537f2fb6d9ba3d66bf930a359 | ['a6250621a9fb43c08bbb0676a59636cc'] | You will want to place your javascript under one document.ready to start, then I named the error and success variables differently based on what dom element they were pulling from. This should help you.
$(document).ready(function(){
var error = $('#an-introduction-to-physiotherapy-for-the-geriatric-patient .erro... | 482d70834393945d2d594bfc663cfc258e3d54a5c72fb188539c7c5277a8000d | ['a6250621a9fb43c08bbb0676a59636cc'] | $cars = array
(
array("Volvo", 22, 18),
array("BMW", 15, 13),
array("Saab", 5, 2),
array("Land Rover", 17, 15),
array("benz", 252, 1558),
array("tesla", 115, 193),
array("chevy", 587, 211),
array("ford", 13217, 115),
array("Volvo", 22, ... |
b7a135d33c3e1004c7598f7d2b3e0dff1b52b9ad3f0bb2dfd5e2043ed2e51efb | ['a62ce1a9402d4242a34f30212bd41eab'] | I was taking the fast.ai course and came across this snippet of code (in Python 3):
PATH = "data/dogscats/"
os.listdir(f'{PATH}valid')
This returns the list of the files in the directory data/dogscats/valid, like I expected. However, I don't understand what purpose the "f" in front of '{PATH}valid' serves. When remove... | 6ad1091573151fae5f98ec15e9c39f6f4ad7e28f86a29149c1027d15b48ebc93 | ['a62ce1a9402d4242a34f30212bd41eab'] | I've been trying to make a page that displays different elements based on different users' member roles. Currently, I have two member roles: the default "Member" and a new role "Sponsors". I've gotten the member roles using the wix-users module as such.
import wixUsers from 'wix-users';
$w.onReady(function () {
//... |
7b15aa1ac444a859ca1770c6ff42a9c1b36c31474a387123c8bba236001c6c6f | ['a62eda56a586449dbde87aa564e628d3'] | Client site http://site1.jsp have form which i want post.
<form name="searchForm" method="POST" **action="/oes/site1.do**">
<table cellspacing="3" cellpadding="2" border="0" width="100%">
<tr>
<td>
<P>
<STRONG>Please select a search type</STRONG>:
</P>
<P>
<INPUT... | 7ec46e522433a7a15c4aba93ffc1a8dd43ac9b210209ed7ce50ec4215c1ad9e6 | ['a62eda56a586449dbde87aa564e628d3'] | I struggle that issue for three days, and there is no solution. It just not working and never been. So I will try use another tool, because cordova just don't fit for geolocation purposes. Now I'm focus on java and I want do this properly (ios was a bonus, when I choose cordova).
|
67ec710c7e8897ff50a1efbf4bdf2bf9dab6896e956c77500c218d5306f2e3a8 | ['a63464d2d6a940efa702f001825d4ff2'] | <PERSON> I don't subscribe to it at all. You might say that it has been obsoleted for *some people*, but to make a sweeping statement that it has been obsoleted by emails is hardly justifiable. I'd be very hard pressed to find an e-mail in my mailbox that doesn't have at least a name both for salutation and for signatu... | 42487c5eb1c33a251f07d54e0ca24c8e0d0ca3394dbc991f4168db4f2748c08a | ['a63464d2d6a940efa702f001825d4ff2'] | I'd say that judging a thesis merely by its length, without knowing any details, isn't really helpful. Half of it might be data tables, diagrams, whatever. Although I'm in a different field, computer science, my master thesis 25 years ago was just as long or more. But half of it was source code. No committee was expect... |
8511883388715e6b33c2f631e4501d932ddd7e37788d0565dec73480be84bba5 | ['a6372cb3b56049229d25b1a4afad9905'] | Thanks. I installed lib32z1 lib32ncurses5 lib32bz2-1.0 libjpeg62:i386. Then I installed the 64-bit driver again. The same error appeared. Next, I installed ia32-libs. I installed the 64-bit driver again. The same error appeared. So I can't still print. Moreover, I have the same problem with my 32 bits pc.So I don't thi... | ae948e31a2ae1558c38edfdfd0c4e231c46c6638d8ba4f9d5e6431273d16a86f | ['a6372cb3b56049229d25b1a4afad9905'] | OK, here is the code which solved my problem. Thank you <PERSON> and <PERSON>!
' set identity_insert to on to insert tables with key'
Command = New SqlCommand("SET IDENTITY_INSERT table ON", con)
Command.ExecuteNonQuery()
'Copy dataTable into MSSQL database'
Using bulkCopy As SqlBulkCopy = New SqlBul... |
a2b9ba394a0768a43d905669ef154040f786a9a352a6365ec1c9efd8c7ae379a | ['a65ae91793224fa0858d4b37c629e22c'] | I would just do it in the traditional OOP style.
First define an interface for a factory class
public interface BlockFactory {
Block createInstance(int x, int y, LayerType ltype);
}
And then define corresponding factories
public class HoleBlockFactory implements BlockFactory {
public Block createInstance(int ... | 4b0f07e43d01c9a7b5f7cebb41244e666ed3f44c1977568e98b30a66a7a9cb33 | ['a65ae91793224fa0858d4b37c629e22c'] | The most important difference is that python yield gives you an iterator, once it is fully iterated that's over.
But C# yield return gives you an iterator "factory", which you can pass it around and uses it in multiple places of your code without concerning whether it has been "looped" once before.
Take this example in... |
3345234a436529f3b0d0e3e85457aba95fd375e862893b21e5ebe27f36579b8c | ['a6880c0ad74347d28defed67360bb49a'] | I'm using an InputStream to read bytes from a TCP server (written in C#) into a byte[], and encoding them into a string using new String(byteArray, "UTF-16LE"). This method encodes characters in the Basic Multilingual Plane just fine, but does not handle supplementary characters.
I understand that bytes in C# are unsig... | 468bb0ed51b4b08bad47614e14e490a10fc69a2a7aac8ca8fa709f8025771e98 | ['a6880c0ad74347d28defed67360bb49a'] | I am trying to add two different fragments into two containers in my activity. The containers are part of a collapsible view I have made:
collapsible_view.xml
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/collapsi... |
70b93fc69440b301303b94c79056d86fb78dbd56f56af2eec08852fb8068e0c2 | ['a6a63edba5724f87ae1dd66b36d5b91e'] | I have created a class Library in VB.NET which we are calling from SSIS script task.
Could someone please advice how I can throw error back from VB.NET function which was suppose to return a string value but it returns null, in that case I would like the SSIS script task to fail.
| 657f4c7b35783e970a7e974c6229627728ee7c70c7684fc00760dd758928238a | ['a6a63edba5724f87ae1dd66b36d5b91e'] | Can someone please advise:
I have got SOURCE (which is OLD SQL Server) and we need to move data to new DESTINATION (which is NEW SERVER). So moving data between different instances.
I'm struggling how to write the package which looks up in destination first and check if row exists then do nothing else INSERT.
Regards
|
06dabed44955e951df3e77996917fd7c450daec9bf9eaefc579ebf7341348a30 | ['a6aa0807fae44ea59dc150902231b98c'] | Actually the docs DO say how you can reuse connection for multiple requests:
If you wish to re-use a connection across multiple HTTP requests
without automatically closing it you can use ::new instead of ::start.
request will automatically open a connection to the server if one is
not currently open. You can ma... | b1855e2395d5f3982ea402be8d94b4301026b8c79bdd370584801894e8b5f954 | ['a6aa0807fae44ea59dc150902231b98c'] | It looks you want to test your schema because you want to know if it is going to break the client. Basically you should avoid this.
Instead you can use gems like: graphql-schema_comparator to print breaking changes.
I suggest to have a rake task for dumping your schema (and commit it in your repo).
You can write som... |
6fa6eca26972f2d2a02a5c7d92863fec0e2500649cc17da427f566c85d13516c | ['a6af6ac1728c491dbbc1ce756f68e0d2'] | We've not thought about freezing apps with Vispy much yet. The pitfall that I'd expect matches with gmas80's answer; Vispy can use multiple backends, which means that these are dynamically loaded and cx_Freeze is unable to select the backend modules as a dependency. Depending on the backend that you need, you need to a... | 05bb190a71b1f88e8fa02399ffd0059715d354450f8bc9d41a1433229339a0bd | ['a6af6ac1728c491dbbc1ce756f68e0d2'] | As pointed out by <PERSON>, Vispy provides OpenGL bindings for OpenGL ES 2.0. More interesting about vispy is vispy.gloo which provides a much easier (object oriented) way to use OpenGL.
If you need full desktop OpenGL functionality (not limited to ES 2.0), you need PyOpenGL. I think that currently it is supported (at ... |
762605e8e1ea4f4b74c2da91ebda10551bd8d0951a6cc9d2c8324fe360a0486d | ['a6afc80226d4417895f73b7f62c23036'] | I would use a message handler to achieve such mechanism. In your custom View class, create a Handler, then pass a reference of this handler to the button (for instance in the onCreate event of your Activity), then use the sendMessage() / handleMessage() mechanism to communicate between the Button and the other View.
T... | d171b9eddb23f318a659e0adfbb22c5c365a9d6b992faa9cf703666d4295997c | ['a6afc80226d4417895f73b7f62c23036'] | I also experienced the same problem with a Sony Xperia X10. I managed to make it "remember" the pairing by changing the security level settings on the bluetooth device side (as I am developing the device also).
I am not sure about the "temporary pairing" explanation, that would be manufacturer dependent, it doesn't mak... |
f523703e628ce6c9bfba3ae34702a96685aa650a3f6c9fea6edc3ea498ca490d | ['a6d217cf4a894d878bcebb52652ab6b8'] | What I have understood from your question is there is some data under column A and B as shown below (Click on Run code snippet to check the values in table) and the result you want is the name of the adjacent cell having max(B1:B7)
then select cell C1 and use this formula you will get your answer
=vlookup(Max(B1:B7),{... | fe1e6575142c503bcfde74e341944d9b55f70c495476b0f5c574a27f38af4e40 | ['a6d217cf4a894d878bcebb52652ab6b8'] | I tried all the above mentioned still not working for me. I was working on a windows application after that I have started the web application coding on visual studio after that whenever I was opening the Visual studio this problem was occurring. I am using Visual studio 2015. So what I did, I have right-click inside t... |
101a76d9a000226fbfb78215d2bc730de5cdb23c993fcb2551057e9e01055729 | ['a6df339e15e44ff7a3570a88ae4fb6f8'] | This problem is because the data you are concatenating, is coming from http call, which is asynchronous,before your data came through http call, the line
$scope.twitchData=makeJson(responseDataValues,responseData);
got executed with both blank array.
You can do it either by promise resole,
or with a simple way
make f... | 6dbcb6b0ad2b4deb5cf3cafafd14b902ae7fb9bdae1082aa3c47c78b148d9abf | ['a6df339e15e44ff7a3570a88ae4fb6f8'] | You can send your server time to client and get a difference in client time and server time and save this time difference, and also save the starting time stamp of timer.
You can verify this timer accuracy latter by hitting the server for server time and calculate new difference between client and server time, if it fi... |
9804d2f18c6c18ba8edd4a261761835d3aeb4850109b38b5f048906739762b73 | ['a6dfedf4d73f4a01926fbca19912556c'] | i would like to use the second property LogoWidth to set the width on the first property but im getting the "Cannot refer to an instance member of a class from a shared method"
If there's anyone that can help i'll appreciated
<DetailViewLayoutAttribute(LayoutColumnPosition.Left, "Header Logo", LayoutGroupType.SimpleEdi... | cca5bd6f66a8e120f1022ca9b115e80896a6680c07eae740b7701126b74e965f | ['a6dfedf4d73f4a01926fbca19912556c'] | Thanks, I found a solution that works
Private Sub SCA_ViewBy_Execute(sender As Object, e As SingleChoiceActionExecuteEventArgs) Handles SCA_ViewBy.Execute
If SCA_ViewBy.SelectedIndex = 0 Then
' Dim listEditor As GridListEditor = TryCast((CType(View, ListView)).Editor, GridListEditor)
' If list... |
c4ee08648ad71970c640c1dff62c9c5e2bc1faf79bbedb5499c34b949198e4b8 | ['a6e4536bf95742378e3ac6f31f9d075f'] | I want to make a system for tabs. I have a server with a database with different companies with there info. All the companies get a same tab, but with different content form the database.
The way I have to do it, is to make a new app (Tab app) for every company and link to the website like http://www.domainname.com/fa... | ef1281311cfc1a597a9440368dec7e69993f0ea58bfed6040fb5f499f954be42 | ['a6e4536bf95742378e3ac6f31f9d075f'] | I want to use a custom font on a website and want to secure it. I know there is like Cufon etc, but I want to do it with @font-face, because Cufon changes the text with and @font-face only apply the font to the text. So I found fontdeck.com and they use @font-face with secure font loading.
I have to include a CSS file... |
b6b11f6187138d591c287f60220a7283a7087defdc66766d8725a6969bdbf8d0 | ['a6f956d8f4134563a26d9b27839b0f5a'] | How to user case insensitive where filter in loopback with postgresql.
I have trued using
pattern = new RegExp('.*'+data+'.*', "i")
but not working.
My code is
searchUsersAppointment(data): void {
let cpr = /^\d+$/.test(data);
let pattern = new RegExp('.*'+data+'.*', "i");
let query = {};
if(cpr){
... | eaeee9f4d2c74d131b2c1dddd8a82e368e63984a7b37011f9b28b5cfc0a822c3 | ['a6f956d8f4134563a26d9b27839b0f5a'] | I'm new to node js, in my project one of the function not wait till for loop execute
let prepareExecution = (type) => {
let files = [];
let filestodelete = [];
let data = {};
data.files = files;
data.filestodelete = filestodelete;
let list = ['vpl_run.sh','vpl_debug.sh', 'vpl_evaluate.sh', 'vpl_evaluate.cases'];
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.