id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_40500 | <div class="panel">
dfds
</div>
body {
background: green;
}
.panel {
margin: auto;
width: 300px;
height: 300px;
background: white;
border-radius: 10px;
padding: 10px;
border-right: 6px solid #D7D7D7;
border-bottom: 6px solid #B9B9B9;
box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}
http://codepen.io... | |
doc_40501 | This works fine for creating a new database and its shards etc. But it fails when i try to connect it to an existing DB with a single shard.
It has a class named ShardManagementUtils which provides the following method to retrieve RangeShardMap<T> from a sharded azure database:
/// <summary>
/// Creates a new... | |
doc_40502 | <div id="imperium" class="day nosmoke" style="margin-left: -800px; margin-top: -600px;">
I've tried copying the jspath then look at innerHTML but that just brings other stuff up.
A: I guess this is what you mean. Remove day class and add night class to the element:
document.getElementById('imperium').classList.remo... | |
doc_40503 | I have this simple rendering function:
router.get("/", function(req, res) {
res.render("index", {
route: "one"
});
});
I try to access this variable route in client side js file to no luck so far:
// Unexpected token: <
var route = <%- JSON.stringify(route) %>;
// variable 'route' is undefined
var route = !{r... | |
doc_40504 | var component = Qt.createComponent("PlayerWindow.qml")
if (component.status != component.errorString())
console.log(component.errorString())
var playerWin = component.createObject(rootWindow);
Here rootWindow is my main application window. Now, the PlayerWindow is quite simple as:
Window {
id: playerWindow
... | |
doc_40505 | my-feature.component.scss
@import "~bootstrap/scss/_variables";
p {
background-color: $pink;
}
styles.scss
@import "~bootstrap/scss/bootstrap";
@import "node_modules/ngx-bootstrap/datepicker/bs-datepicker";
angular.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProj... | |
doc_40506 | What does this do?
Why choose this over not deploying as a ZIPPED package?
| |
doc_40507 |
*
*Does MATLAB leverage/benefit from multiple cores when not using the Parallel Computing Toolbox?
*Does MATLAB leverage/benefit from multiple processors when not using the PCT?
*Does MATLAB use MPI when not using the PCT?
*Does MATLAB use MPI when using the PCT?
A:
Does MATLAB leverage/benefit from multiple c... | |
doc_40508 | I am able to get JWplayer to list multiple subtitle options for the viewer to choose, and able to set a default option and this works. However the captions do not appear in the videos.
I first attempted to apply captions in a setup which uses a playlist and listbar.
I have also tried to use captions on a setup which ju... | |
doc_40509 | +----+-------+-------+-------+
| Id | Flag1 | Flag2 | Flag3 |
+----+-------+-------+-------+
| 1 | 0 | 0 | 1 |
| 2 | 0 | 0 | 0 |
| 3 | 1 | 1 | 1 |
| 4 | 1 | 1 | 0 |
+----+-------+-------+-------+
How can I select the rows which has any two or more flags on?
In this e... | |
doc_40510 | I want to try to use it for file conversion. Is that possible? Say, I want to convert yaml into xml. How would I do that?
A simple example of such conversion using augtool would be nice.
A: Augeas can theoretically be used for file conversion, although it is not its primary goal.
This will mean manipulating the Augea... | |
doc_40511 |
<ResponsiveContainer height={50} width={"100%"}>
<BarChart
layout="vertical"
data={[bar]}
margin={{left: 30, right: 50}}
stackOffset="expand"
>
<XAxis hide type="number"/>
<YAxis
type="category"
data... | |
doc_40512 | I see a script which moves file from one location to other.
`find . \ -mtime +0 -exec mv {} target \ ;`
I want to understand does +0 means only for file created before 24 hrs?
Now as these files are moved to target i also want to modify there permission to one appropiate for everyone to read. So i used the command... | |
doc_40513 | I set a <input/ type="text" with a v-model="" and made a computed which works over that array.
The logic is very simple, it has a .filter and a conditional with a return for the match case and the return of the original Array if the input is empty.
<template>
<div class="container">
<form @submit.prevent="add... | |
doc_40514 | For each plant I know the location 1 and 9. None of the locations between them.
Now the user can walk through the factory and save a location for each machine.
Question: How can I achieve that there is a line between the two edges 1 and 9? I would like to do that in Java Vectors.
So the user could pass his current l... | |
doc_40515 | My controller:
def create
@emails = Email.new(params[:email])
respond_to do |format|
if @emails.save
flash[:notice] = 'Email was successfully created.'
format.html { redirect_to admin_emails_path(:mail_type => @emails.mail_type) }
format.xml { render :xml => @emails, :status => :created, :lo... | |
doc_40516 |
COMException: Exception from HRESULT: 0x800A03EC.
How shall i solve this error? How shall i get solution? Tell me the solution of this problem...
Thanks in advance...
My Code is:
{
oxl = new Excel.Application();
oxl.Visible = true;
oxl.DisplayAlerts = false;
wbook = oxl.Work... | |
doc_40517 | On Nougat, this doesn't seem to be possible. I know that the JobScheduler on Nougat can be used to do certain tasks in the background if there is network connectivity, but there doesn't seem to be an option that listen for network connectivity loss.
In other words, I want the ability to hear when my phone has lost all... | |
doc_40518 | <!DOCTYPE html>
<html>
<body>
<table>
<tr>
<td>
data a
</td>
</tr>
<hr/>
<tr>
<td>
data b
</td>
</tr>
</table>
</body>
</html>
but my output for my codes is like this
__________________________________________________________
data a
data b
ex... | |
doc_40519 | mystring = "a=test;b=12345"
I would like to know how to initialize a table in one shot, assign it the value of the string. The string originates from another external application, and if possible I want to avoid having to split it up. Something like this:
mytable = {mystring:gsub(";",",")}
Is it possible to do s... | |
doc_40520 | (
array
(
'belongsTo' => array
(
'Person' => array
(
'className' => 'Person',
'foreignKey' => ... | |
doc_40521 | File 1:
Netlogon,OS,WARNING
#Opsware Agent,OS,WARNING
Server,OS,WARNING
VMware Tools,OS,WARNING
#Background Intelligent Transfer Service,OS,WARNING
#Background Tasks Infrastructure Service,OS,WARNING
#Base Filtering Engine,OS,WARNING
#Cb Defense WSC,OS,WARNING
#CDPUserSvc_214457e,OS,WARNING
File 2:
Netlogon,OS,WARNING... | |
doc_40522 | Function replaceSpecialCharacter(theString As String)
Dim StrTest As String
Dim Result As String
Dim Reg1 As Object
Dim matches
StrTest = theString
Set Reg1 = CreateObject("VBScript.RegExp")
With Reg1
.Global = True
.IgnoreCase = True
.Pattern = "[-[\]{}()%*+?\\/^$|#\s]" ' escape special characters pa... | |
doc_40523 | Can i to do that?
I try, but it doesn't works.
$('#form').append('<select id="myselect" name="myselect">/select>');
$('#myselect').append('<option title="#" value="">GREEN</option>');
Thank you.
A: Try this : wrap your code inside document.ready and append select tag to form. Please make sure that select and op... | |
doc_40524 | It works fine on my Nexus 4 (Android 4.4.4), but it does not work on Samsung Galaxy Tab 2 (Android 4.3.x) (= nothing happens, but also no error in logcat).
Or, to be more clear: on Samsung, it does not work if the html pages are loaded from within the app's asset folder. It does work though if I put the pages on a serv... | |
doc_40525 | table two t2 has a2 and the b2 value that is not static. neither a2 nor b2 are primary keys (I use independent id columns for primary keys).
my goal is to import all a2 values that do not exist in t1. keep in mind table 1 has ~2 million entries currently, and table 2 will generally have 150K-1M entries.
this works:
INS... | |
doc_40526 | static void snake(String u[][]){
for(int i=0; i<u.length; i++){
if(i%2==0){
for(int j=0; j<u[i].length; j++){
String asli = u[i][j];
System.out.print(asli+"");
}
}else
for(int j=u[i].length-1; j>=0; j... | |
doc_40527 | from win32com import client
eaApp = client.GetActiveObject("EA.App")
eaRepo = eaApp.Repository
However, this seems to always returns the COM object of the instance first started.
Let's say we have a script that needs to starts a new instance of EA. It does so by calling os.startfile(eapxFile) with eapxFile being the p... | |
doc_40528 | For example: aaa bbb, ccc should be bbb aaa ccc (no comma!)
<div class="string">aaa bbb, ccc</div>
Any ideas welcome
A: Yes, you can split those. Looks like you'll need both space and comma to be delimiters, so:
var str = "one two, three";
var parts = str.split(/[ ,]+/);
That gives you an array ("one", "two", "three... | |
doc_40529 | Please help.
A: You can access Auth component by $this->Auth from the controller.
$this->Auth->user() will give you the currently authenticated user. The information is taken from the session. If this method returns null, the user is not logged in.
| |
doc_40530 |
A: SELECT id FROM table ORDER BY id DESC LIMIT 1 should work as well
A: IF you've just inserted into a table with auto_increment you can run right after your query.
SELECT last_insert_id();
Otherwise the max(id) FROM table
A: If you mean the latest generated ID from an insert statement with an auto-increment column... | |
doc_40531 | If e.KeyCode = [a-zA-Z0-9] Then
'Blah
End if
I have understood that the Keycode are numbers but as I can do this validation with regex?
A: Try this:
Dim reg_exp As New Regex("[a-zA-Z0-9]")
If reg_exp.IsMatch(e.KeyCode.ToString) Then
'Blah
End If
A: You can use .Net's Char.IsLet... | |
doc_40532 | I wrote a class in the AOT and want to declare a variable that stores the number of days between to given dates. I first used the int primitive type. Then, I wonder if there is a suitable EDT in AOT. With much luck I typed "NumberOfDays" and then the EDT NumberOfDays appeared at the first entry in the list of code auto... | |
doc_40533 | <sdk:DataGrid ItemSource="ItemGroups">
<sdk:DataGrid.Columns>
<sdk:DataGridTemplateColumn>
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Button
Content="Show... | |
doc_40534 | @Component({
selector: 'ops-employee',
pipes: [],
styles: [],
template: `
<ops-addmodal [(open)]="addEmployeeOpen" (check)="updateEmployeeList($event)"></ops-addmodal>
<ops-editmodal [(open)]="editEmployeeOpen" [data]="editId" (check)="editEmployeeList($event)">
</o... | |
doc_40535 | sometimes when I use the value is corrupted. Why is that?
.h
@interface ChatController : NSObject <ASIHTTPRequestDelegate>{
NSTimer *timer;
NSString *_idLastMessageFromServer;
}
@property(nonatomic, retain)NSString *idLastMessageFromServer;
@end
.m
@implementation ChatController
@synthesize idLastMessageFromServer =... | |
doc_40536 | this.submitPostService.getUserName(this.userId).subscribe(user => {
console.log("THIS IS THE USER!");
console.log(user);
this.username = user.posts.name;
console.log(this.username);
});
angular service
getUserName(id: string) {
return this.http.get<{ posts: any }>(
`http://localhost:3000/api/user/$... | |
doc_40537 | <c:when test="${multipleCase=='true'}">
<html:text property="${row.dataElementJavaName}"
maxlength="${row.dataElementSize}"
size="60"
value="${row.dataElementValue}"
onkeyup="javascript:enableSave()"
onkeypress="return letternumber(event... | |
doc_40538 |
A: When you are in math mode, type \text and then space. Then start typing normal text. Or try "ctrl + M" (when you are already inside math mode). For more information, please read Help > Math. Inserting text is discussed there.
| |
doc_40539 | mat=matrix(c(0,0,1,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,1,
0,0,0,0,1,1,1,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,
1,0,1,0,0,0,0,0,1,0,1,0,0,0,1), nrow=9)
From this matrix, I would like a random 3x3 subset. The trick is that I do not want any of the row or column su... | |
doc_40540 | [{% for item1 in articles.results.entities %}
{% for item2 in articles1.results.entities %}
{% if item1.knowledgearticleid != item2.knowledgearticleid %}
{
"Id":"{{item1.knowledgearticleid}}",
"Title":"{{item1.title}}",
"Articlepublicumber":"{{item1.articlepub... | |
doc_40541 |
A: Example:
X = input.float(50, "% drop") * 0.01
open_price = strategy.position_avg_price
is_valid_drop = low < (open_price * (1 - X))
if is_valid_drop
strategy.close_all(comment = "Close ALL")
| |
doc_40542 | #include <iostream>
using namespace std;
class thing1
{
public:
void thingTest()
{
cout << "I AM THING 1\n";
}
};
class thing2: public thing1
{
public:
void thingTest()
{
cout << "I AM THING 2\n";
}
};
void DoStuff( thing1 temp )
{
temp.thingTest();
}
void main()
{
D... | |
doc_40543 | I'm starting with the firstname (i.e. Person fName = "John").
My plan is to convert "John" to a hashcode, convert the hashcode into an Integer, then store it in the map as - (as integer comparisons are faster).
Now here is my problem - To make the iteration faster, I want to have separate static maps, accessed dependi... | |
doc_40544 |
*
*Methods should be defined dynamically by a class variable.
*These dynamic methods should return self so that they can be chained.
For example, I want to be able to do something like this:
color("WARNING").bold().yellow()
The code below gets pretty close:
class color:
colors = {
"fg":{"black":"30","... | |
doc_40545 | int array[ROW][COLUMN]={0};
I get the array with all zeroes but with the following one
int array[ROW][COLUMN]={1};
I don’t get the array with all one value. The default value is still 0.
Why this behavior and how can I initialize with all 1?
EDIT: I have just understood that using memset with value as 1, will set eac... | |
doc_40546 | Here is my code :
When user clicks an element with class editable
$(".editable").live("click",function(){
//alert($(this).text());
//CurrentOBJhtml = $(this).text();
if (typeof CurrentOBJhtml == 'undefined' || CurrentOBJhtml =="" )
{
CurrentOBJhtml = $(this).text();
}
nextHtml = "<input style='border:1px solid r... | |
doc_40547 | I'll be using JAX-WS and would like to use WS-Security with Kerberos Token authentication. The Kerberos authentication is being mandated by the Windows service because it relies on Windows Auth - something I can't change.
The authentication will be for a single service account in the AD domain - an account dedicated t... | |
doc_40548 | I hope you'll understand me, and sorry for my English.
A: From your own example for Mac OS X:
CGContextRef myBitmapContext = MyCreateBitmapContext(800,600);
[rootLayer renderInContext:myBitmapContext];
CGImageRef myImage = CGBitmapContextCreateImage(myBitmapContext);
rootLayer.contents = (id) myImage;
rootLayer.sublay... | |
doc_40549 |
A: Looks like the correct way is to use server interceptors:
ServerBuilder.forPort(port)
.addService(
ServerInterceptors.intercept(
ServerInterceptors.useInputStreamMessages(
new MyMegaCoolService().bindService()
),
new ServerInter... | |
doc_40550 | # embed subject recall in vector space
def run_sts_benchmark(batch):
sts_encode1 = tf.nn.l2_normalize(embed(tf.constant(batch['sent_1'].tolist())), axis=1)
sts_encode2 = tf.nn.l2_normalize(embed(tf.constant(batch['sent_2'].tolist())), axis=1)
cosine_similarities = tf.reduce_sum(tf.multiply(sts_encode1, sts_... | |
doc_40551 | The example xml lists "child" elements in the same level, under the root element, instead of being listed within a collection node.
For sake of simplicity I have removed some topic irrelevant nodes.
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:s... | |
doc_40552 | Goals:
*
*Once clicked the download button, get a .txt sheet with all the values for all the 52 boxes and their data (default, if its red or if its green)
readyfunction download(filename, stateData) {
var element = document.createElement('a');
element.setAttribute('href', 'data:text/pl... | |
doc_40553 | const [gamerTag, setGamerTagState] = useState(props.gamerTag);
But I need to change it to a empty string if gamerTag is null, so I tried this:
if (gamerTag === null) {
gamerTag = "";
}
However now I get a syntax warning that gamerTag is constant.
How can I set gamerTag to an empty string if it's null?
Thanks!
A:... | |
doc_40554 | What I'm trying to achieve now is to fade/out and fade/in the next review + logo. I'm not sure where should I search about it, can someone point me towards the right post or article? thanks
var review = new Array();
review.push("Text1");
review.push("Text2");
review.push("Text3");
var clientlogo = new Array();
clien... | |
doc_40555 | I'm afraid to use this component with a collection of 50 items.
I found this answer CarouselView issue answer but it still not cleary for me since there is nothing on the documentation about it.
A: The answer is yes, CarouselView was added as the side effect of adding CollectionView which uses the underlying controls ... | |
doc_40556 | Possible Duplicate:
Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on
public void CheckUnusedTabs(string strTabToRemove)
{
TabPage tp = TaskBarRef.tabControl1.TabPages[strTabToRemove];
tp.Controls.Remove(this);
TaskBarRef.tabControl1.TabPages.Remove(... | |
doc_40557 | user_group: Can see all the records generated by group_name_information_medium_medical
group_name_info_med: can only see the records generated by it
The acces_rules.xml is the following
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="0">
<record id="info_arch_user_rule" model="ir.rule">
<field name=... | |
doc_40558 | What I'm trying to do is go through all the fields/inputs in the form, and if possible, change their id value. However, even if its not possible to change the ID's of fields I would still love to know how to loop through the form elements and access their properties/values.
Thanks!
A: As elements are objects it's easy... | |
doc_40559 | {
"title": "hello world",
"media": [{"type": "image"}, {"type": "audio"}]
}
The media property is a nested document, and I'm trying to do the following queries:
*
*return all documents matching a specific query, and filter down the media documents in those documents by a separate queries (example: all docum... | |
doc_40560 |
'0' pad with leading zeros rather than spaces;
for numbers, this moves the padding after the sign;
ignored for strings, byte slices and byte arrays
but the flag '0' is not ignored in below code. Is the doc wrong? Or do I misunderstand it?
package main
import "fmt"
func main() {
fmt.Printf("%05s", "abc")
/... | |
doc_40561 | @login_required
def app(request):
form = list_form
form2 = data_form(user=request.user)
user = request.user.pk
user_lists = List.objects.filter(user=user)
#Here I have lists in dict but I have no idea how to call them in template.
list_data = {}
for list in user_lists:
list_data[list... | |
doc_40562 | Is it possible to install the FUSE in Linux server for example Ubuntu 16.04.1 LTS ? If it's possible is there any reference document guideline ?
A: Yes it's possible to run the FUSE on linux without any issue. Only thing is it is required to install JDK and its better to have maven installed in your PC as well.(Note t... | |
doc_40563 | Here is my code
var userss = inward.aggregate([{
$match: {
$and: [
{ "defaultAccountId": { "$gte": parseInt(userParam.defaultAccountId), "$lte": parseInt(userParam.defaultAccountId) } },
],
$or: [{ "createdDate": { "$g... | |
doc_40564 | Unfortunately in opening my web app and trying to build/run it comes up with the error "Unknown Server Tag ". The target framework is 3.5, and this tag works perfectly on both test and live webservers, so the problem is the environment not the code. I have attempted to re-install the ajax control toolkit, as well as ... | |
doc_40565 | Here is my code below.
import React from "react"
import { compose, withProps, lifecycle } from "recompose"
import { withScriptjs, withGoogleMap, GoogleMap, Marker } from "react-google-maps"
import "./config";
const MyMapComponent = compose(
withProps({
googleMapURL: "https://maps.googleapis.com/maps/api/js... | |
doc_40566 | -----> Installing pip
-----> Installing SQLite3
mv: missing destination file operand after ‘/tmp/build_982dd157e013e9edfe38bb428d02a17a/.heroku/python/include/’
Try 'mv --help' for more information.
mv: missing destination file operand after ‘/tmp/build_982dd157e013e9edfe38bb428d02a17a/.heroku/python/lib/’
Try 'mv --he... | |
doc_40567 | from splinter import Browser
browser = Browser()
browser.visit("http://decs.bvs.br/cgi-bin/wxis1660.exe/decsserver/?IsisScript=../cgi-bin/decsserver/decsserver.xis&interface_language=p&previous_page=homepage&previous_task=NULL&task=start")
browser.choose('search_language','p')
browser.fill('search_exp','costas')
eleme... | |
doc_40568 | {
layouts:
{
regions:
{
[
metadata: null,
endDate: null,
displayName: null,
roles: []
],
[
metadata: null,
endDate: null,
displayName: null, ... | |
doc_40569 | A picture showing how the files aren't lining up in columns:
How I want them to be:
HTML/PHP
<div id="projects">
<div class="project-item-container">
<div class="project-item">
<?php foreach ($projects as $projectItem) {?>
<div class="project-item-img">
<img class="absolu... | |
doc_40570 | data = '測試' # These are non-ascii characters
cipher = AES.new(someKey, AES.MODE_ECB)
code = data.rjust(16) # Length must be multiples of 16
print(len(code))
encrypted = cipher.encrypt(code)
Since data contains non-ascii characters, cipher.encrypt() complains that the string is not of length 16:
ValueError: Input st... | |
doc_40571 | http://www.tumblr.com/tagged/food
If you look here, you can see multiple pictures of food with multiple different uploaders. If you scroll down you will begin to see even more pictures with even more uploaders. If you right click in your browser to view the source, and search "username", however, it will only yield 1... | |
doc_40572 | I have a custom.js file included in all my project pages. The app loads in the accounts page. I know it is getting loaded and working across the ajax navigation.
When I include this code in custom.js:
$("#perfil").live('pageshow',function(event){
alert('This page was just enhanced by jQuery Mobile!');
});
I get t... | |
doc_40573 |
A: One of them is an iOS project and the other is an OS X project. iOS and OS X use different UI frameworks, hence why they have a different object library. For example, Round Rect Button is an NSButton, which belongs to the Cocoa framework for OS X, and is unavailable on iOS.
| |
doc_40574 |
A: From my experience, the answer is - it depends.
If you have 2 servers (cloned) and 2 DBs (cloned) and a gateway to somehow maintain exactly the same data without any discrepancies in both the DBs (refer to this https://docs.oracle.com/goldengate/c1230/gg-winux/GGCON/introduction-oracle-goldengate.htm#GGCON-GUID-EF5... | |
doc_40575 | Now, I already know that reverb effects are not present in all android devices but my device(Samsung Galaxy S4 w/ android version 5.0.1) has reverb effects in the default music player.
Implementaion :-
... // Three dots mean other code not relevant to question
1) Music Service Class
This is the service that handles t... | |
doc_40576 | class Product < ApplicationRecord
has_many :store_products
has_many :stores, through: :store_products
end
class StoreProduct < ApplicationRecord
belongs_to :store
belongs_to :product
end
class Store < ApplicationRecord
has_many :store_products
has_many :products, through: :store_products
end
I am trying to... | |
doc_40577 |
An elegant wrapper around Webpack for the 80% use case.
I believe I have a widespread use case, and I want to know if the 80% covers this and how to do it right. It could be any other package, but I have editor.md as an example. They want you to install it with npm i editor.md and use it like the following.
<link rel... | |
doc_40578 | My txt file
CUMBS02778607 DVD/SLS34142072,Z5
CUMBS02778844 SHIP/25/02/14/HR/15,Z5
CUMBS02780058 DVD/SLS34142200,ISSUE 9,Z5
CUMBS02779867 SHIP/27/02/14/CAM/49,Z5
CUMBS02779883 SHIP/27/02/14/CAM/48,Z5
CUMBS02779816 SHIP/27/02/14/CAM/36,Z7
CUMBS02779948 SHIP/27/02/14/CAM/46,Z5
CUMBS02780309 DVD/SLS34142262... | |
doc_40579 | For example:
let a = [1, 2, 3];
let b = ['a', 'b', 'c'];
// but cannot be
let c = ['a', 1];
*
*How to declare the type of this variable?
My idea is
let a : Array<number>|Array<string>;
*How to cast array of only number and only string to array of number?
let a : Array<number>|Array<string>;
// how to cast a to ... | |
doc_40580 | var token = '66a5c472b52d3210b591f717b5b996312f8xxxxxxxxxxxx';
var title = 'test';
var message = 'message';
var options = {
method: 'POST',
url: 'https://api.ionic.io/push/notifications',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json'
},
json : {
"send_to_all": ... | |
doc_40581 | What I'm trying to do is return a 404 error on any request with the extension '.php'. If the uri does not have an extension, then route the request to 'ini.php'. If the uri contains an extension that isn't of '.php', then it should just follow normal procedures in fetching the file.
What I have now:
Rewrite Engine on
D... | |
doc_40582 | // Show Terms Button only if all required elements are filled.
let termsButton = document.getElementById("termsButton");
let allRequired = document.getElementById("contactForm").querySelectorAll("[required]");
const checkForRequiredDone = () =>{
if (allRequired.value != undefined && allRequired.value != "" && allRe... | |
doc_40583 |
.dropdown-content {
position: absolute;
z-index: 1;
list-style: none;
border-radius: 0vh 0vh 1vh 1vh;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
text-align: center;
}
<li class="dropdown">
<a on... | |
doc_40584 | My assignment: To use access database (2003 version of access) to create a doctor's list, in order to search for the doctor by name and/or zip code. I have created the doctor's list "Contacts. mdb" in access (2003), the html page with the form to allow for the search based on name and/or zip code of the doctor and the ... | |
doc_40585 | Thank you.
A: you can use an own listadapter.. http://www.vogella.com/articles/AndroidListView/article.html
A: This is how you can do to customize item of your list:
Layout of your list:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:o... | |
doc_40586 | {allCustomers.map(customer => {
console.log(customer.id);
console.log(typeof(customer.id));
return (
<option
key={customer.id}
>
{customer.name}
</option>
);
})}
The list of customers I have all have unique ids and the id property is of type number. Here... | |
doc_40587 | Module Module1
Sub Main()
Dim year, age, again As Integer
retry:
Console.WriteLine("Enter The year you were born in!")
Console.WriteLine("")
year = Console.ReadLine()
Console.WriteLine("")
If year < 1894 Or year > 2014 Then GoTo Toyoung
age = 2014 - year
Console.WriteLine("You are " & a... | |
doc_40588 |
The problem begins when I am making a loop inside my QtCore.QThread, for some reason the context menu stops working (I cant even see it, nothing happends while right-clicking the tray icon). So the question is - what is the problem any why is the loop hanging out the thread like that?
The code (simply remove the loop ... | |
doc_40589 |
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
int offset;
wstring DBSearchLine, ScanLine;
wifstream ScanFile, DBSearchFile;
wofstream ResultFile;
ScanFile.open("ScanFile.txt", ios_base::binary);
ResultFile.open("ResultFile.txt", ios::out, ios_base::binary);
if (ScanFile... | |
doc_40590 | I used to be able to set options using io.set('transports', ['xhr-polling']) but this has been removed, from what I can work out the new way to define options is like this
{
allowUpgrades: false,
transports: [ 'polling' ],
pingTimeout: 5000,
pingInterval: 2500
};
But... ... | |
doc_40591 | Is it wise to still conduct some type of regression (LASSO, Ridge, Partial least squares), while I am uncertain which would then be the independent variable, or is there some other approach I have missed in my research?
I also read about canonical correlation analysis, but that is clearly between two sets of variables ... | |
doc_40592 | So, I'm focusing on configuring the routes in XML, where we should have a little more flexibility. The idea is that a given application (or service) could be handed a constructed XML route configuration at deploy-time that would specify the details of that service's routing.
The first question I have is how can we indi... | |
doc_40593 | For the following JS function:
function dF(s,n)
{
n=parseInt(n);
var s1=unescape(s.substr(0,n)+s.substr(n+1,s.length-n-1));
var t='';
for(i=0;i<s1.length;i++)
{
t+=String.fromCharCode(s1.charCodeAt(i)-s.substr(n,1));
}
return(unescape(t));
}
i did this in PHP:
function dF( $s, $n ) {
$n1 = intval( $n );
$s1 = ... | |
doc_40594 | But we found a problem with one of our tables: this table in some occasions shows information using a nested table, and in those cases, tableToGrid collapses, because he can't detect that the td's of the inner table doesn't belong to the external table, so he added to the external table. The result? A mess.
So, my ques... | |
doc_40595 | NAME PRICE % CHANGE
-------------------------------------------------
a 67 11
b 23 6
c 456 5.89
d 112 23.98
e 31 17
f ... | |
doc_40596 | I've looked around and was able to progress with the first set of errors, but now am stuck with the error shown below.
Most answers I found all are for Linux and OSX and usually revolve around installing libpq-dev,which I'm not able to find for Windows. Given that I've moved past the initial missing libpq-fe.h error, I... | |
doc_40597 |
but in the next step I have not any views to select.
A: Make sure that you have the Edit-level permission for the view you want to use, and that you have views set up in Google Analytics.
| |
doc_40598 | Example = {1,11,4,7,8,10} Sum = 21 Count=2
This code returns true or false but does not capture the numbers that contribute to the sum. How can I do that?
public static boolean isSum(int[] a,int val,int count,int index){
if(count == 0 && val ==0){
return true;
}
if(index>=a.length)
return fa... | |
doc_40599 | ı use command line tool and c language.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ncurses.h>
imported ncurses.h in to my main and ı added the library.
but when ı trying to build and run Xcode give me this error.
How can ı fix this with commend line tool or other way?
I don't know how to use ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.