id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_33900 |
"every minute, between 10 am and 2:30 pm, Sun-Thur."
What I have so far is * 10 * * 0-4 but I'm not sure how to add the 2:30. All the examples I've seen only have minutes specified in the start, not the end.
A: That would be:
* 10-13 * * 0-4 command
0-30 14 * * 0-4 command
The first expression runs every minute fr... | |
doc_33901 |
Incorrect syntax near ''
I copied the one SQL script into Notepad++ and set the encoding to ANSI. I see this symbol  (BOM) on the lines where the error is happening.
Is there anyway I can automatically remove this within my batch script. I don't want to keep manually remove this every time I run this task.
Below i... | |
doc_33902 | I'm trying to submit my form using Meteor and React. When I click submit button I get undefined undefined but that is only because I cannot type into the input fields. Can't figure it. Here is my code.
At the moment the only thing onSubmit is doing is providing a log.
export default class AddDeal extends React.Comp... | |
doc_33903 | grep job_ import.err
20/04/27 12:46:30 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1587332046499_7576
20/04/27 12:46:31 INFO mapreduce.Job: Running job: job_1587332046499_7576
20/04/27 12:46:38 INFO mapreduce.Job: Job job_1587332046499_7576 running in uber mode : false
20/04/27 12:46:44 INFO mapreduce.J... | |
doc_33904 | However, I want to the menu show like picture 2 ideal top menu show,show in any size screen only in one row. Is there any good solution to make it? Like by change the menu font auto?
.venus-menu {
width: 100%;
margin: 0;
padding: 0;
position: relative;
float: left;
font-family: 'Open Sans', sans-s... | |
doc_33905 | My dataset bolund_static looks as follows:
<xarray.Dataset>
Dimensions: (x: 800, y: 200)
Coordinates:
* y (y) float64 1.0 3.0 5.0 7.0 9.0 ... 393.0 395.0 397.0 399.0
* x (x) float64 1.0 3.0 5.0 ... 1.595e+03 1.597e+03 1.599e+03
Data variables:
zt (y, x) floa... | |
doc_33906 | I tried to update RedirectToAction("NotFound", "Error");
to RedirectToAction(MVC.Error.NotFound);
I get the following error at build:
Argument 1: cannot convert from 'method group' to 'System.Web.Mvc.ActionResult'
Also, in my views, when I try to do something like this: <%= Url.Action(MVC.Home.Index) %>
I get messages... | |
doc_33907 | <?php
if ($_POST['upload'] )
{
$user=$_session['username'];// current username
//$filename=basename($_FILES["file"]["name"]);
$tmp=$_FILES["file"]["tmp_name"];
$extension = explode("/", $_FILES["file"]["type"]);
$name=$user.".".$extension[1];
move_uploaded_file($tmp, "upload... | |
doc_33908 | I am at a step where I have to Screen blend two colors which I am able to do. The issue I'm having is I need to drop the opacity of just the filter to 30% and I'm not sure how to calculate this all together.
I can do screen between two colors.
I can do alpha between two colors.
In photoshop they:
1. create a layer (ho... | |
doc_33909 |
A: The Symptom column is HTML, and we don't support editing HTML fields in Excel. See this blog post for more information
| |
doc_33910 | where as this [[ ]][ ] throws SyntaxError: Unexpected token ].
Any Explanation?
A: The object[key] syntax is used to get the property of the object by the key, which must have key inside [] otherwise there will be syntax error.
[][[]], the object is an empty array [], and the key is another empty array [].
[[]][], the... | |
doc_33911 | [{"distance":"14.0 km"},{"distance":"85.6 km"},{"distance":"15.9 km"}]
I have another response which lists the stores. The distance matrix above is relevant to each store. The store response looks like this:
{
"0":{
"id":3,
"user_id":2,
"brand_id":"2",
"type":"store",
"name"... | |
doc_33912 | library(dplyr)
library(lubridate)
urlfile<-'https://raw.githubusercontent.com/blakeobeans/Predicting-Service-Calls/master/Data/nc.csv'
dates<-read.csv(urlfile, header=FALSE)
dates$V1 <- mdy(dates$V1)
dates <- dates %>%
rename("data.time" = V1) %>%
filter("2017-10-01" >= data.time & data.time >= "2017-06-01") %... | |
doc_33913 | think of this scenario:
@view.BestSitesEver.Replace("stackoverflow", "<h1>StackOverflow</h1>")
That would just print out: <h1>stackoverflow</h1>
A: You can use this
@MvcHtmlString.Create(site.Replace("stackoverflow", "<h1>stackoverflow</h1>"))
This will output the html string without encoding
@(new HtmlString(site.Re... | |
doc_33914 | let invalidPerms = []
for(const perm of command.permissions){
if(!validPermissions.includes(perm)){
return console.log(`Invalid Permissions ${perm}`);
}
if(!message.member.hasPermission(perm)){
invalidPerms.push(perm);
break;
}
}
if (invalidPerms.length){
... | |
doc_33915 | PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 231137548 bytes) in /home/
File is saved in same server.
Already added below line in code ini_set('memory_limit', '300M');
A: You should increase memory_limit php option, for example, to 300mb
See http://www.php.net/manual/en/ini.core.php#ini.memory... | |
doc_33916 |
*
*table name: "Persons"
*columns:
*
*id
*date inserted
*age (1 for 0-9 years old, 2 for 10-19 years old, and so on),
*face type (1 for round, 2 for oval etc),
*hand size (1 for small, 2 for medium etc),
*had chronic diseases (1 yes, 2 no),
*had history of mental problems (1 yes, 2 no),
and other s... | |
doc_33917 | An error occurred while execution command: 'expand-archive --archive-path='/home/nagasn/.cache/JetBrains/RemoteDev/dist/86e6698dbdca2_pycharm-professional-2022.1.4/86e6698dbdca2_pycharm-professional-2022.1.4.tar.gz' --destination='/home/nagasn/.cache/JetBrains/RemoteDev/dist/86e6698dbdca2_pycharm-professional-2022.1.4/... | |
doc_33918 |
*
*One-way : "wsdl:input" only
*Request-response : "wsdl:input",
"wsdl:output" and "wsdl:fault"
*Solicit-response : "wsdl:output",
"wsdl:input" and "wsdl:fault"
*Notification : "wsdl:output" only
Using Apache CXF V3.2.0 and i try to generate Client (wsdl2java) from existing WSDL in what we have Notification op... | |
doc_33919 | <?php
session_start();
$server = 'localhost';
$user = 'root';
$pass = 'root';
$connect = mysql_connect($server,$user,$pass)
or die(mysql_error());
$selectdb = mysql_select_db('des')
or die(mysql_error());
?>
<form method="post" name="action_form" action="admin2.php">
<div id="gallery1" class="lbGallery">
<table cla... | |
doc_33920 | We encounter the following error:
RequestAborted: Exception of type 'System.OutOfMemoryException' was thrown.. Request Path: /swagger/v1/swagger.json
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Text.StringBuilder.ToString()
at System.IO.StringWriter.ToString(... | |
doc_33921 | I have this api call with axios
const getRFC = ({vLastName,vSecondLastName,vName,vSecondName,vBirthDate}) => {
axios. post(`http://exitusdesarrollo.eastus2.cloudapp.azure.com/AppForceControllers/controllers/GetRfcController.php`, { vName, vSecondName, vLastName, vSecondLastName, vBirthDate })
.then(res => {
... | |
doc_33922 | So, I wrote a code which sums to limit.
It is working as I expected(multiple threads are faster than single thread) when limit gets larger but it didn't when limit is small like 100000L.
Is this due to context-switching ? and is the code below is appropriate to check performance of multi threading ?
public class MultiT... | |
doc_33923 | step 1. Put Lisp:sr-speedbar.el in your load-path, add
(require 'sr-speedbar)
ok put "sr-speedbar.el" in my load-path. (first of all I am making the assumption my load-path is my .emacs.d directory in my root directory.
I go to this link: http://www.emacswiki.org/emacs/sr-speedbar.el
hit the download button, w... | |
doc_33924 | (48.hours.ago..Time.now.utc).map { |time| { :hour => time.hour } }.uniq
Returns:
[{:hour=>1}, {:hour=>2}, {:hour=>3}, {:hour=>4}, {:hour=>5}, {:hour=>6}, {:hour=>7}, {:hour=>8}, {:hour=>9}, {:hour=>10}, {:hour=>11}, {:hour=>12}, {:hour=>13}, {:hour=>14}, {:hour=>15}, {:hour=>16}, {:hour=>17}, {:hour=>18}, {:hour=>19},... | |
doc_33925 | To support 0 down time and quick response time, we want to setup distributed data store with multi-master replication. We want to know whether MarkLogic provides out of the box or through any other mechanism provision for such multi-master replication configuration?
A: MarkLogic has various features for High-Availabil... | |
doc_33926 | On app uninstall I need to delete the data that localStorage includes, like JWT tokens and other user-specific data.
Currently the issue I am facing is when the app is uninstalled when the use is logged in, and the user re-installs the app, the login and some other user data persists which I want to prevent.
I tried se... | |
doc_33927 | I've tried changing the encoding on my PayPal account to UTF-8 but it didn't work.
I'm not using any gem for this and I'm not looking forward to this.
class PaymentNotificationController [:create] #Otherwise the request from PayPal wouldn't make it to the controller
def create
response = validate_IPN_notific... | |
doc_33928 | In particulary how the GRUB find the start LBA of the file before loading content of it ?
TIA.
A: GRUB use file system drivers to performs working on partition as usual.
| |
doc_33929 |
A:
with dedicated db only for this clone
This is something called multi tenancy - true multitenancy is where you have multiple DB's - one for each user running through one application instance.
This is a very technical point for Rails, as it's not been done before.
There are gems - such as Apartment - which allow so... | |
doc_33930 | {
"1": {
"name": "Joe",
"age": 50
},
"2": {
"name": "Bob",
"age": 3
},
"3": {
"name": "Brad",
"age": false
}
}
As you can see, Brad's age is false, so Retrofit service throws an exception:
java.lang.IllegalStateException: Expected an int but was BOOLEAN at li... | |
doc_33931 | here is the code I am using:
letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L''M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','0','1','2','3','4','5','6','7','8','9','!','$','%','^','&','*','(',')',... | |
doc_33932 | I need to use this algorithm for each pixel of a 4072x3080 image, this takes around 1h30 for the whole process, so I tried to force it somehow but I'm getting this error:
ValueError Traceback (most recent call last)
<ipython-input-12-99c1f41dbba7> in <module>()
----> 1 res = scipy.optimiz... | |
doc_33933 | B1 = ={"Paid AF";ARRAYFORMULA(IF(LEN(A2:A),SUMIFS(Expenses!$B$2:$B,Expenses!$A$2:$A,A2:A),""))}
C1 = ={"Paid2";ARRAYFORMULA(IF(LEN(A2:A),INDEX(QUERY(FILTER(Expenses!$A$2:$B,Expenses!$A$2:$A = A2:A),"select SUM(Col2) ",0),2,1),""))}
https://docs.google.com/spreadsheets/d/13s2fHz6oFoNjipxqdqM-pCNrHAfLLwnq1G3iyxcVlb4/e... | |
doc_33934 | document.getElementById('sent_box').innerHTML='form sent.';
The HTML box being written to looks like this:
<div id='sent_box'></div>
with this styling:
#sent_box{
height: 20px;
margin-top: 20px;
}
How would I be able to make the text fade out after ten seconds?
Note that I need a Vanilla Javascript solution to thi... | |
doc_33935 | I would like onClick of submitting the variable on HTML (which is a email) that everything works without having multiple buttons/form.
I believe I have multiple errors.
Any help is greatly appreciated.
index.html
<body>
<form action="#" method="post">
{% csrf_token %}
<input type="text" class="form... | |
doc_33936 | This is my code:
import requests
from requests.auth import HTTPBasicAuth
url = "http://192.168.100.107/public/v1/state/User"
username = "admin"
password = "password"
#response = requests.get(url, verify=False, auth=HTTPBasicAuth(username, password))
session = requests.Session()
session.auth = ("admin", "password")... | |
doc_33937 | the tags i am using
<script src="https://cdn.jsdelivr.net/npm/luxon@1.24.1"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.0.0-beta.9/dist/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-luxon@0.2.1"></script>
<script src="https://dd7tel2830j4w.cloudfro... | |
doc_33938 | So there is the table with all actions in Yii web application. All authorization's users can create their own link that indicate to particularly action, for example: There is action name's actionGetAllMovies, and user Sarah set her link 'favouriteMovie', Jack set like 'coolMovie',etc... and when they type their link, t... | |
doc_33939 | var url = 'http://gdata.youtube.com/feeds/api/videos/';
$.getJSON( url + '?v=2&alt=json-in-script&callback=?', {
'q': q,
}, function(data) {gotData(q, data);});
function gotData(q, data){
for(var i in data.feed.entry){
// print the data...
}
}
It calls a YouTube API and reads some of the JSON result ... | |
doc_33940 | I'm running the latest version of ADT on Eclipse 3.7.2 on Windows 7 x64 with Oracle JDK 1.7.0_05
What happens is that after editing a layout in the graphical WYSIWYG-ish editor and setting a TextView to some text, when I switch to the text/XML view I have the following happen:
As you can see, there's the closing tag f... | |
doc_33941 |
A: The vc package calls the vc-git-registered function to check, is the file is registered in git. You can find this function in the vc-git.el module. The module itself is loaded first when you access a file in the directory that belongs to Git by using the code (vc-find-root file ".git") that is specified in the au... | |
doc_33942 | int i, length;
String j, lastWord;
String word = "We the people of the United States in order to form a more perfect union";
length = word.length();
for (i = length - 1; i > 0; i--)
{
j = word.substring(i, i + 1);
if (j.equals(" ") == true);
{
lastWord = word.substring(i);
System.out.println("L... | |
doc_33943 | /home/oops/dev/mtg-tracker/mtg-tracker-server/handlers>Finished running tool: /home/oops/dev/go/bin/golint
/home/oops/dev/mtg-tracker/mtg-tracker-server/handlers>Finished running tool: /usr/local/go/bin/go build -i -o /tmp/vscode-goVw9yJs/go-code-check .
/home/oops/dev/mtg-tracker/mtg-tracker-server/handlers>Finished... | |
doc_33944 |
A: If you want to have a Tap event on a label, you can do this:
label.element.on({
tap : function(e, t) { ... }
});
Hope this helps.
| |
doc_33945 | The workorder.rb has:
belongs_to :super, :class_name => "Employee", :foreign_key => "super_id"
belongs_to :employee
I'm trying to create a where clause with a joins. It works fine for joining the :client. But, the :super doesn't work.
This is my current attempt:
workorders = workorders.joins(:client,:super).where("wo... | |
doc_33946 |
A: Import them as an object and reference the classes as properties:
import styles from "./path/to/stylesheet.module.css";
export default function Component() {
return <div className={styles.className}>hello world</div>
}
Example CSS:
.className {
color: red;
}
For regular stylesheets just import the CSS fi... | |
doc_33947 | I've tried these two approaches but I haven't had any luck.
# Using map
const x = await db.collection('collectionName').find({});
x.map(async doc => return await operation(doc));
// or
await x.map(async doc => return await operation(doc));
# Using forEach
const x = await db.collection('collectionName').find({});
x.for... | |
doc_33948 | In linear programming methods, this can be done by introducing slack variables.
Do you know if this has been attempted before with Dymos, or if there was a reason not to include it?
I understand gradient based methods are not entirely suitable for these problems, though I think some "functions" can be introduced to mit... | |
doc_33949 | docker run -d --name testContainer -p 80:80 static-app:v1
Any advice on how I can access this would be helpful.
A: I am assuming these two words as
1- Linux putty environment: Linux VM running on windows( oracle etc..) you connected this through putty
2- website I deployed on my Windows Chrome browser: trying to acce... | |
doc_33950 | I'm open to anything but, in case you want a base:
The most promising approach I found was the following, but failed with the exception "templateRef.createEmbeddedView is not a function":
app.component.html
<br>
<mt-table [fields]="userFields" [(rows)]="users" [pageSize]="10" [searchString]="searchStr... | |
doc_33951 | ParseFile fileObject = (ParseFile) object.get("ImageFile");fileObject.getDataInBackground(new GetDataCallback() {
public void done(byte[] data, ParseException e) {
if (e == null) {
Log.d("test",
"We've got data in data.");
FileInputStream data1 = new FileInputStream(data);
... | |
doc_33952 | According to that doc we have imported libraries and codes successfully.
And now to configure the application as per the document we have to register the callback first by using the following:
Register the callback object by executing:
MyCallbackHandler* theCallbackHandler = [MyCallbackHandler new];
[SampleApp_Sa... | |
doc_33953 | Sorry for the very long post..
Fragment:
public class BoardFragment extends Fragment implements Button.OnClickListener{
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
// TODO: Rename and change types of parameters
private String mParam1;
private String mParam2;
... | |
doc_33954 | This is my XML structure [the data is made up]:
<?xml version="1.0" encoding="UTF-8"?>
-<CancerExtract>
-<CancerRegRec>
-<Demographic>
-<PatientName>
<PatSurname>Jones</PatSurname>
<PatFirstName>John</PatFirstName>
<PatSecondName>Peter</PatSecondName>
</PatientName>
-<PatientDetail Sex="1" IndigStatus="12"... | |
doc_33955 | "Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details."
So I check my Heroku logs and get this:
2013-10-09T18:11:04+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compil... | |
doc_33956 | For comparison, Java has Maven+JARs, Python has EasyInstall+PythonEggs, and there are probably many others for other languages as well. But are there any for Prolog?
SWI-Prolog Packs
In SWI-Prolog there are Packs, supported by module library(prolog_pack). The downsides to these are:
*
*You have to create either an a... | |
doc_33957 | All I need to do is extract the values of one tag. For example, given the string of XML:
<ResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ....>
<Result>Foo</Result>
<Result>Bar</Result>
</ResultSet>
I just need to put Foo and Bar in an array. What is the easiest way to do this?
Thanks!
A: There's si... | |
doc_33958 | <VirtualHost *:80>
ServerAdmin myemail@gmail.com
ServerName www.adamzwakk.com
ServerAlias www.adamzwakk.com
DocumentRoot /srv/www/adamzwakk
</VirtualHost>
Every site after this entry points to this entry (the first one).
A: Fixed it, I put the document paths in quotes and it fixed it.
| |
doc_33959 |
A: You'll need to do some registry searching. I usually pull this logic into a custom action.
First open up this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft
SQL Server\Instance Names\RS
It contains a mapping between all the externally used instance names (e.g. MSSQLSERVER for the default instance... | |
doc_33960 | tr:nth-child(even) {
background-color: red;
}
How to write it in ScalaTags?
I was expecting to see something like tr.nthChild, but there are only firstChild, lastChild and onlyChild.
A: It doesn't look like ScalaTags provides it.
We can write our own though:
object Foo extends StyleSheet {
implicit class Creat... | |
doc_33961 | System.Data.Entity.Core.Objects.ObjectParameter output = new System.Data.Entity.Core.Objects.ObjectParameter("userID", typeof(int));
db.Proc_UserAccounts_AddNew(output, obj.Name, obj.Password, obj.SignUpDate, obj.Inactive, obj.Address, obj.Phone,
obj.Email, obj.VerificationCode, obj.Cell, obj.Fax, countryid, null, 10, ... | |
doc_33962 | import os
DIR = 'C:/Users/Emil/files/'
os.chdir(DIR)
This used to work for me. However, now I get the error:
AttributeError: module 'os' has no attribute 'chdir'
Who can tell me what's going wrong here and how I can resolve this?
Other os modules still seem to work fine. When I run:
for file in os.listdir(DIR):
... | |
doc_33963 | I was more used to writing: var foo = new Array(3);
I noticed that if I removed one , that my code still worked which is surprising because I am accessing all 3 elements after assigning them. How is it that it would still work?
A: if u do
a = []
a[3] = 100
the indices 0,1,2 will be filled in with undefined for u. u d... | |
doc_33964 | string knowledgeQuery = '';
string publishStatusOnline = 'Online';
// At the moment 'Knowledge__kav' only supports two languages 'is-is' and 'en-us'
if(language == 'is-is'){
language = 'is';
knowledgeQuery = 'SELECT Id, Customer_Facing_Instruction__c FROM Knowledge__kav WHERE UrlName = :name AND PublishStatus =... | |
doc_33965 | I used a lot of examples, including Apache Directory LDAP API and UnboundID, but I can't get the connection with AD.
RDNs:
C:\Users\Aleksey> whoami /fqdn
CN=my common name here,
OU=my organization unit here,
OU=organization unit 2 here,
OU=organization unit 1 here,
OU=main organizatio... | |
doc_33966 | Update:
Found a good answer here...
Is it safe to use protocol relative URL in email?
A: In a sense, wouldn't clients like Gmail be able to handle/support this? Due to the fact you're opening up gmail in a browser that currently already supports doing that.
After sending a test e-mail to myself, I found that using the... | |
doc_33967 | <form method="post" action="prelab2.php">
<select name="num1">
<option>Pick one</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select>
Above is the drop-down menu... | |
doc_33968 | I have been looking at morpheus (https://github.com/ded/morpheus
A: Just throwing in a plug for our own Ionic Framework which is specifically built with AngularJS in mind. Also, it's MIT licensed so you can use it for free in both open source and commercial projects.
We've tried to offer a UI library that lets you cre... | |
doc_33969 | Forgive me if there is an obvious solution, I'm a bit new to JavaScript.
I'm attempting to update my Discord bot to read a line of text from a txt file, and send the line as a message. I've gotten everything working, except I'm getting undefined when I try to send my variable that is supposed to be holding the text fro... | |
doc_33970 | df = pd.DataFrame({'x': [np.array(['1', '2.3']), np.array(['30', '99'])]},
index=[pd.date_range('2020-01-01', '2020-01-02', freq='D')])
I would like to filter for np.array(['1', '2.3']). I can do
df[df['x'].apply(lambda x: np.array_equal(x, np.array(['1', '2.3'])))]
but is this the fastest way to do... | |
doc_33971 | 3 tables: movies, actors, genres
Movies Table Schema:
Schema::create('movies', function (Blueprint $t) {
$t->increments('id');
$t->string('title');
$t->integer('genre_id')->unsigned();
$t->foreign('genre_id')->references('id')->on('genres');
$t->string('genre');
$t->times... | |
doc_33972 | Based on the table below (let's call this table DAY_CLIENT):
DAY CLIENT_ID
1 10
1 11
1 12
2 10
2 11
3 10
3 11
3 12
3 13
4 10
I want to get (let's call this table DAY_AGG):
DAYS CNT_CLIENT_ID
1 3
2 3
3 4
4 4
So, in day 1 there are 3 distinct client IDs.
In day 2, there are still 3 b... | |
doc_33973 | I have DirectMessages intents specified, It will send the Question via DM but not react to a response.
await appChannel.send('Name?');
let answer1 = await appChannel.awaitMessages(answer1 => answer1.author.id != client.user.id, { max: 1 });
const name = (answer1.map(answers => answers.content).join());
I H... | |
doc_33974 | word1-word2-word2
anotherword1-anotherword2-anotherword3
differentword1-differentword2-differentword3
And so on. And what I'm trying to do is that from the given text from a richbox text to loop through all words from it at the same time I'm looping through each lines from the text file.
And if any line contains the re... | |
doc_33975 |
failed to open browser: exec: "xdg-open": executable file not found in $PATH
and dashboard itself remains unavailable when I try to open it through host 1.
Later steps like running hello-world work fine and I am able to run it locally using my own minikube instance but I am a bit confused with this issue. Can I debug... | |
doc_33976 | numlist = [0.1, 0.25, 0.5, 0.75, 0.90, 1.1, 1.25, 1.5]
numlist = np.array(numlist,dtype=float)
apcnt = np.zeros((4,8))
for x in range(5):
for y in numlist:
apcnt[x][y] = a.iloc[x][0]*numlist[y]
print(apcnt)
Dataframe "a" looks like this:
adjusted_power
YearMonth
Q1 193... | |
doc_33977 | let's say each time you find "Blank Invoice" in the subject you replace it by "Invoice",
or to have some kind of macro that will do the find and replace automatically?
Thanks.
A: Sure, trap the Aplication.ItemSend event, examine the item passed as the parameter to your event handler, change its subject.
| |
doc_33978 | from django.shortcuts import render
from django.http import HttpResponse
import twitterData
# Create your views here.
def home(request):
profiles = twitterData.getTwitterProfileData()
return render(request, "blog/home.html", profiles)
This code works fine, profiles is simply a dict of user profile names gathe... | |
doc_33979 | FileStream fs = new FileStream(@"\\SIMON-VAIO\SimonShared\Users\Simon\Desktop\Files\Clients\clients.txt", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
using (StreamReader sr = new StreamReader(fs))
{
while (sr.Peek() >= 0) //as long as there are characters to read
{
... | |
doc_33980 | Is it possible for G+?
A: To share to Google+ in iOS you will have to use the Google provided UI. The exception is if all of your users are Google Apps for Business customers.
| |
doc_33981 | I am using a Mac on OS X 10.9.5. I have the latest version of Android Studio (2.1.2) and JDK/JRE 1.6 and 1.8 installed on my machine.
When I go to Android Studio > About Android Studio, it tells me the JRE is 1.6.
I'm also getting an error saying: "Rendering Problems Android N requires the IDE to be running with Java... | |
doc_33982 |
utils:::menuInstallPkgs()
also installing the dependency ‘permute’
trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.2/permute_0.8-4.zip'
Content type 'application/zip' length 501108 bytes (489 KB)
downloaded 489 KB
trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.2/vegan_2.3-0.zip'
... | |
doc_33983 | When i do a select from this field like:
SELECT
x.resources as item_name
FROM LOAD_XML t,
XMLTABLE (
'/Document/Chapters/Chapter/Position'
PASSING xml_data
COLUMNS
resources varchar2(4000) PATH '@Caption'
) x
where
XML_FILE_NAME = 'test.xml' ... | |
doc_33984 | I am using MacOS Mojave 64 bit. My C code looks like
#include <stdio.h>
int main() {
char name[100];
printf("What is your name?\n");
gets(name);
printf("I %s\n", name);
return 0;
}
I compile it as follows:
gcc main.c -O0 -g -Xlinker -allow_stack_execute -fno-stack-protector
My gdb output when I... | |
doc_33985 | html
<input type="username" class="comn_cstm_uname">
<input type="submit" class="submtidjq" value ="submit">
<script type="text/javascript">
setInterval(function(){
if(!$(".comn_cstm_uname").val()){
alert("hello");
$(".submtidjq").on('click', function(event){
event.p... | |
doc_33986 | Lets say that in a certain display I have the following keyword being shown.
[Scan 1] Extended HTTP Methods found
Is it there a way so this keyword appears as
Extended HTTP Methods found
Without changing the actual document within elasticsearch with an update query?
A: as it stands currently, changing the X-axis and Y... | |
doc_33987 | pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare'
After I did pod install and pod update, I was able to compile with only Framework warnings such as semantic issues which I don't feel relate to the issue here. One warning I am getting is telling me this: Warning: The Copy Bundle Resources build phase contains... | |
doc_33988 |
A: Note: With the logic you are requesting i don't think you can produce Unique value without check that the table doesn't contains the generated value, the only way is to use NEWID() function that generate a GUID, else i think that there is always a duplication risk
I don't know if this is the best way to do that, bu... | |
doc_33989 | I am referring to the {{ }} statements. Each has a settings . abc-def-xyz, which I am also unable to understand.
.main-footer .connect > li {
width: 32.3333%;
height: 185px;
border: 1px solid #ccc;
border-left: 1px solid {{
settings . primary-border-colour
}};
text-align: center;
dis... | |
doc_33990 | Lets say we have data:
date key value
--------------------------
2019-04-14 A 1
2019-04-14 B 2
2019-04-14 C 3
2019-04-14 D 4
2019-04-14 E 5
I want to group the row into two with specific key and sum the value each of the group.
Lets say create Group X consi... | |
doc_33991 | https://vuetifyjs.com/en/components/text-fields#password-input
When you try to tab from text field to text field you focus on the mdi-eye or mdi-eye-off icon. Is there a way to prevent this behavior. I would like user to be able to tab from text field to text field. Rather than text field to icon to text field.
Thanks... | |
doc_33992 | I have tried:
import struct
struct.pack("<H", 794)
and bytes(794)
But the value got are 794.
How to convert int 794 to bytes in python 2.7?
A: This should help - where n is an integer
str(n).encode()
| |
doc_33993 | Using HTTP Methods for RESTful Services
Also, at Embarcadero REST overview it is covered with exmples:
REST overview
However, in implementation of mapping PUT and POST there is inconsistency:
Datasnap REST
Implemented behavior treat PUT as method for inserting new resource, and return code: 201(Create), but POST, as "u... | |
doc_33994 | My current implementation sets the uuid of the user to the user id that is specific to each user within the application. It's implemented like this:
export class AppComponent {
constructor(private readonly userService: UserService) {
FullStory.init({orgId: '****'});
userService.getCurrentUser().subscribe(us... | |
doc_33995 | else if (mMergeAdapter.getAdapter(position).equals(
mMenuAdapter)) {
// handle menu items
switch ((int) mMergeAdapter.getItemId(position)) {
case 0:
Intent intent2 = new Intent(Browser.this,
... | |
doc_33996 | I expect the 3 dots to occur where the red circle is.
I've added the code of my XML and an image from the android studio preview of XML:
Just in case I have already tried to use:
singleLine=true
maxLength=1 (although i dont want it - for the check)
maxLines=x (although i dont want it - for the check)
layout_heigh... | |
doc_33997 | Here is my code:
String url = "...";
com.google.gson.JsonObject jsonObject = new JsonParser().parse(url).getAsJsonObject();
String fajr = jsonObject.getAsJsonObject("data").getAsJsonObject("timings").get("Fajr").getAsString();
System.out.println(fajr);
The errors:
Exception in thread "main" com.google.gson.JsonSynta... | |
doc_33998 | I understand that the inner loop shoud be somehow
Thanks for sharing insights / hints !
I tried as inner loop:
makeTuneWrapper(lrnr,
resampling = "oob",
par.set = params,
control = ctrl,
show.info = TRUE,
measures = list(logloss, multiclass.brier,
timetrain))
... but the value "oob" for parameter resamplin... | |
doc_33999 |
Can I do that in Crystal 2008?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.