id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23511300 | [Display(ResourceType = typeof(Resources.Validations), Name = "SiteName")]
[Required(ErrorMessageResourceType = typeof(Resources.Validations), ErrorMessageResourceName = "Required")]
public string siteName { get; set; }
which the 1st annotation Display will change the name of my input, I'll deal with that one in Angul... | |
doc_23511301 | The errors I get are?
c:\opencv2.0\include\opencv\cxoperations.hpp(1137): error: no operator "=" matches these operands
operand types are: const cv::Range = cv::Range
c:\opencv2.0\include\opencv\cxoperations.hpp(2469): error: more than one instance of overloaded function "std::abs" matches the argument list... | |
doc_23511302 |
A: I believe This is very classic case of Data been saved as Cache in your local System. But when you deploy the Report, there is actual Data available on application.
What you need to do is delete this FileName.rdl.data file and try your report again in Developer, it should get update data from application
| |
doc_23511303 | [
{
"name": "InstanceA",
"tags": [
{
"key": "environment",
"value": "production"
},
{
"key": "group",
"value": "group1"
}
]
},
{
"name": "InstanceB",
"tags": [
{
"key": "group",
"value": "group2"
},
{
... | |
doc_23511304 | I will get the current state of the light (HIGH(1) or LOW(0)) from the arduino when the button is pressed, then write to the arduino (HIGH(1) or LOW(0)) depending on the current state. I have a 5 second delay between each loop of the arduino program, for reasons related to the sensor output; however, I think I'm going ... | |
doc_23511305 | const updateTitle = async () => {
//api data
const data = await fetch(`http://localhost:8081/graphql`, {
method: 'POST',
body: JSON.stringify({
query: `
mutation {
updateMenu(menuInput: {_id: ${elementId},title: ${inputValue}}){
title
... | |
doc_23511306 | dir="...Google\\ Drive"
I would like to then list all the files and directories in that path with os.listdir i.e.
os.listdir(dir)
But I get this error (because I really only want one escape):
OSError: [Errno 2] No such file or directory: '....Google\\ Drive/'
I have tried using
os.listdir(r'....Google\ Drive')
os.... | |
doc_23511307 | As I cannot manipulate the history links, if HTML5 isnt supported I wish to add #photoid=12345 to the link (example).
Now how can i check in PHP if there is any in #photoid ? I cant do normally
if(isset($_GET["photoid"])))
so what should i do here to detect where anything is in #photoid?
A: You can't. The fragment ... | |
doc_23511308 | I'm handeling the change event inside my App.js and passing it down to RadioButtons.jsx as a prop
Inside App.js:
constructor(){
super();
this.state = {
selectedOption: "medium_term"
}
}
handleOptionChange = changeEvent => {
this.setState({
selecte... | |
doc_23511309 | <html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
function ChartA() {
var data1 = google.visualization.arrayToDataTable([
['Year', 'Der... | |
doc_23511310 | I select products you want to send.
$product = Product::where('erp_status', '=', 1)
->limit(10)
->offset($incrementer->cron_value)
->get();
I send the data to the API:
$r = $client->request('POST', 'https://api.mercadolibre.com/items?access_token='.$token->erp_access_token, [
... | |
doc_23511311 | {"ratings": [{
"TERM": "movie1",
"Rating": "3.5",
"source": "15786"
},
{
"TERM": "movie2",
"Rating": "3.5",
"source": "15786"
},
{
"TERM": "Movie1",
"Rating": "3.0",
"source": "15781"
}
]}
Now I want to create a new json file out of this and logic to filter i... | |
doc_23511312 | Which method execution will take less time?
My understanding of staticmethods revolves around object creation related stuff. You know, If the class obj is not needed to call static method. Or util methods can be static methods. Or static methods are global and hard to unit test.In this case I guess that execution of st... | |
doc_23511313 | http://localhost/static/css/style.css
return 404?
Here is part of my nginx.conf
location ~ /static/(?<doctype>[js|css]+) {
# root /usr/src/app/public/;
if ($doctype = "css") {
set $contnt_type "text/css";
}
if ($doctype = "js") {
set $contnt_type "text/javascript";
}
expires 30d;
add_header X_... | |
doc_23511314 | The theme I use is called "Twentyfifteen".
I created a childtheme long time ago and the gallery menu worked so far.
But a few days ago I made changes in my YoastSEO Plugin, but naturally I forgot to make a saving before.
Now I tried to revert all changes (as far as I remembered) but it didn't help.
I also removed th... | |
doc_23511315 | Essentially, I have the problem that I'm calculating the cumulative odds of guessing the outcomes of 5+ games correctly.
The way I have built my program thus far is that the matchups and their respective odds are entered into the system, at which point the code assembles them into a list containing all match-ups, the ... | |
doc_23511316 | what is the proper way to do this?
Is this a proper one?: 1- a form+template | 2- filter the queryset by the inputs | 3- return the queryset
if this a right approach how should I get the inputs in the code for filtering? should I use get and post?
| |
doc_23511317 | ||
doc_23511318 | <comment id="e096f3920ecbd8378f2b77b9608588434" type="start"></comment>
<span style="color:hsl(0,0%,0%);">
<span style="color:hsl(0,0%,0%);">
Microsoft
</span>
</span>
<comment id="e096f3... | |
doc_23511319 | <ul id="ul_list">
<li class="t">xxxx</li>
<li class="t">xxxx</li>
.....
</ul>
var lis=document.getElementById("ul_list").children();
for(var i=0;i<lis.length;i++){
lis[i].onclick=function(){
console.info(this.innerHTML);
}
}
It works.
But in some open source code, I find that people prefer to bind the e... | |
doc_23511320 | t=[[1,2],[3,4],[5,6]
and I declare empty array
earr=np.array([])
so I would like to have an array like this
earr=array([1,2],
[3,4],
[5,6])
so I used this line to try to concatenate the list to the empty array
for i in range(len(t)):
earr = numpy.append(earr,[t[i]])
but the output of this ... | |
doc_23511321 | I have request that response with this object and I need to display it, but I don't how to deal with because the ( 61, 70, 81 and so on)
here is my code which is not working
{ events.events.map(event =>(
<div key={event.ID}>
<p>{event.name} </p>
</div>))
}
A: You are getting it as an object. So you can'... | |
doc_23511322 | I have achieved the animation via CSS and ontouchstart attribute with hover. However, the backface of the card or element is never shown. But when I created the following JSFiddle: https://jsfiddle.net/pueg0uxm/
This is the effect I'm trying complete but this code isn't working within my project for some reason.
The on... | |
doc_23511323 |
"Uncaught TypeError: Object f771b328ab06 has no method 'addLocation'"
I'm really not sure what's causing this. The 'f771b328ab06' is a user ID in the error. I can add a new user and prevent users from being duplicated, but when I try to add their location to the list, I get this error.
Does anybody see what's going... | |
doc_23511324 | {
m_host = CreateHostBuilder().Build();
}
public static IHostBuilder CreateHostBuilder(string[] args = null)
{
return Host.CreateDefaultBuilder(args)
.AddManager()
.AddStores()
.AddViewModels()
.AddViews();
}
These serv... | |
doc_23511325 | public void AddCombo(int i, int j, string name, ArrayList array, int index)
{
FontFamily fontFamily = new FontFamily("Berlin Sans FB Demi");
ComboBox combo = new ComboBox { Name = name, FontFamily = fontFamily, FontSize = 24, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = Vert... | |
doc_23511326 | The install keeps failing and saying that my sip and pyqt modules ahave mismatched API versions.
I've done some searching and most things seem to indicate that I should remove sip as well as pyqt, then install sip, and build pyqt against that.
I've tried this approach several times using brew uninstall sip and brew uni... | |
doc_23511327 | The read operation is intentionally blocking, and if I don't receive any data for a predefined period, I want to cancel the operation. Else, each time I receive data, I want the timed-out observable to generate an item, thus resetting the timeout.
My doubts are in the form of comments below:
void Run()
{
IObservabl... | |
doc_23511328 | On the window I have a text box where a user can enter another name for addition to the observableCollection.
Each entry has to be unique.
At the moment I use this
Dim query As IEnumerable(Of clsWidget)
query = WidgetSource.Where(Function(widget) widget.name = txtNewName.Text)
If query.Count > 0 Then
Debug... | |
doc_23511329 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
session_start();
if(!isset($_SESSION['name']))
{
die("To access this page, you need to <a href='index.php'>LOGIN</a>");
}
else
{
include('../conect.php');
... | |
doc_23511330 |
A: GitHub scrubs all user-supplied JavaScript from content that it renders. This means JavaSript-based browser plotting libraries cannot function at all in pages rendered directly by GitHub.
However, you can point https://nbviewer.jupyter.org/ at a GitHub repo, and any statically rendered notebooks in the repo will ... | |
doc_23511331 | private static void saveMultiple(Socket socket) {
try {
BufferedInputStream bis = new BufferedInputStream(socket.getInputStream());
DataInputStream dis = new DataInputStream(bis);
int filesCount = dis.readInt();
File[] files = new File[filesCount];
for (int i = 0; i < filesCo... | |
doc_23511332 | My current code is not working correctly. The user is getting a own entry in the channel permissions but has not a single permission. For example he cant even talk.
newState.guild.channels.create(channelName, {
type:"GUILD_VOICE",
parent: parentId,
position: 1,
pe... | |
doc_23511333 | I followed this guide on the Tizen Docs.
I fixed some syntax errors in the guide's code, but it still didn't work. I don't get any errors, but the results don't show up.
Any help would be appreciated. Thanks.
Here is my code:
var initializeVoiceControlClient = () => {
return tizen.voicecontrol.getVoiceControlClient()... | |
doc_23511334 | When i am trying to do this:
class HomeController {
// @ngInject
constructor($scope) {
$scope.country = {};
$scope.countries = [
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'America... | |
doc_23511335 | Here is a clear example of the problem:
library(ggplot2)
a=ChickWeight
str(a)
xx=data.frame(level=levels(a$Chick),letter=1:50)
# a graph with the fill option alone
x11();ggplot(a, aes(x=Chick, y=weight,fill=Diet)) + geom_boxplot(notch=F) +
stat_summary(fun.y="mean", geom="point", shape=23, size=3, fill="white") +
xla... | |
doc_23511336 | LiveDemo
#include <vector>
#include <memory_resource>
#include <array>
#include <cstdio>
struct pmr_aware_container
{
using allocator_type = std::pmr::polymorphic_allocator<std::byte>;
/* ctors */
// default
pmr_aware_container() : pmr_aware_container{allocator_type{}} {} // delegate to aa constructo... | |
doc_23511337 | function myFunc(param1, param2){
return (req, res) => {
here query
}}
works when hitting the endpoint with or without args i send, but dosnt work when i call the function from somewhere else
A: When you call myFunc you get returned a new function. You need to invoke that funcion, something like
myFunc('value... | |
doc_23511338 | I did a Request account deletion but someone should tell Facebook that the fact was fulfilled through this form.
How can I auto fill out this form and submit it or send a delete account request to the Facebook API after my activity has not been confirmed in an external service?
| |
doc_23511339 | The function app has only one timer function that triggers once a day.
It was running on an S1 but I downgraded it to the free tier (F1).
After changing the plan, the timer function does not trigger automatically anymore.
It only triggers when I log in to the portal and "wake the function up".
Is this a limitation of t... | |
doc_23511340 | ROUND((ActivityCount / ParentValue) / 100,16) * 100
But the problem is it returns NULL for some columns and I wanted to replace NULL with 0. I can't seem to find the answers.
A: Expression:
ISNULL(ParentValue) || (ParentValue == 0) ? 0 : ROUND(ISNULL(ActivityCount) ? 0 : ActivityCount / ParentValue / 100,16) * 100
... | |
doc_23511341 | Here is the text (a single string):
"Evaluation Note: Suspected abuse by own mother. Date 3/13/2019 ID: #N/A Contact: Not Specified Name: Cecilia Valore Address: 189 West Moncler Drive Home Phone: 353 273 400 Additional Information: Please tell me when the mother arrives, we will have a meeting with her next Monday, 3... | |
doc_23511342 |
*
*I manually installed a plugin called Widget Context
*I began seeing the error shown below
*I tried deleting the plugin and got an error (the error was just a giant text wall seemingly of gibberish, not an actual error code).
*I tried deleting the plugin again, and it worked.
However now I am still getting th... | |
doc_23511343 | I have a service called 'cache' which purpose is to cache file-resources from various systems. By that the direct application-contact is independent from the externals services stability.
The bad side is, users have to wait longer until they get their files, because first the server has to finish the caching. Only afte... | |
doc_23511344 | I would like to return only particular fields from documents (basically I need only ids).
In case of GetItemQueryIterator I can specify query like "SELECT c._id FROM c WHERE ..."
Is it possible to select only specified fields in case of GetItemLinqQueryable ?
GetItemLinqQueryable has generic parameter, but I assume tha... | |
doc_23511345 | import React from 'react';
import { Document, Page } from 'react-pdf';
export default function Resume() {
return (
<Document file="../../resume.pdf">
<Page />
</Document>
)
}
I'm getting this error on the webpage when the component renders:
Failed to load PDF file.
My path should ... | |
doc_23511346 | Storage : SQL Server
Framework: .Net FW 4.8
Single Database for all tenants. But every tenant has his own set of tables with separate schema. I have a master with tenants and their information
Ex: TenantID, Schema, Email etc. A job has to be run for every Tenant, while executing the job I need to know the TenantId, so... | |
doc_23511347 |
A: Try:
context.Orders.Where(o => o.OrderDetails.Any(d => d.Description == "PickMe" || d.Description == "TakeMe"));
| |
doc_23511348 | ImageViewAsync imageViewAsync = view.FindViewById<ImageViewAsync>(Resource.Id.Image);
ImageService.LoadUrl(item.ImagePoster).Into(imageViewAsync);
The problem is that when scrolling down the Android ListView it takes too long to download each image and so I'd like to preload some or all the images in the list to make ... | |
doc_23511349 | An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.
wsgi.py
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "allistic_server.... | |
doc_23511350 | A1={}
for x in range(1,101):
R = np.random.random((1,1))
A1["{0}".format(x)] = np.dot(R,R.transpose())/2
A2={}
for x in range(1,101):
R = np.random.random((2,2))
A2["{0}".format(x)] = np.dot(R,R.transpose())/2
A3={}
for x in range(1,101):
R = np.random.random((3,3))
A3["{0}".format(x)] = np.do... | |
doc_23511351 | import pandas as pd
df = pd.DataFrame(
[['A', '34', 3], ['A', '55', 5], ['A', '100', 7], ['A', '0', 1],['A', '55', 5],
['B', '90', 3], ['B', '0', 1], ['B', '1', 3], ['B', '21', 1],['B', '0', 1],
['C', '9', 7], ['C', '100', 4], ['C', '50', 1], ['C', '100', 6],['C', '22', 4]],
columns=['Model', 'Distanc... | |
doc_23511352 |
Following is the code how I access the database. on onUpdate function.
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
exports.notifyUser = functions.database.ref('/requests/{requestId}/status')
.onUpdate(event => {
con... | |
doc_23511353 | When I try to export this app into .apk file, I get bunch of Lint warnings that
my strings.xml and arrays.xml are not translated
Lint gives me two suggestions:
*
*If the string should not be translated, you can add the attribute translatable="false" on the element, or you can define all your non-translatable stri... | |
doc_23511354 | But I am only able to get user location and drag marker. I want the marker to move to the position entered on the map on button click vice versa when a user drags the marker the address should be in the textbox. Also my infowindow does not show.
As I am working with Asp.net my html page is different and my map shows in... | |
doc_23511355 |
A: No, at the moment you can only add buttons to the right of or inside the address bar. These may open a popup that shows HTML however.
| |
doc_23511356 | <?php
include('Mail.php');
$recipients = array( 'someone@example.com' ); # Can be one or more emails
$headers = array (
'From' => 'someone@example.com',
'To' => join(', ', $recipients),
'Subject' => 'Testing email from project web',
);
$body = "This was sent via php from ... | |
doc_23511357 | Now is it possible to set different urls for different management-features? For instance, I want to redirect the user to another url after verifying his acc than for resetting his password. Because when I change the url for email-verification it automatically changes the url for resetting the password.
A: What you can... | |
doc_23511358 | ||
doc_23511359 | <script src="//site.com/js.js"></script>
<img src="//site.com/pic.jpg" />
.div{background:url(//site.com/assets/bg.gif)}
Does this slow down the page - latency - does the browser or mobile device need to check this ever time?
A: This is fine, and works excellently.... Except in two particular circumstances:
Firstly, ... | |
doc_23511360 | #define FOREACH_KEYWORD(V) \
V(And, and) \
V(Else, else) \
V(False, false) ... | |
doc_23511361 |
*
*Invalid account name
*Invalid account number
*Date closed is before open date
*End date is before active date
*Account Name must be unique
*Account number must be unique
My requirement is to group (or) classify similar error messages to groups.
One way which I attempted so far is use Doc2Vec to generate v... | |
doc_23511362 | public enum MethodNames{
//CHECHBOX with the value checkboxsimilaity (of type method)
public final Method name;
}
A: You may try to use functional interfaces to associate some functionality with enum values:
public enum ElementType {
CHECKBOX(() -> {
System.out.println("Select checkbox here or ca... | |
doc_23511363 | [prog.1]
Name:NotepadPlusPlus
Path:C:\Program Files (x86)\Notepad++\notepad++.exe
The script is:
import subprocess
progList = open("progs.conf", "r")
numLines = sum(1 for line in progList)
repeatTimes = numLines / 3
counter = 0
while counter <= repeatTimes:
print("Opening " + str(progList.readlines()[counter + ... | |
doc_23511364 | SELECT user_expertise.user_id, user_expertise.expertise_id
FROM user_expertise
INNER JOIN user_locations ON user_expertise.user_id = user_locations.user_id
WHERE user_expertise.expertise_id!=$exid AND user_locations.location_id = $_SESSION["user"]["location"]["location_id"]
ORDER BY user_expertise.user_id
$exid is the... | |
doc_23511365 |
I try this:
excel = win32com.client.Dispatch("Excel.Application")
wb = excel.ActiveWorkbook
sheet = wb.ActiveSheet
i = sheet.Cells.SpecialCells(xlCellTypeLastCell).Row
while i >= 1:
if self.Rows(i).Interior.ColorIndex == 0:
self.Rows(i).Delete()
i += -1
But not sure what is right, plus an error:
N... | |
doc_23511366 | taq:`time xasc ([] time:10:00:00+(100?1000);bid:30+(100?20)%30;ask:30.8+(100?20)%30;stock:100?`STOCK1`STOCK2;exhcnage:100?`NYSE`NASDAQ)
How can I get the best/bid offer from all exchanges as of a time (in one minute buckets) for every stock?
My initial thought is to build a table that has a row for every minute/exchan... | |
doc_23511367 | I have a table in SWT and simply I want to show some table items but the table only shows one item and the others with vertical scroll. I want to show everything, without scrolling. I tried with the option SWT_NO_SCROLL but is not working. I have a method that creates the table and other that populates it creating a ne... | |
doc_23511368 | The below is in the head tag.
function pickimg(){
var imagenumber = 101 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1;
images = new Array
images[1] = "images/1.jpg"
images[2] = "images/2.gif"
images[3] = "images/3.jpg"
images[4] = "images/4.jpg"
images[5] = "images/5.... | |
doc_23511369 | My URL is: example.com/pages/home.php
New URL: example.com/home.php
If I do example.com/index.php I want the rule to ignore it. Or if I do example.com/admin/login.php
Here is my sample:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+pages/([^\s]+) [NC]
RewriteRule ^ %1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteR... | |
doc_23511370 |
The current Dart SDK version is 2.10.3.
Because my_app requires SDK version >=2.12.0 <3.0.0, version solving failed.
pub get failed (1; Because my_app requires SDK version >=2.12.0 <3.0.0, version solving failed.)
exit code 1
flutter doctor -v gives me the following result
[✓] Flutter (Channel beta, 2.2.0, on Mac OS ... | |
doc_23511371 | I am using the following technologies:
- Arduino-Uno
- Adafruit Motor Shield
- Nema 17 Bipolar Stepper Motor
- BLE Shield 2.1 from RedBearLab
My iOS app includes a slider, such that when the slider moves, a stepper motors speed will be controlled. I am using a Write function in xcode to send the speed data to my arduin... | |
doc_23511372 | Using this one:
#\[img\]([^\/\\]*\.(jpg|jpeg|gif|png|bmp))\[/img\]#si
I wanna replace the text with this one:
<img src="$1"/>
The error is:
Warning: preg_replace(): Compilation failed: missing terminating ] for character class
I have tested it on regex101.com, it works well in preg_match mode.
P.S. Is the first one s... | |
doc_23511373 | I also have a VPS running Ubuntu 11.04 32bit with Apache, MySQL, PHP5, ProFTPd and Webmin.
Sally owns example.com and has her home at:
/home/sally
Joe owns example.net and has his home at:
/home/joe
Dave owns example.org and has his home at:
/home/dave
My Questions are:
1. How can I get them from not accessing... | |
doc_23511374 | └─> source ~/.zshrc
check_token:35: bad math expression: operator expected at `23:17:10'
It appears to want to perform an operation on the following line:
ISO_expiry_date="${expiry_year}/${expiry_month}/${expiry_day}${expiry_time}"
The full code snippet it below:
check_token() {
command="auth"
token -s
if [ $?... | |
doc_23511375 | public partial class MainScreen : Form
{
public MainScreen()
{
InitializeComponent();
//Initializing the browser in class Browser
Browser brow = new Browser();
//Hiding the user control that contains the browser UI
this.browserPanel1.Visible = false;
//Adding th... | |
doc_23511376 | Can someone please tell me what I'm doing wrong? cheers :)
var creditCheck = function(income)
if(income >= 100)
{
return "You earn a lot of money! You qualify for a credit card.";
}
else
{
return "Alas you do not qualify for a credit card. Capitalism is cruel like that.";
}
creditCheck(75);
creditCheck(125);
creditC... | |
doc_23511377 | vi ~/.bashrc
and then placing my alias:
alias school='ssh -Y username@linux.student.cs.uwaterloo.ca'
followed by exiting the file using: wq
however when i close my terminal and open my terminal, i get a "command can't be found." error message.
if i type source ~/.bash_aliases, it will work, the alias will work, but... | |
doc_23511378 | Apple Mach-OP Linker Error Linker command failed with exit code 1 (use -v to see invocation)
duplicate symbol _OBJC_METACLASS_$_SchoolRecords in:
/Users/Yourself/Library/Developer/Xcode/DerivedData/.../YourProject.build/Debug-iphoneos/YourProject.build/Objects-normal/arm64/SchoolRecords.o
/Users/Yourself/Library/Deve... | |
doc_23511379 | What I do wrong:
iptables -A INPUT -p tcp —dport 80 ! -s 192.168.0.36 -j DROP
Bad argument —dport =(
A: You may try like this:-
iptables -A INPUT -p tcp --dport 80 -s 192.168.0.36 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP
| |
doc_23511380 | My data looks like this:
user in out location overlap Time overlap_new
0 ron 12/21/2021 10:11 12/21/2016 17:50 home 0 4:19:03 'complete'
1 ron 12/21/2016 13:26 12/21/2016 13:52 office 2 0:25:28 'complete'
2 april 12/21/2016 8:12 12/21/2016... | |
doc_23511381 | But the issue is I have it as multi-select box where user can select more than one filters.
Multiselect stores selected items in an array. How can I pass it to table datasource?
applyFilter() {
console.log(this.selection);
this.dataSource.filter = this.selection.trim().toLowerCase()
}
How can I pass array of ... | |
doc_23511382 | I have access to the Infragistics Ultimate collection for my current project so I've get everything to hand. I've been having real issues looking into getting PDFs created. I have some pretty complex XamDataGrids and XamDataCharts to get rendered out to PDF/Excel.
Excel appears to be very well catered for and I've al... | |
doc_23511383 | Example
NewYork: John, Bod, ...
London: Jim, Bill...
for this requirement I used
vector<std::string> city[256];
A new requirement came to create a new "class Person" that will hold more data per item
class person {
string name;
string surname;
string email;
int age;
};
I am addressing this issue in order to fin... | |
doc_23511384 | public static void main(String[] args) {
String fn = "C:\\Users\\Angel\\Desktop\\myproject\\Preprocessing/";
File ff = new File(fn);
ff.mkdir();
int flage;
String dir = "C:\\Users\\Angel\\Desktop\\myproject \\ConvertingToText"; //read
String s = "";
File folder = new File(dir);
Str... | |
doc_23511385 | https://i.stack.imgur.com/CSahM.jpg
Can anybody help me with this. I also tried
HWID = System.Security.Principal.WindowsIdentity.GetCurrent().User.Value;
But getting hwid like S-1-5-21-3242323702-742451283-1005058250-1001
Thanks for help.
| |
doc_23511386 | I am trying to build an Android tablet app to display this webpage (https://www.megaseatingplan.com/app/edit-seating-app.php) in a webview. The size of the content on the page will vary by user. I would like all of the content to appear in the webview without any scrolling.
So far, I've used myWebView.getSettings().set... | |
doc_23511387 | But when I am running on the same app on Android, it fails to load, after certain tries, it crashes the MS-Teams application.
A: Thanks for reporting this. We are able to repro this at our end and we are tracking it here: https://domoreexp.visualstudio.com/MSTeams/_workitems/edit/1472217
Please follow this issue for u... | |
doc_23511388 | I don't want or need the use of emoticons in the event.notes. I just happened to be testing and was kind of shocked when it let me save the event. (The emoticons even show up in the Calendar itself)
So I think my problem can be solved one of 2 way, neither of which I've been able to figure out.
1) Can I disable or hide... | |
doc_23511389 | Something like this
A 45
B 54
C 5
D 4
E 96
F 0
G 12
H 154
I 3
Is there a way to read this file into separate data.frames (one with A1, A2, A3 in the first column; one with B1, B2, B3, B4 in the first column; and one with C1, C2 in the first column)?
EDIT: I cannot tell by column 1 or colum... | |
doc_23511390 | http://jsfiddle.net/gkefk/22/
I want to add the functionality of deleting a particular copy of the image from the canvas when the user double clicks on that particular image.For this I'm triggering a jQuery event on double click.
$("#image").dblclick(function(){
layer.remove();
});
Even though I'm double clicking on a... | |
doc_23511391 | java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp2.DelegatingPreparedStatement cannot be cast to java.sql.ResultSet
here is my method that sends a query for specific parking space ID:
public List<Book> getSpecBook(int id) throws Exception {
List<Book> books = new ArrayList<>();
//int idInt = Intege... | |
doc_23511392 | This code to be specific: (from the style element to the end of the form) https://gist.github.com/13ab0efd07c2c8cdb3e1
When clicking submit while not filling out any or all fields, I get a form validation check and then a message will popup with the fields that I have not filled out.
However, when I paste the code into... | |
doc_23511393 | class Rational {
private:
int numerator;
int denominator;
void saveAsIrreducible();
gcd(int x, inty);
public:
Rational(int numerator, int denominator=1);
Rational operator*(Rational &r);
friend ostream& operator<<(ostream &output, Rational &r);
}
And implementation:
Rational::Rational(int ... | |
doc_23511394 | if (isset($this->request->post['eid'])) {
$eid = $this->request->post['eid'];
} else {
$eid = '0';
}
How exaclty is the value of the field eid passed to the php file that just opened and how can I use this mechanism to pass values to other files? And secondary..what is different when get is us... | |
doc_23511395 | I would have used regexp_replace at least if it is read into the function.
for ex:
select '{
"phrase": "foo",
"phrase_1": "'bar'"
}' :: json
syntax error at or near "'"
}'"
LINE 3: "phrase_1": "'bar'"
The output of this is an error. so my actual problem is this json is directly read into my function.
cr... | |
doc_23511396 | After looking around, I think that this is something along the lines of what I need:
NSString *string = [NSString stringWithFormat:@"document.getElementsByTagName('INPUT')[1].value = %@", textView.text];
[webView stringByEvaluatingJavaScriptFromString:string];
But, this wasn't working. Am I missing something or is th... | |
doc_23511397 | Here's the code:
@POST()
@Path(value= "/download")
@Produces( {"image/jpeg", "image/png", "image/bmp", "image/gif", "image/tiff"} )
@Consumes( {MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML} )
public Response downloadImage(ChatDownloadFileRequest input) {
ResponseBuilder response = null;
... | |
doc_23511398 | Should I buy a separate battery pack to power the servo or is there another way?
this is the circuit I'm using
and this is the code:
import time
import board
import pulseio
from adafruit_motor import servo
pwm = pulseio.PWMOut(board.PWM3, duty_cycle=2 ** 15, frequency=50)
my_servo = servo.Servo(pwm)
while True:
for an... | |
doc_23511399 | I need to match only first two digits of year so that I will replace that with empty and get dd mmm yy format.
Example 15 Mar 2019: need to match first two digits of year i.e 20,
if date is 20 Mar 2019 I need only to match the first two digit of year it should not match the date it should only match 20 in year field.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.