id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23535400 | I have a Stacked Bar with a second line chart. I'd like the stacked bar y axis to be on the left and the second line chart to have the scale on the right. So this would be a swap for both y axis.
Here is my chart :
chart1 = BarChart()
chart1.type = "col"
chart1.style = 12
chart1.grouping = "stacked"
chart1.overlap ... | |
doc_23535401 | <div class="form-main-section classiera-post-cat">
<div class="classiera-post-main-cat">
<h4 class="classiera-post-inner-heading">
<?php esc_html_e('Select an Occasion', 'classiera') ?> :
</h4>
<ul class="list-unstyled list-inline">
<?php
$categories = get_terms('category', array(
... | |
doc_23535402 | what i would like to achieve is that when sending files that are larger then 20MB just to save the files aside and generate a link to download instead.
i would like to know:
*
*are there any plugin to courier that do it?
*what tools to i need to use to develop such a plugins?
A: How to make MTA replace large att... | |
doc_23535403 | I tried
Select count(*) from tabele
Where AVG(grade)> 7.6
and AVG(Grade)<8.3
Group by id
But there is always an error
A: The approach below is to first aggregate by student id and assert the average grade requirements in a HAVING clause. Then, subquery to find the count of such matching students.
SELECT COUNT(*)
FR... | |
doc_23535404 | I can disable screen pinning for a bit and then perform the transfer, but that is a security risk.
How can I do this?
Here is all the code if you want to try. All you need to do is enable screen pinning manually through your app settings (so it is less code and still produces the same result). I tested this using two ... | |
doc_23535405 | gst-launch-0.10 v4l2src device=/dev/video0 ! video/x-raw-yuv,width=320,height=240 ! videobox left=-320 border-alpha=0 ! queue ! videomixer name=mix ! ffmpegcolorspace ! xvimagesink v4l2src device=/dev/video1 ! video/x-raw-yuv,width=320,height=240 ! videobox left=1 ! queue ! send-config=true ! udpsink host=127.0.0.1 por... | |
doc_23535406 | for example, lets say i have this picture of a cookie like here.
and i have a color picker that lets a person select a color. I want to change the color of part of the image (in this case, lets say the color of the chocolate chips) to the color that is picked.
is that possible to do in javascript / jquery ?
A: Its ... | |
doc_23535407 | KDL::Tree my_tree;
if (!kdl_parser::treeFromFile("robot.urdf", my_tree)){
std::cout << "Failed to construct kdl tree"<< std::endl;
return false;
}
The above code works with ROS. However, in another project, which is not a ROS project, I need to construct this KDL tree. This computer doesn't have ROS and sadly ... | |
doc_23535408 | The demo is shown in http://jsfiddle.net/lightbringer/FsSmy/
<ul id="userstorylist" data-role="listview" data-filter="true">
<li id="draggable">
<div data-role="collapsible" data-theme="b" data-content-theme="d">
<h3>Userstory 1</h3>
<p>Content</p>
</div>
</li>
<li id... | |
doc_23535409 | ||
doc_23535410 | The task goes:
The company has more business office across the country. In addition to tire assembly, there are still several services: sales (tires and other products), tire maintenance, etc...
To change tires at the beginning of the season, it is necessary to order it by phone. The operator receives a call and for ea... | |
doc_23535411 | Ie.
root_url/countries/france
root_url/paris/some_place
root_url/paris
Here's my code to be more precise.
resources :countries do
resources :cities
end
resources :cities do
resources :places, :reviews
end
match ':id' => 'cities#show', :as => :city, :method => :get
match ':city_id/:id' => 'places#show', :as => :c... | |
doc_23535412 | For example, if I have
str1 = "world!";
str2 = "Hello, ";
Is there some way to combine those strings into one string that contains "Hello, world!"?
A: It can be done in many ways. Here is one approach which uses dynamic memory allocation:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
... | |
doc_23535413 | const callAndParseHttp = async (url) => {
const response = await got(url);
return await parseXml(response.body);
};
const parseXml = async xmlData => {
try {
const json = parser.toJson(xmlData.body);
return JSON.parse(json);
} catch (err) {
return err;
... | |
doc_23535414 | Mainly, they consume the same kafka topic (30 000 records / seconds), process the data and store it to a dedicated ElasticSearch cluster (sparkStr1 has ES1 and sparkStr2 has ES2).
*
*When the first one is running = all is good
*When both are running = the first one is slowed (and the second one is not very fast) => ... | |
doc_23535415 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { TranslateModule } from '@ngx-translate/core';
import { IonicModule } from '@ionic/angular';
import { HomePageRoutingModule } from './home-routing.module';
import { Ho... | |
doc_23535416 | Is it possible to download the necessary files beforehand with my normal account which does have internet access and then use those files to run create-react-app offline?
A: While you create the app it will have to download the installation packages. Maybe if you spin up your own registry locally with caching, then in... | |
doc_23535417 | function taskFirst(k, v) {
console.log(k, v);
}
function taskSecond(k, v) {
console.log(k, v);
}
function run() {
var g1 = "Something";
var g2 = "Something";
var g3 = "Something";
var g4 = "Something";
async.series(
[
taskFirst(g1, g2),
taskSecond(g3, g4)
... | |
doc_23535418 | Traceback (most recent call last):
File "C:\Users\QuartzMiner6000\PycharmProjects\Test1\src\main.py", line 309, in <module>
screen.register_shape('player.gif')
File "C:\Users\QuartzMiner6000\AppData\Local\Programs\Python\Python36\lib\turtle.py", line 1133, in register_shape
shape = Shape("image", self._imag... | |
doc_23535419 | PHP
private function _send_email($post_data) {
$data = array(
'email_from' => 'website@XXXXX.co.id',
'email_to' => \Config::get('config_basic.contact_us_email_to'),
'email_subject' => 'Contact Us message from ' . $post_data['name'],
'mail_subject' => 'Enquiry Conf... | |
doc_23535420 | That was the first question.
Second question:
Should I use ONE channel and ONE receiver for all that addresses? Or better to have channel and receiver for each mail address? I don't understand Spring so deeply to feel the difference.
p.s. this question is continuation of Spring multiple imapAdapter
A: In each child co... | |
doc_23535421 |
A: Sounds like you're trying to create a list of the user's favorite Activities in a String list? To do this...
*
*get the name of the Activity using String mActivityName = this.getClass().getSimpleName();
*create an ArrayList using ArrayList mFavList; which will collect the Activity names.
*Set an OnClickListe... | |
doc_23535422 | https://code.google.com/p/ics-openvpn/source/checkout
and it compile succesfully but when I create a profile and try to connect it .. it will give me an error "Error writing minivpn binary "
the readme file says
Optional: Copy minivpn from lib/ to assets (if you want your own compiled version)
but I havent found any mi... | |
doc_23535423 |
A: There is no standard C++ methods. standard library usually have defined realloc(), but on most platforms it all it does that is call of another malloc() and memcpy() to copy memory. You may want to use standard library containers which hide that mechanism - that's most common - or use memory pool object (allocate ... | |
doc_23535424 | Could you please help me on how do I establish private channel for messaging in sockjs-tornado ? (I mean Private conversation / one to one)
Below is the on_message function in my server side code -
def on_message(self, message):
str=message
mg=str.split('#:#')
sender=1 # This is the sender user id
recei... | |
doc_23535425 |
*
*call shell commands (for example 'sleep' below) in parallel,
*report on their individual starts and completions and
*be able to kill them with 'kill -9 parent_process_pid'.
There is already a lot written on these kinds of things already but I feel like I haven't quite found the elegant pythonic solution I'm... | |
doc_23535426 | I have the following code:
$urlRouterProvider.otherwise("/products");
$stateProvider
.state('root', {
url: "/stores",
abstract: true,
template: '<ui-view/>'
})
.state('products', {
url: "/products",
templateUrl: "<%= asset_path('store/templates/productList.html') %>",
controller: "productListCtrl as plCtrl... | |
doc_23535427 | How can I make a for loop to take 1 subject out for testing, and 32 for training, 33 times?
I also want to know the R^2 (R-squared) of each of my cross validated values.
This is the code I tried to make:
%% cross validation Leave 1 out
for i = 1:33
xcv = Predicted{1,i};
ycv = Original{1,i};
sse = 0;
... | |
doc_23535428 | Unfortunately the source of the data is noisy and thus there are multiple zero crossings.
If I filter the data before checking for zero crossings, aspects of the filter (gain-phase margin) will need to be justified while averaging the zero crossing points is slightly easier to justify
[123,125,127,1045,1049,1050,2147,... | |
doc_23535429 | I am using WebKitX by mobilefx.
I have not found this event or any way to get this event.
How can I achieve this using WebKitX, or can WebKitX not do this?
A: The event does not exist, and the developer does not add it.
I was able to use VB6 Webview2 instead:
https://www.vbforums.com/showthread.php?889202-VB6-WebView2... | |
doc_23535430 | private void bindPhoto(final PhotoViewHolder holder, int position) {
Picasso.with(context)
.load(photos.get(position))
.resize(cellSize, cellSize)
.centerCrop()
.into(holder.ivPhoto, new Callback() {
@Override
public void onSuccess() {
... | |
doc_23535431 | If Folder(folderName) does not exist in EITHER parent folder, then I want that folder to be created in Parent Folder 1.
So far my script is managing to check Parent Folder 1 and create in Parent Folder 1, but is not checking Parent Folder 2.
This is the script I have so far:
function myfunction() {
var parent = Dr... | |
doc_23535432 | from libc.stdlib cimport malloc, calloc, realloc, free
from optv.tracking_framebuf cimport TargetArray
The first one is not highlighted by PyCharm (2016.2.3 professional on Ubuntu 14.04) as unresolved refference but the second line is highlighted in red underline as unresolved refference.
My TargetArray class is loca... | |
doc_23535433 | def process_request(self, request, spider):
original_url = request.url
new_url= original_url + "hello%20world"
print request.url # This prints the original request url
request=request.replace(url=new_url)
print request.url # This prints the modified url
def process_response(se... | |
doc_23535434 | SELECT
*
FROM
"SNOWFLAKE"."ACCOUNT_USAGE"."QUERY_HISTORY"
I also tried another query according to this link and found out running queries but the limit(10000 rows) is so low so that I may miss information(my team heavily uses snowflake nowadays).
Is there any way to handle this problem?
A: I get to see the qu... | |
doc_23535435 | Here is the relevant line:
response.write "<a href='search.htm?supplier_name= & request.querystring('supplier_name') & "&aircraft_type=" & request.querystring('aircraft_type') & "&state=" & request.querystring('state') & "&order=state'>State</a>"
I believe the problem is associated with this section:
& "&order=state'>... | |
doc_23535436 | It seems I can do myPeerConnection.getStats() as described here I can measure the bytes sent or recieved. If they increase that means we are connected and the disconnected ICE state will be treated as temporary. otherwise, it is permanent.
But now I am confused about which byte I should measure. There inbound-rtp, outb... | |
doc_23535437 | UPDATE: The term is called melt
I have a data frame for countries and data for each year
Country 2001 2002 2003
Nigeria 1 2 3
UK 2 NA 1
And I want to have something like
Country Year Value
Nigeria 2001 1
Nigeria 2002 2
Nigeria 2003 3
UK 20... | |
doc_23535438 |
Error:
Argument of type '{ method: string; headers: { 'Accept': string; 'Content-Type': string; 'Authorization': string; }...' is not assignable to parameter of type 'RequestInit'.
Types of property 'headers' are incompatible.
Type '{ 'Accept': string; 'Content-Type': string; 'Authorization': string; }' is n... | |
doc_23535439 | So on my page i have several links in the menu bar where onclick a function is called upon. For instance
<li><a href="javascript:void(0);" onclick="myprofile()" ><span>my profile</span></a></li>
<li><a href="javascript:void(0);" onclick="mysettings()"><span>Settings<small>
A function would look something like... | |
doc_23535440 | Current script is something like this:
$appID = $appServers | ForEach-Object {
Get-Service "AppIDSvc" -ComputerName $_
}
Write-Host "Application Identity Service Status - App Servers"
$appID.Status
Text file just has a list of server names, so the output lists 4 lines that say:
Status
Name
DisplayName
Ru... | |
doc_23535441 | numbers = [10,15,20]
def get_data(request, *args,**kwargs):
data = {
'num': numbers,
}
return JsonResponse(data)
A: In flask I would use jsonify:
from flask import jsonify
def get_data(request, *args,**kwargs):
data = {
'num': numbers,
}
return jsonify(data)
| |
doc_23535442 | I've been working on this problem for 24 hours now and I can't seem to fix it.
Even a blank Xamarin.Forms Project causes the Black Screen. I guess the path of the Android SDK might be wrong? (but I don't know how to fix it...)?
A: I got it resolved by running VS as administrator
Try it out.
| |
doc_23535443 | I've tried with many options like wireframe=false, but the edges are still drawn.
This is the code:
var container, stats;
var camera, scene, renderer;
var canvasWidth = 500;
var canvasHeight = 500;
var windowHalfX = 100;
var windowHalfY = 100;
container = docum... | |
doc_23535444 |
A: QTextStream lets you read line by line
QFile file(hugeFile);
QStringList strings;
if (file.open(QIODevice::ReadOnly | QIODevice::Text))
{
QTextStream in(&file);
while (!in.atEnd()) {
strings += in.readLine().split(";");
}
}
A: You can use file streams.
QFile file = new QFile(hugeFile);
... | |
doc_23535445 | I have a GET call that looks something like this:
@Path("/status/{requestID}")
@GET
public Response getStatus(@PathParam("requestID") String requestId) {
MDC.put("myRequestID", requestId);
// Do some processing
return response;
}
I use MDC to add request ID and other information that I need in my logs. Now... | |
doc_23535446 | I have tried doing it, but the only problem is that there are duplicate entries which are being added to it.
For Each Cell1 In Worksheets(1).Range("A1", Worksheets(1).Range("A1").End(xlDown))
For Each Cell3 In Worksheets(3).Range("A1", Worksheets(3).Range("A1").End(xlDown))
If N... | |
doc_23535447 | import flask
import pickle
with open('model/KTcategory-predictor.pkl', 'rb') as f:
model = pickle.load(f)
with open('model/KTtfidf.pkl', 'rb') as f:
tfidf = pickle.load(f)
app = flask.Flask(__name__, template_folder='templates')
@app.route('/', methods=['GET', 'POST'])
def main():
count_vectorizer = Co... | |
doc_23535448 | CallAgents
name
email
phone_number
CallLogs
call_id
description (corresponds to the name from the UserAgents table)
action (connected or missed)
date
I want my result to look like this:
name, email, phone_number, nr_of_connected_calls, nr_of_missed_calls
So far I've tried this query but the results for nr_of_connect... | |
doc_23535449 | Everything runs fine when the database starts empty. However, when the dummy data data.sql file runs before lauching the application, and then inserting objects through the application, the insertion doesn't take into account previous IDs, therefore resulting in duplicate entries until the number of lines is reached :
... | |
doc_23535450 | SELECT *
FROM article
WHERE online= 1
AND IF(ISNULL(dateHOnline), dateHCreation, dateHOnline) <= Convert_TZ(Now(), "SYSTEM", "Europe/Paris")
But Convert_TZ(Now(),"SYSTEM","Europe/Paris") returns null, probably because my mysql server does not support timezone tables (putting +02:00 return a datetime).
So how can I ... | |
doc_23535451 | On searching, one method I found was this (https://stackoverflow.com/a/820124/7995937):
from netaddr import IPNetwork, IPAddress
if IPAddress("192.168.0.1") in IPNetwork("192.168.0.0/24"):
print "Yay!"
But since I have to loop this over 200,000 IP Addresses, and for each address loop over 10,000 subnets, I am uns... | |
doc_23535452 | (this code is inside main.swf)
function loadImage(url:String):void {
imageLoader = new Loader();
imageLoader.load(new URLRequest(url));
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
}
loadImage("test1.sw... | |
doc_23535453 | I hide it with opacity: 0 for fadeIn animation and after that I set display to none but I am not sure if the animation is rendered nevertheless and consumes resources.
An answer would be highly appreciated.
A: According to this w3c draft, no; the animation is terminated:
Setting the display property to none will term... | |
doc_23535454 | 1) Trying to broadcast ping and using arp -a only gives the Gateway address, since docker is running inside a subnet.
2) Using nmap I cannot verify the MAC, I could only see if there is a live host in that address.
I tried the above by running docker in --privileged mode and still the results are the same.
| |
doc_23535455 |
quarter = our_date.quarter
quarter_start_date= datetime(our_date.year, 3* quarter -2, 1)
return quarter_start_date
def days_in_between_f(our_date):
quarter_start_date=first_day_quarter_f(our_date)
delta=our_date-quarter_start_date
days=delta.days+1
return days
def first_day_name_f(o... | |
doc_23535456 | I think this will be the perfect method to help with my hw but im having trouble understanding how to use it.
How do i make the sequence < /p> comes up.
This is what i have so far:
String s = "</p>";
char c;
while(reads.hasNext()){
c = reads.next();
s = "" + c;
if (inputPath.contains(?)) {
// how do i ma... | |
doc_23535457 | Here is how terminal responds when I have a git command
git log
Not sure how to fix it.
this is how .bash_profile loks like
"$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
if [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
. /usr/local/etc/bash_completion.d/git-completi... | |
doc_23535458 | I keep getting the error "-bash p4: command not found".
I followed the top 7 steps here and got the same error:
http://www.endlesslycurious.com/2008/11/11/configuring-p4-command-line-client-on-mac-os-x/
I couldn't find anything else useful when searching.
Has anyone else encountered a similar issue and resolved it?
A:... | |
doc_23535459 |
A: I've solve the problem: You can use it without a server, however, you will have to set site correctly. If you can't be sure what the url will be (it can start with file, but you don't know the middle), then hosting online is the only solution, even if no callback is needed.
A: Reading the Javascript SDK documentat... | |
doc_23535460 | I want to show only one element(h4) when I click a button.
For example, I have 5 plans and each plan has one button and one h4 tag.
When I click the third button, only the third h4 tag will shows.
As expected by my code, when the button is clicked it displays every element's h4 tag of the map. Is there any way I could ... | |
doc_23535461 |
I cannot seem to find any information/documentation on how to open this dialog in code.
I have an app written in swift that does not use xib/storyboards so there is no default "About" menu item. While writing a custom one isn't exactly hard I am still wondering how to just open the standard one.
Any pointers to docume... | |
doc_23535462 | <table>
<a href="screener.ashx?v=111&f=targetprice_a5&r=21"/>
<a href="screener.ashx?v=111&f=targetprice_a5&r=41"/>
<a href="screener.ashx?v=111&f=targetprice_a5&r=61"/>
</table>
Take note only one new parameter is added to the url "r=21", the rest are consistant throughout different result pages.
Is this even p... | |
doc_23535463 | I think I'm negotiating the proxy OK (because the other installs worked), so does this indicate that there is something different at the end server giving me the grails content, or is my proxy objecting to the grails content.
Any advice on how to debug / fix would be appreciated
Windows XP, cygwin (very recent download... | |
doc_23535464 | Cloth Issue
| |
doc_23535465 | (browser.find_element_by_id ('formComp: buttonBack').
When this element appears, I want the loop to stop and go to the next block of code.
I tested it that way, but it made a mistake. Python reported that the element "formComp: buttonback" was not found. But that's just it, if not found continue the loop:
while (br... | |
doc_23535466 | Now, I have a bunch of git repositories, for various projects, several of which are on github. I also have the SVN repository I mentioned, imported via the git-svn command..
Basically, I like having all my code (not just projects, but random snippets and scripts, some things like my CV, articles I've written, websites ... | |
doc_23535467 | npm install tabler-ui
I add the tabler package to resources/sass/tabler.scss and then add the SASS file to webpack.mix.js.
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.sass('resources/sass/tabler.scss', 'public/css');
But after trying to npm run watch, I got the fo... | |
doc_23535468 | a = navigator.language;
b = navigator.userLanguage;
language = (a && !b)? a.toLowerCase() : b;
pl = 'pl';
ru = 'ru';
en = 'en'||'us'||'au'||'bz'||'ca'||'gb'||'ie'||'jm'||'nz'||'tt'||'za';
switch (language) {
case pl: window.location.replace('polish.html'); break;
case ru: window.location.replace('russian.html');... | |
doc_23535469 | SELECT YEAR(o.date_added) AS YEAR, MONTH(o.date_added) AS MONTH, Count(*) AS COUNT FROM `order` o WHERE (YEAR(o.date_added) =2012) GROUP BY year, month;
There are no records for Months 1 and 2 but I want the Count to return 0 for these months
| |
doc_23535470 | function pp(r)
{
console.log("In Function", r);
console.log("In Function", q);
console.log("In Function", m);
}
If I execute this - I am able to use the variable q inside the function, even though it is not defined as a function parameter. However in that place if I place another variable - it throws an er... | |
doc_23535471 | on parent html:
<cl-sort-n-reverse flip-reverse="flipReverse()" set-key="setKey(key)" sort-key="sortKey" rev="reverse" key="body" title="Content"></cl-sort-n-reverse>
in directive js:
.directive('clSortNReverse', function () {
return {
restrict: 'E',
scope:{
innerKey : '... | |
doc_23535472 |
*
*I have an imploded array (1, 5, 3, 4, ..).
*Two tables where I need to use UNION to merge column atribute.
*And return one result where atributes are equal or greater with my array order by rand().
Is there some simple way to approach this?
I tried using IN() clause, but It will not return equal or greater re... | |
doc_23535473 | from tkinter import Tk, Label, RAISED, Button, Entry
self.window = Tk()
#Keyboard
labels = [['q','w','e','r','t','y','u','i','o','p'],
['a','s','d','f','g','h','j','k','l'],
['z','x','c','v','b','n','m','<']]
n = 10
for r in range(3):
for c in range(n):
... | |
doc_23535474 |
A: Using pySerial:
Python 2.x:
import serial
byte = 42
out = serial.Serial("/dev/ttyS0") # "COM1" on Windows
out.write(chr(byte))
Python 3.x:
import serial
byte = 42
out = serial.Serial("/dev/ttyS0") # "COM1" on Windows
out.write(bytes(byte))
A: Google says:
*
*http://pyserial.sourceforge.net/
*http://balder.... | |
doc_23535475 | def to_do_count
Task.where(status: 0).count
end
def in_progress_count
Task.where(status: 1).count
end
def paused_count
Task.where(status: 2).count
end
def completed_count
Task.where(status: 3).count
end
I need help to optimize this code as there are l... | |
doc_23535476 |
Error signing output with public key from file 'redacted.snk' -- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
The closest related SO question I could find is this one here. I have attempted all of the recommendations with no success, including:
... | |
doc_23535477 | import { Directive } from '@angular/core';
import {AbstractControl, AsyncValidator, NG_ASYNC_VALIDATORS, ValidationErrors} from "@angular/forms";
import {Observable} from "rxjs";
import {IUser} from "app/core/user/user.model";
import {UserService} from "app/core/user/user.service";
@Directive({
"selector": '[uniqueU... | |
doc_23535478 | I need to pass objects of different struct types from SV to C. And I want to have a single DPI function to handle any kind of supported struct.
On SystemVerilog side I have many types:
typedef struct { ... } stype1;
typedef struct { ... } stype2;
typedef struct { ... } stype3;
typedef struct { ... } stype4;
stype1 var... | |
doc_23535479 | Private Sub DownloadFile(ByVal fname As String, ByVal forcedownload As Boolean)
Dim flpth As String
Dim fnm As String
Dim ext As String
Dim tp As String
flpth = System.IO.Path.GetFullPath(Server.MapPath(fname))
fnm = System.IO.Path.GetFileName(flpth)
ext = System.IO.Path.GetExtension(fnm)... | |
doc_23535480 | I want to integrate my app with a database. This database has a table with a field called 'status' which can change frequently (every couple of minutes or so).
I want my web app to know what the value of the status field is in real time.
My Current Method:
I currenlty, have an AJAX function in Javscript which sends a ... | |
doc_23535481 | For example :
1 2 3 4 5 6 7 8 9 10 -> f(1)= 1 + 2 + .. + 8 + 9 + 1
1 2 3 .. 98 99 100 -> f(2)= 1 + 2 + .. + 8 + 9 + 1(1+0) + 11 + 12 + … + 99 + 1
1 2 3 .. 98 99 100 … 998 999 1000 -> f(3)= 1 + 2 + .. + 8 + 9 + 1 + 11 + 12 + … + 99 + 1 + 2 + .. + 111 + … + 1
NOTICE : 102 change to : 1 2 (1+0+2=3)
Rather be recursive!... | |
doc_23535482 | I am able to create a standard survival curve without issue using the following code:
km <- svykm(Surv(rec_time,rec)~procedure, design=design.mnps)
plot(km)
I have looked online, and if it wasn't a svykmlist object, the following would work:
km <- svykm(Surv(rec_time,rec)~procedure, design=design.mnps, function(x) 1-x... | |
doc_23535483 | public static readonly DependencyProperty HtmlProperty = DependencyProperty.RegisterAttached(
"Html",
typeof(string),
typeof(Class1),
new FrameworkPropertyMetadata(OnHtmlChanged));
[AttachedPropertyBrowsableForType(typeof(WebBrowser))]
public static string GetHtml(WebBrowser d... | |
doc_23535484 | That works fine with Chrome browser.
The CreateJS framework should work with iOS.
You can find my code here:
Link no more available
Do you have any idea?
Otherwise, do you have any other solution to create HTML5 animation for iPad from the web?
In addition, I need to add sound to this animation with synchronization w... | |
doc_23535485 |
dateTextBox.Click();
dateTextBox.SendKeys(date);
driver.FindElement(By.Id("btnSave")).Click();
I have a page where I have a Telerik date control with a textbox. The user inputs a date into the text box and clicks the save button.
For some reason when I run the test it enters the date into the text box but when it ... | |
doc_23535486 | The columns are created in the FacadeTableComponent based on someComponent, and passed as an input to the NgxDataTable.
But now I want to add a tree view to the datatable (that works) but I want the FacadeTableComponent to set a default first column with a button that does the tree collapsing/expanding. So I thought t... | |
doc_23535487 | In this page there is a button to export the table in excel.
When I click this button, the script prepare the string and send a POST request to PHP.
The sent string has a total of about 60000 chracters.
When I do $_POST in the php page, the php server crashes.
I have alredy changed the php.ini file in the following way... | |
doc_23535488 | public class Customer
{
public string Name { get; set; }
public DateTime DOB { get; set; }
[System.ComponentModel.DataAnnotations.Schema.NotMapped] // <- this is what I want to do, but can't in PCL
public AccountCollection Accounts { get; set; }
}
The above has the "NotMapped" attribute, which is what ... | |
doc_23535489 | SELECT
InventoryItem.ItemName as 'Part Number',
InventoryItemDescription.ItemDescription as 'Description',
InventoryStockTotal.UnitsInStock as 'In Stock',
InventoryStockTotal.WarehouseCode AS 'Warehouse',
InventoryItem.Status,
InventoryItem.AverageCost AS 'Average Cost',
(InventoryItem.AverageCost * Units... | |
doc_23535490 | The .py file has the following:
from flask import Flask, render_template, flash, session, redirect, url_for
from flask_wtf import FlaskForm
from wtforms import StringField,SubmitField
from wtforms.validators import DataRequired
app = Flask(__name__)
app.config['SECRET_KEY'] = 'kmykey'
... | |
doc_23535491 | In the search page "/share/page/dp/ws/faceted-search". I have included a button "AlfDynamicPayloadButton".
When the button is clicked it opens a dialog with "ALF_CREATE_DIALOG_REQUEST" and inside of it my custom widget.
I need the current search parameters into that widget to create a special visualisation.
My code in... | |
doc_23535492 | I would prefer to publish the common things in a maven repo, but any other way is also welcome.
Clarification: What I am basically looking for is something like
apply from: "foo"
and foo is not a local file, but in a jar on the classpath.
A: *
*Beginner - Shared Gradle scripts:
One way to start could be to use a s... | |
doc_23535493 | I am not sure what could be advantages and disadvantages of providing .apk file?
Questions are :
*
*Will Google play count direct .apk installation as a download, when connected to internet ?
*Will users with direct .apk installation get any update published later ?
A: To answer your questions:
*
*Yes, you wil... | |
doc_23535494 | The Upload view contains following
<div class="jumbotron">
<form action="/Upload"
class="dropzone"
id="dropzoneJsForm"
style="background-color:#00BFFF"></form>
</div>
And the Upload controller contains this
[HttpPost]
public async Task<IActionResult> Upload(IFormFile file, IHostingEnv... | |
doc_23535495 | At the very bottom of my Storyboard file, I see block named "inferredMetricsTieBreakers", with bunch of "segue" tags contained within. It seems that some segue in my local repo is conflicted with another segue in the remote repo. To be safe, I could just "choose both". But since this happened once before, I'm afraid t... | |
doc_23535496 | and we have received numerous reports from users that upload fails starting that date. Direct upload ( < 4 MB ) method worked OK and still works OK.
It seems Microsoft did some migration to the new Azure portal around that date. Could it be related and that azure does not (yet) support session based uploads? Any other ... | |
doc_23535497 | So two questions: Why is this the case, and how can I prevent this?
Thank you.
A: MongoDB treats all number literals as floating point by default, and above a certain threshold (32 bits?) it switches to scientific notation when exporting to JSON.
A: For dumping data you can use --eval option of mongo command line cli... | |
doc_23535498 | extension String {
func join<S : SequenceType where String == String>(elements: S) -> String
}
I would expect it to be
extension String {
func join<S : SequenceType where S.Element == String>(elements: S) -> String
}
because I think the intent should be to ensure the elements in a sequence are String when pas... | |
doc_23535499 | self.< IBOutlet property > = nil;
in -(void)viewDidUnload
If I'm using iOS 4 (and using ARC) and forced to use unsafe_unretained instead, does it mean I have to override viewDidUnload and set the property to nil manually?
EDIT:
This relates to my case: Should IBOutlets be strong or weak under ARC?
The exception being:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.