id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_14700 | In my R&D team at work we have some web projects that were written in .NET MVC 5. We also have some projects that are running on our dev machines in python (with pycharm).
Basically we work with Macs for development, but since the production servers are building the projects on windows we also work with VM running Wind... | |
doc_14701 | df = pd.read_csv("./train.csv")
# Bar plot for exercise induced angina by heart disease.
# Y: Yes, N: No
fig, ax=plt.subplots(1, 3, figsize=(14, 5), sharey=True)
l = ['index', 'exercise angina']
df.groupby(by=['exercise angina']).count()['age'].plot(kind='bar', ec=colors[-1], ax=ax[0], title='Exercise Angina by Heart ... | |
doc_14702 | const name = document.getElementById("name")
const tel = document.getElementById("number")
const email = document.getElementById("email")
let send = document.querySelector("#btn");
send.addEventListener('click', ()=>{
console.log("workds")
})
Uncaught TypeError: send is null
| |
doc_14703 | So far my best guess would be writing the output into a local file, and then sending it to the printer through exec().
P.S.: Do not suggest php_printer unless you can provide a proper dll of it(for PHP 4.3, that is).
A: I don't think it's very nice to have web pages (I am assuming you're not using CLI PHP since suppor... | |
doc_14704 | 3 2
6 5 4
10 9 8 7
10 9 8 7
6 5 4
3 2
1
userInput=5
for i in range(1,userInput+1):
for s in range (userInput - i) : # s is equivalent to to spaces
print(" ", end="")
for j in range(1,(i * 2) ):
print(j, end="")
print()
for i in range(userInput-1, 0, -1):
for... | |
doc_14705 | sep=,
A,B,C
1,2,3
4,"5,3",6
The Python code looks like this:
import csv
with open("tstSO.csv") as csv_file:
csv_reader = csv.DictReader(csv_file)
for row in csv_reader:
thisA = row["A"]
print(thisA)
Running this, I get KeyError: 'A' in the error message. If I remove the sep=, line, then I get... | |
doc_14706 |
*
*searching computer for old versions of dcef3_D14.bpl and dcef3_D14.dcp to make sure compiler wasn't seeing an older version.
*rebuilding all libraries that use my library with the TChromium control
*updating the packages list to make sure dcef3_D14.bpl was there.
*deleting and re-adding the TChromium control o... | |
doc_14707 |
*
*models
*views
*controllers
*data_and_execution.
I'm trying to build the app using Py2app, however, I'm getting import errors when running the app such as:
"4/27/16 9:52:29.252 PM main[63983]: ImportError: No module named controllers.available_balances_controller"
I believe it's because I have the 'includes'... | |
doc_14708 | What I've tried
Other answers around the web say this happens when you haven't compiled debug information into your classes. In Ant for example, this would be done with <javac debug="true" .... Searching for a way to do this in gradle yields only
http://gradle.org/docs/2.3-rc-2/dsl/org.gradle.api.tasks.compile.Compil... | |
doc_14709 | Problem: When running it in Chrome browser (not fullframe) and login to the with eg. google its no problem. When i save it to homescreen and use it in standalone mode (pwa) and hit the our login btn ,google login window opens and i pic an account to login whith. After that the pwa restarts with the splashscreen and im ... | |
doc_14710 | start()
{
d3.select(#svgArea)
.append("rect")
.attr("id", "newRect")
.attr("x", 10)
.attr("fill", "#FFFFFF")
.attr("stroke", "#666666")
.attr("y", 10)
.attr("width", 250)
.attr("height", 100)
.on("mousedown", () => { d3.event.stopPropagation();... | |
doc_14711 | I am struggling to make some of the items reusable. For example, using the window in the image below, I would like to drag the item named "One" to col1 and col2. Does anyone know how I could do this using the code below?
library(shiny)
library(sortable)
ui <- fluidPage(
tags$head(
tags$style(HTML(".bucket-list... | |
doc_14712 |
A: No native Vim option seems to alter this, but there is an old plugin which could accomplish what you want to achieve called vimroom. It is not actively being maintained and I don't know if it still works with current Vim versions. But this screenshot makes it look like it is possible to have the line numbers way on... | |
doc_14713 | foreach (InkStroke stroke in inkCanvas.InkPresenter.StrokeContainer.GetStrokes())
{
stroke.DrawingAttributes.Color = strokeColour;
};
This code executes with no exceptions, but stroke.DrawingAttributes.Color still shows the previous colour.
Any ideas?
Thanks...
Robert
A:
You canno... | |
doc_14714 | For example i have 4 check boxes and if is select the 3rd check-box then 1st and 2nd also selected and if i select 4th check-box then 1st, 2nd, and 3rd also got selected.
Any hint about this in jquery , java script or any other language?
help will be appreciated...........
HTML Code
<form>
<div>
<input type="checkb... | |
doc_14715 |
*
*What is the relation between twbx and tdsx?
*Is twbx file : twb + tde file OR twb+tde+tds file ?
*What would be the main difference between tds and tdsx file ?
*How to use a tps(preferences) file in tableau workbook?
*can all the file extensions be used on server or only some ?
A: *
*twbx contains the wor... | |
doc_14716 | var ifrm = document.createElement("IFRAME");
ifrm.setAttribute("src", "http://www.w3schools.com/");
if (ifrm.contentDocument) {
// Firefox, Opera
doc = ifrm.contentDocument;
}
else if (ifrm.contentWindow) {
// Internet Explorer
doc = ifrm.contentWindow.document;
... | |
doc_14717 | The solution that I currently have works perfectly for Chrome and Firefox. However on Safari and Iphone fails.
I have already tried the proposed solution from this guide: https://codesamplez.com/programming/php-html5-video-streaming-tutorial
Using this guide no video is streamed back.
Here is my current code that allo... | |
doc_14718 | StringBuilder sb = new StringBuilder();
string bla = "bla";
sb.AppendLine(string.Format("android:id=\"@+id/{0}\" ", bla));
...but then I noticed that StringBuilder has an AppendFormat() method, which obviates the "string.Format()". So I wondered if AppendFormat() also adds a newline, as AppendLine() does (as opposed t... | |
doc_14719 | I am currently using CodeIgnitor for the project and wondering whether a response of either success
"Success, you have updated your profile"
or error
"There was an error updating your profile!"
should have a message that is set in the JS function or if it should simply be put in the JSON response but unsure which i... | |
doc_14720 | here is my CSS code and screenshot
.section-title {
text-align: center;
position: relative;
color: #fff;
margin-bottom: 30px;
text-transform: uppercase;
}
.section-title:after {
display: block;
position: absolute;
content: ' ';
border-bottom: solid 5px #2874f0;
top: 40px... | |
doc_14721 | NSOutlineView error inserting child indexes <NSIndexSet: 0x600003401ea0>[number of indexes: 1 (in 1 ranges), indexes: (10)] in parent 0x0 (which has 9 children).
I built the app using Xcode 14 Beta 3, and I was able to reproduce this issue on macOS Monterey and macOS Ventura Beta 3.
Minimal Reproducible Example
struct... | |
doc_14722 | func getAllDoctor(){
let param = ["page":"1"]
print(param,"param123")
Alamofire.request(helper.MainURL + "patient/getAllDoctor", method:.post,parameters: param).responseJSON { response in
self.stopAnimating()
if let result = response.result.value {
print(1)
let Dic... | |
doc_14723 | <div class="cas"></div>
...can you use an element before the CSS, like this:
div.cas {
}
...or like this?:
.cas {
}
Or either way?
A: Yes, either way, depending on your context.
div.cas selects any <div> element with class "cas".
.cas selects any type of element with the class "cas".
For example:
.test1 {
back... | |
doc_14724 | package exercises;
import java.text.DecimalFormat;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;
public class GPA_Calculator {
public static void main(String[] args)
{
String greeting = "Hello, this program will calculate your GPA. You will be asked \n"+
"to enter your letter grade f... | |
doc_14725 | <script type="text/javascript" language="javascript">
function showAddress_Byamit()
{
var e = document.getElementById("TabC_tp1_ddlcountry");
var country = e.options[e.selectedIndex].text;
}
</Script>
<asp:DropDownList ID="ddlcountry" runat="server" AutoPostBack="True"
Height="20... | |
doc_14726 | xlsx_package = Axlsx::Package.new
wb = xlsx_package.workbook
wb.add_worksheet(:name => "Basic Worksheet") do |sheet|
sheet.add_row ["First Column", "Second", "Third"]
sheet.add_row [1, 2, 3]
end
Any help will be appreciated!
Thank you.
| |
doc_14727 | the code snippet is like the following
private final BluetoothGattCallback bluetoothGattCallback =
new BluetoothGattCallback() {
@Override
public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
Log.d(TAG, "### onConnectionStateChange status: " + status + ",... | |
doc_14728 | Here what I tried
<?php
$args = array(
'post_type' => 'videos-presentations',
'post_status' => 'publish',
'posts_per_page' => 4,
... | |
doc_14729 |
$(document).ready(function() {
$('#newDiv').click(function() {
$("#button1").on("click", function() {
console.log("in onclick");
}).click();
})
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="newDiv"><button id="button1" hidden>Submit</but... | |
doc_14730 | function buttonClick()
{
var myTest = function()
{
var _setDirectlyInside = "So far so good...";
var _setInFunctionCalledInside;
var _setInFunctionCalledFromOutside;
(function(){
_setInFunctionCalledInside = "This would indicate scope isn't the problem?";
})();
return {
basic :... | |
doc_14731 | However one report remains daunting due to the nature of its input parameters and originally being computed in a function returning a list, not a LINQ query. The goal is to return all people in the people table who are less than x percent busy on any day in the range between date a and date b (variables input by report... | |
doc_14732 | I know about http://urbanairship.com, but I prefer do it in-house.
A: Have a look on MKStoreKit - small StoreKit wrapper. It gives some abstraction about what goes inside SK. However, you'll need to change it a bit to fit your needs
Hope this will help you
| |
doc_14733 | TypeScript code:
class Documents{
title: string;
toString() {
return this.title;
}
}
class Unit {
name: string = 'My Name';
documents: Documents[];
constructor(name:string, documents:Documents[]) {
this.name = name;
this.documents = documents;
}
toString() {
... | |
doc_14734 | but the same is appled to the listprefernce dropdown list as well and I can't see any option
as idiotic question as it sounds it has been killing me for hours
thanks in advance
| |
doc_14735 | Is there any way to run a like statement in a dataset?
Is it possible with ASP.NET?
I do not want to run a query to the database.
A: dataTable.Select("Name like '%rob%'");
The LIKE statement is supported in the DataTable.Select function as documented here:
http://msdn.microsoft.com/en-us/library/system.data.datacolum... | |
doc_14736 | In C, using Clang compiler, how can I do the atomic equivalent of
const int v = ++x
As I understand it, v = atomic_fetch_add(&x, 1) will return the original value (ie v = x++), which is a post-increment.
How do I return the updated value of x instead?
Note: this question is about C, and any replies with "use std::atomi... | |
doc_14737 | MonoTouch was very helpful for me, since I still think Objective C is insane to read and write (especially on German keyboards). So C# was a good alternative here.
On Android Java is the primary development language, from what I know. Since Java is much closer to C# than Objective C is, I'm in doubt whether I really sh... | |
doc_14738 | I but url in browser like :
http://localhost:3085/BasicService.svc/sess_details?subject = 999
it gaves me
<subjectDetails xmlns="http://schemas.datacontract.org/2004/07/CA_WCF" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<CommitteeId>121</CommitteeId>
<IsCommittee>true</IsCommittee>
<Name>new employe... | |
doc_14739 | Do I need to use getInitialState and props? or just need to use checkbox and onPress?
A: Here's a quick and very simple implementation.
import Icon from 'react-native-vector-icons/FontAwesome';
class MyCheckbox extends Component {
constructor(props) {
super(props);
this.state = {
c... | |
doc_14740 | public class UpdateProposalRequest {
protected ObjProposalData oProposalData;
public ObjProposalData getOProposalData() {
return oProposalData;
}
public void setOProposalData(ObjProposalData value) {
this.oProposalData = value;
}
}
I am trying to convert convert a string to the obj... | |
doc_14741 | Can anybody help?
A: Just add a .png file to your project. For iPhone it needs to be 57x57 px, and you can include a 114px version for retina if you like. Go to your app's project info (the blue icon in the navigator) then in the app info tab there are two spaces for icons. Drag the files onto the appropriate spaces a... | |
doc_14742 | Updating to Oracle 18 is returning a response as if the cursor is weakly typed:
https://learn.microsoft.com/en-us/biztalk/adapters-and-accelerators/adapter-oracle-database/message-schemas-for-ref-cursors
This link has the exact problem that we are facing, but the cursor is strongly typed.
I tried returning a ref cursor... | |
doc_14743 | A binary tree T with n nodes is said to be h-balance if for any node u
in T, the difference between the heights of its two sub-trees is at most h, where h >= 0
is an integer. Assume that an empty tree has height -1. Suppose each node u has
three fields: u.lc points to u's left child and u.lc = NULL if u does not have a... | |
doc_14744 | Let's say the grid is 300 x 400.
*
*Do cartesian product 300 x 400 get a list of 120000 elements, than use random.choice (Slow for large grids)
*Keep the selected points in a set, randomize again in a while loop if a duplicate point is produced. (Very slow and unpredictable if n is large)
I searched some similar qu... | |
doc_14745 | document.addEventListener('scroll', function(){
var h = document.documentElement,
b = document.body,
st = 'scrollTop',
sh = 'scrollHeight';
var percent = (h[st]||b[st]) / ((h[sh]||b[sh]) - h.clientHeight) * 100;
document.getElementById('scroll').textContent = 'scrolled: ' + percent + '%';
});
That sho... | |
doc_14746 | package main
import (
"fmt"
"github.com/jmoiron/sqlx"
_ "github.com/go-sql-driver/mysql"
)
type Data struct {
Stuff string
}
func main() {
db, _ := sqlx.Connect("mysql", "root:root@(localhost:3306)/data")
var datas []Data
db.Select(&datas, "select 'a,b' stuff from data limit 10")
fmt.... | |
doc_14747 | library(xlsx)
df = read.xlsx("file.xlsx",sheetIndex = 1)
library("readxl")
my_data <- read_excel("file.xlsx")
File file.xlsx has several columns, in particular two of them contain dates and times. For example:
for dates, and
for times. These results are not read correctly from the above lines of code:
> df$Date.pub
... | |
doc_14748 |
How do I achieve the same behavior with pcolormesh()?
The image was generated by the following code:
import numpy as np
import matplotlib.pyplot as plt
t = np.linspace(-1, 1, 101)
X, Y = np.meshgrid(t, 2*t)
Z = np.sin(2*np.pi*(X**2+Y**2))
fig, axx = plt.subplots(1, 2)
axx[0].set_title("imshow()")
axx[0].imshow(Z, ori... | |
doc_14749 | I did an initial VLOOKUP Macro as such.
Sheets("Opportunity Created Month").Select
ActiveCell.Offset(0, 8).Columns("A:A").EntireColumn.Select
ActiveSheet.ListObjects("Table1").Range.AutoFilter Field:=2, Criteria1:= _
**"=7*",** Operator:=xlAnd, Criteria2:="=*2018*"**
I then tried to replace the "=7*" with a function ... | |
doc_14750 |
*
*Works in JSFiddle, but not on my local folder.
- file Jquery.js placed in folder "js" and src="js/Jquery.js"*
*The slide-toggle behavior of the 2nd menu "header" isn't quite the same as the first "header". It is more of a toggle than a slideToggle - why is that?
JSFiddle: http://jsfiddle.net/chg9w/225/
<ol c... | |
doc_14751 | Here are 2 examples.
Textastic &
Prompt
Now I know that I can add inputAccessoryView to UITextView but it still has small thin line that separates keyboard from UIToolbar like on image bellow.
How they do it? Extending UIWindow that holds keyboard or in some other way?
Update 1 with answer:
So I have used solution th... | |
doc_14752 | My Bot is consist of multiple InlineKeyboardButton and handled by ConversationHandlers. So my menu is completely done but i've got some issues here. How to make "return" button so i can move to the previous menu or back to main menu? I dont have any idea how to make it work
Here my code
def start(update: Update, contex... | |
doc_14753 | The code looks like this:
while(1) {
wait(&status);
if(WIFEXITED(status))
break;
orig_eax = ptrace(PTRACE_PEEKUSER,
sb->child, 8 * ORIG_RAX,
NULL);
printf("%l\n", orig_eax);
if(orig_eax == SYS_open) {
if(toggle == 0) {
... | |
doc_14754 | //imported everything
@Component({
selector: 'anything',
templateUrl: '.html',
})
export class anything{
public x: number;
let message : string;
constructor(public nav: NavController, public authData: AuthData,public service: Service) { }
async doSomething() {
try {
await this.au... | |
doc_14755 | import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
export interface IApiGatewayIntegrationProps extends cdk.StackProps {
/**
* Application Name. Will be used to name all the resources
*/
appName: string;
/**
* Route name to add the API Gateway Integration onto.
* For example... | |
doc_14756 | std::vector<int> v;
for (auto i = 0; i < v.size(); ++i) {
...
}
It would be ideal for C++ to deduce i as std::vector<int>::size_type, but if it only looks at the initializer for i, it would see an integer. What is the deduced type of i in this case? Is this appropriate usage of auto?
A: The answer to your questio... | |
doc_14757 | this is popup.js
function myFunction() {
var url;
chrome.tabs.query(
{currentWindow: true, active: true},function(tabs){
url=tabs[0].url;
});
alert(url);
chrome.runtime.sendMessage({url: url}, function(response) {
document.getElementById... | |
doc_14758 | struct Vector3D
{
float x, y, z;
float& operator[](int i)
{
return ((&x)[i]);
}
}
Can anyone explain how the [] operator gives access to the fields y and z?
The way I think this works is by first get the address to x, then doing pointer arithmetic to get each individual field. That being the c... | |
doc_14759 | 1.) Click on category
2.) Show filtered products
3.) Select filtered products
4.) Display selected products in most right part of screen /3rd child component/
What I would like to achieve is next:
When I click on product (3rd step), product is added to 'right' component, and there I would like to change a font size of ... | |
doc_14760 | First I tried using InternalResourceViewResolver but no luck as it seems that it only expects .jsp files and won't show anything else.
Then I tried using Thymeleaf. Thymeleaf follows the XML standard which forced me to rewrite most of my html to follow the xml requirements, and after I'd done that it died upon encounte... | |
doc_14761 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;
using System.Collections;
namespace MyApp {
public partial class MyApp : Form
{
publ... | |
doc_14762 | meteor mongo --url myApp.meteor.com
mongodump -u client -h production-db-b2.meteor.io:27017 -d myApp_meteor_com -out dump/2014_10_21 -p [password from meteor mongo --url]
mongorestore -u client -h production-db-b2.meteor.io:27017 -d myApp_meteor_com dump/2014_10_21_v2/myApp_meteor_com -p [password from meteor mongo -... | |
doc_14763 | Here's what's in my script tags. The problem likely lies here.
<script>
$( document ).ready(function(){
$(".button-collapse").sideNav({menuWidth: 320, activationWidth: 70, edge: 'right', closeOnClick: true});
$('#modal2').modal();
$('#modal1').modal();
});
</script>
Edit: Added the modal link, which is a ra... | |
doc_14764 | $ sudo npm install -g tileserver-gl
/usr/local/bin/tileserver-gl -> /usr/local/lib/node_modules/tileserver-gl/src/main.js
> sqlite3@4.1.1 install /usr/local/lib/node_modules/tileserver-gl/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
no... | |
doc_14765 | ||
doc_14766 | Parent:
div id="sticky-header-sticky-wrapper" class="sticky-wrapper is-sticky" style="height: 149px;"
Child:
nav id="site-navigation" class="main-navigation clearfix" role="navigation" aria-label="Main Menu"
I am trying to hide site-navigation. What is the correct way to select the property here. I have tried:
#sticky-... | |
doc_14767 | request.getSession().setAttribute(Constants.DATA_LIST,dataList);
where dataList is ArrayList
dataList=(ArrayList)request.getSession().getAttribute(Constants.DATA_TRANSFER_OBJECT);
and Constants.DATA_LIST returns String.
Someone please help me how to fix this to avoid trust boundry violation flaw.
A: The violation i... | |
doc_14768 | Based on which, I started my namenode, secondary namenode and bunch of datanode. The system runs well until one day JN2 and JN3 are dead. Furthermore, the disks are corrupted.
Then I purchased the new disks and restarted JN2 and JN3. The bad thing is it didn't work anymore.
It keeps complaining
org.apache.hadoop.hdfs.q... | |
doc_14769 | Set SbA = Worksheets("SumByAddress")
Set SbM = Worksheets("SumByMeterSize")
Set SFD = Worksheets("ShortFormData")
Counter = 2
premiseID = ""
RowNew = 2
TotalRows = SFD.Cells(1, 1).End(xlDown).Row
Application.Calculation = xlCalculationManual
TimeStart = Now
PrevUpdate = Now
SFD.Range("M15") = "Creating summation by add... | |
doc_14770 | I followed several different guides/tutorials on how this should work but I must be doing something wrong.
I get a compile error trying to turn a single object into a Flow, whereas the guides I'm following dont seem to do this at all.
Any pointers or otherwise very appreciated!
Router:
@Bean
fun mainRouter(hand... | |
doc_14771 | from collections import namedtuple
firefoxprofile = namedtuple("Profile", ["Name", "Path", "isRelative", "Default"])
jb = firefoxprofile(Name='Jason', Path='Profiles/er5rtak4.Jason', isRelative='1', Default=None)
sr = firefoxprofile(Name='Sarah', Path='Profiles/23mvfqcj.Sarah', isRelative='1', Default=None)
files = [... | |
doc_14772 | I wrap TensorFlow model with a loss function in a model_fn() for a tf.estimator.Estimator instantiation.
Various optimizers (e.g. tf.train.MomentumOptimizer, or tf.train.AdagradOptimizer) create Read(_x) operations for all trainable variables in the model (gamma, beta of batch normalization, kernels of convolutions, ..... | |
doc_14773 | I've just briefly looked but it seems like support is not very good.
I would like to use the ESB to build macro services by composing from modular smaller services. I think this would be a pretty typical use of an ESB, and I don't see how you can implement anything practical if you don't have transactions.
A: WS Atomi... | |
doc_14774 | I want the selector to apply only to the input nested within #section1 and not within #section2.
<div class="section" id="section1">
<div class="section" id="section2">
<input type="text">
</div>
<input type="text">
</div>
This is a simplified example, but here are some notable things:
*
*the di... | |
doc_14775 |
Scanner input = new Scanner(System.in);
System.out.println("What would you like the file to be called?");
String output = input.nextLine();
if (!output.contains(".txt")) {
output += ".txt";
}
PrintWriter out = new PrintWriter(output);
System.out.pri... | |
doc_14776 | DataTable dt = GetData();
DataView dv = new DataView(dt);
dv.RowFilter = "A IS NOT NULL OR A IS NOT ''";
The above doesn't seem to work though.
A: I am assuming you need to retrieve all the records where the value in column A is neither null nor ''
The correct expr is:
dv.RowFilter = "A IS NOT NULL AND A <> ''";
... | |
doc_14777 | {
"_id":ObjectId("61e53553ac31665894ebf6bc"),
"questionID":"8",
"questionContent":"find it",
"questoinAnswer":"it's here",
"questionStatus":"active",
"questionImage":"some image",
"hints":[
{
"hintID":"1",
"hintSubject":"in you pucket",
"hintContent":"bla bla bla",
... | |
doc_14778 | I have a data-frame as follows (sample rows below):
> str(tt)
'data.frame': 1008142 obs. of 4 variables:
$ customer_id: int, visit_date : Date, format: "2010-04-04", ...
I want to compute the diff between visit_dates for a customer.
So I do diff(tt$visit_date), but have to enforce a discontinuity (NA) everywhere ... | |
doc_14779 | import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PointF;
import android.media.FaceDetect... | |
doc_14780 | Since I am using Xstream I am currently in need of setting the annotation @XStreamAlias("alias") for the field to change how they will be deserialised. For simplicity, I use a type alias:
import com.thoughtworks.xstream.annotations.XStreamAlias
type xStreamAlias = XStreamAlias @field
@XStreamAlias("a")
case class A(@... | |
doc_14781 | I have two numbers. First is "number string" (i represent it in string), i need to split it to any combination of numbers those sum of them give me second number.
For example : 888 24
I need to split it into 8 + 8 + 8
The returned number is count of + elements. In example is answer 2.
Split it into every one digit is e... | |
doc_14782 | $("#signup-form").validate({
rules: {
firstname: 'required',
signup-email: 'required',
signup-password: 'required',
signup-password-v: 'required'
},
messages: {
firstname: 'Your firstname is required!',
signup-email: 'Your email is required!',
signup-p... | |
doc_14783 | I have an Add button in the NavigationBar that pops a modal. The modal has a button that will dismiss it, which works. However, I cannot interact with the Add button in the NavigationBar again until I interact with something else on the screen, such as scrolling the List below.
I have also placed another Add button, ju... | |
doc_14784 | ...
@For Each item In Model.Transports
Dim currentItem = item
@<tr data-toggle="modal" data-target="#myModalTransportDetails">
<td class="col-lg-1">@item.Name</td>
<td class="col-lg-1">@item.Surname</td>
<td class="col-lg-1">@item.Age</td>
...
My Java script which is taking data from my tr and ... | |
doc_14785 | How i can set value of text input if it does not have an attribute 'value' ?
<input type="text" onkeypress="test();" id="id" name="name" class="ttt">
I tried this, but nothing
((HtmlTextInput) portfolios.getHtmlElementById("id")).setText("text");
((HtmlInput) portfolios.getHtmlElementById("id")).setTextConte... | |
doc_14786 | I have tried changing but all it gives me is a blank page with no error. All my other pages are in mysql format and I don't want to use PDO.
require 'connect.php';
session_start();
$username = "";
$password = "";
if(isset($_POST['username'])){
$username = $_POST['username'];
}
if (isset($_POST['password'])) {
... | |
doc_14787 | Here's how it looks now:
<%= form_for(@event) do |f| %>
<div class="field">
<%= f.label :priority %><br />
<%= f.number_field :priority %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
The scafolded view is using some kind of default helper class I ... | |
doc_14788 | mat <- matrix(c(2,11,3,1,2,4,55,65,12,4,6,6,7,9,3,23,16,77,5,5,7),ncol = 3, byrow = TRUE)
[,1] [,2] [,3]
[1,] 2 11 3
[2,] 1 2 4
[3,] 55 65 12
[4,] 4 6 6
[5,] 7 9 3
[6,] 23 16 77
[7,] 5 5 7
I want to add a column with rows index. This index will starts at 1 ... | |
doc_14789 | 1.) How to check if account is actually created and is present in the node, means if we can check the list of all the accounts in Corda.
2.) How to write responder flow for accounts, means My transaction flow is not working properly. Is there anything to change in the responder flow classic code if we now start using t... | |
doc_14790 | I'm quite confused by the css variables. I need to use css variables for my apps. For example,
.A{
var-myVar:red;
background-color:var(var-myVar);
font-color:var(var-myVar);
}
However, I found 3 different css vairable syntaxes, none of which seem to work:
var-myVar //doesn't seem to work
--myVar //doesn't seem ... | |
doc_14791 | Currently, I had added a build step after a deploy step into my deploy stage with a shell script that look like:
# put the git tag
echo 'Put tag build_$BUILD_NUMBER on git'
git tag build_$BUILD_NUMBER
git push --tags
The returned error is:
fatal: could not read Username for 'https://hub.jazz.net': No such device or a... | |
doc_14792 | I have a unique pepper row inside my user table and I don't want to load this pepper and the hashed password if a User is retrieved.
I don't have any needs for it on the remote client and so I want to make sure it is not accidently passed to it.
If i need to regenerate or change a password at the application server I ... | |
doc_14793 | nodeEnter.append("circle")
.attr("r", function(d){return d.radius+"px";});
/* Add text in middle of circle */
nodeEnter.append('text')
.text("this is a very long text");
What I would like is to find a simple way of setting the width of that text element (with the overflow going down, as in a simple div). The ... | |
doc_14794 | user = serializers.HiddenField(default=serializers.CurrentUserDefault())
The docs says:
In order to use this, the 'request' must have been provided as part of
the context dictionary when instantiating the serializer.
I'm not sure how to create the serializer. On the view I create all the serializers with:
serializ... | |
doc_14795 | Here is the original page, index.html:
<a href="modal.html" data-toggle="modal" data-target="#testModal">open modal</a>
<div id="testModal" class="modal fade">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
</div>
</div>
</div>
and here is the page I want to open in the m... | |
doc_14796 | Constructor and SaveChanges
public class DialogBot<T> : ActivityHandler where T : Dialog
{
protected readonly Dialog _dialog;
protected readonly BotState _conversationState;
protected readonly BotState _userState;
protected readonly ILogger _logger;
IStatePropertyAccessor<QnAPrompting.Helpers.Filter... | |
doc_14797 | What I am trying to do is to access some methods I wrote in the MovieClip inside the ScrollPane to get the length of the CheckBoxes, check which ones are selected and the label they have (their label is also defined by the SQL query).
I've tried this
valueINeedToGet = Object(root).scrollPaneInstance.source.functionINee... | |
doc_14798 |
A: You can find this in the Unity Docs:
https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.CreateScene.html
Scene newScene = SceneManager.CreateScene("My New Scene");
Be sure to include SceneManagement in the top of your class.
using UnityEngine.SceneManagement;
| |
doc_14799 | <div id="footer" style="position:fixed;top:100%;margin-top:-115px;left:0%;repeat:repeat-x;background:url(http://EXAMPLE.com/images/bottom-border.png);height:115px;width:100%;">
</div>
A: Here is how you do the footer always at the bottom of page. You can replace footer with <div id="footer">...</div>, but I pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.