id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23537300 |
My app's Facebook login works fine on device. However, on iOS 9 simulator, I'm getting:
-canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"
And login is not working. I've seen facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" but I have FBSDKCoreKit framework. I've also seen F... | |
doc_23537301 | stage ('Create and Deploy to k8s Dev Environment') {
//agent {label 'docker-maven-slave'}
options {
skipDefaultCheckout()
}
steps {
command """
echo "hiiiiiiii"
helm te... | |
doc_23537302 | I’m getting the following error and I don’t know why or how to fix it
Call to undefined method FluidTYPO3\Flux\Form\Container\Sheet::setOption()
I am trying to get things working after disabling fluidpages and upgrading flux 9.4. I think I have done the database updates correctly. I’m using: typo3 8.7, flux 9.4, no fl... | |
doc_23537303 | I found this post, which I adapted for sparse matrix operations. But: It's still very slow on large objects. I am wondering if someone has a better solution that operates directly on the indexed elements of the sparse matrix that would be faster. For instance, A@j indexes (from zero) the labels in A@Dimnames[[2]], w... | |
doc_23537304 | Now the internal variables of the function are shared. So, if I click on multiple buttons (i.e. before previous ajax requests have completed) the variables are over-writing each other....
$('.btn-merge').click(function(){
$this = $( this );
pid = $this.data('pid');
cid = $this.data('cid');
$this.removeC... | |
doc_23537305 | the entire program was as follows:
public class TextAreaSample extends JFrame implements ActionListener {
public static void main(String[] args) {
new TextAreaSample();
}
public void actionPerformed(ActionEvent ae) {
if (ae.getSource() == bt) {
F... | |
doc_23537306 | data_hrs <- rnorm(n=513, m=20, sd=1)
hours <- 528
days <- ceiling(hours/24)
days_hours <- days*24
data_hrs[days_hours] <- NA ## padding with NA to reach full no of days
hours <- length(data_hrs)
hours_count <- seq(1:24)
hours_count <- rep(hours_count,days)
day_count <- NA ## counts the days
for (t in 1:days){
day_... | |
doc_23537307 | one for country then State and cities
My Country table is ok.
But i want to include all states of america to my state table and all major cities of each state in america to my city table.
i want any such database so that i can import my database
i need only major cities.
is there a site i can download or copy any such ... | |
doc_23537308 | A = load 'test.csv' using PigStorage('|');
But I keep getting this error:
[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2999: Unexpected internal error. java.net.URISyntaxException cannot be cast to java.lang.Error
I've looked all over, but I can't find any reason this would happen. The test file I have ab... | |
doc_23537309 |
data=nc.Dataset('oisst-avhrr-v02r01.20100308.nc')
--------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-9-5387b338d47c> in <module>
1 import netCDF4 as nc
----> 2 data=nc.Dataset('oisst-avhrr-v02r01... | |
doc_23537310 | Sheet1 : Consolidated_Sheet
Sheet2 : Incentive_Report_Raw_Data
Sheet3 : Offer_Report_Raw_Data
Sheet4 : SQR_Report_Raw_Data
Step 1: Integrate Data From Sheet3 to Consolidated Sheet - Works
Sub InitialMigration()
Dim sourceColumn As Range, targetColumn As Range
Set sourceColumn = Worksheets("Offer_Report_Raw_D... | |
doc_23537311 | string footer = "My custom footer";
Paragraph footerParagraph = section.Footers.Primary.AddParagraph(footer);
footerParagraph.AddTab();
footerParagraph.AddPageField();
Above will generate "My custom footer 1" for page 1, I need page nmuber to be right at the right most corner of the page. I can add extra spaces or... | |
doc_23537312 | _WebTryThreadLock(bool), 0x78695e90: Multiple locks on web thread not allowed! Please file a bug. Crashing now...
1 0xb1e3698 WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*)
2 0x5dc99de __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
3 0x5dc9920 __CFRunLoopDoObservers
4 0x5dbf22f __CFRu... | |
doc_23537313 | class User {
public name: string;
public works: (() => Promise<void>)[];
constructor(name: string) {
this.name = name;
this.works = [];
}
public attemptsTo(tasks) {
this.works = this.works.append(tasks);
}
public expects(expectations) {
this.works = this.wo... | |
doc_23537314 | <h:form id="keepAliveForm">
<p:poll interval="300" global="false"/>
</h:form>
In my main flow an end-state to redirect to a certain page:
<end-state id="redirect" view="flowRedirect:home" />
A button on another page and a transition in the view-state to the redirect flow:
<p:commandButton value="Test" action="theT... | |
doc_23537315 | id term subj prof hour
20 2016 COM James 4
20 2016 COM Henrey 4
30 2016 HUM Nelly 3
30 2016 HUM John 3
30 2016 HUM Jimmy 3
45 2016 CGS Tim 3
I need to divide hours ... | |
doc_23537316 | preg_match_all('/(\{%IF:(.+?)%\}\r?\n?)(.+?)(\{%ENDIF:\2%\}\r?\n?)/s',$this->tpl_raw,$if_controls,PREG_SET_ORDER);
That looks for
{%IF:NAME%}Do 1{%ENDIF:NAME%}
and I get that match. The problem is, what it's not doing, and I want to is in cases like this
{%IF:NAME%}Do 1{%IF:OTHERNAME%} Do 2{%ENDIF:OTHERNAME%}{%ENDI... | |
doc_23537317 | Here is code I got:
* {
box-sizing: border-box;
}
html,
body {
background-color: darkgrey;
height: 100%;
margin: 0;
}
html {
font-family: sans-serif;
}
body {
display: flex;
align-items: center;
}
.wrapper {
overflow: hidden;
margin: auto;
}
div>div {
margin: 0.5rem;... | |
doc_23537318 | My entities looks as follows
@Entity
@Table(name = "BOOK")
@NamedQuery(name="Book.findAll", query = "SELECT b from Book as b LEFT JOIN b.discountList as d where d.endingDate is null")
public class Book {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID")
private Long bookId;
... | |
doc_23537319 | EDIT
Components used: TQuickRep, TQRBand, and the particular control that will hold the variable size content is TQRExpr
EDIT
The key piece of info not included in the answer is how to assign the expression to a TQRExprMemo since it doesn't have an expression property like TQRExpr. The answer to that is to enclose the ... | |
doc_23537320 | My code uses WIF (Windows Identity Foundation) and works fine operating systems above windows-xp. The only examples that I have seen of this use WIF to request the SAML tokens from a security token service but WIF is not supported on windows-xp as a result of which I am stuck. I tried to do some research but could not ... | |
doc_23537321 | I have already written a code for uploading the file over the server in the UploadServelet.java class under fileupload package and have also done the mapping of the servelets in web.xml file" but still getting the error.
Index.jsp
<div class="container">
<form method="POST" action="upload" enctype="multipart/form... | |
doc_23537322 |
To deploy this application, your deployment target should be running
Windows Universal Runtime version 10.0.16299.0 or higher. You
currently are running version 10.0.14393.2214. Please update your OS,
or change your deployment target to a device with the appropriate
version.
A: The problem is not with your p... | |
doc_23537323 | > "message": "Instance of 'QuantumCircuit' has no 'h' member",
> "message": "Instance of 'QuantumCircuit' has no 'cx' member",
> "message": "Instance of 'QuantumCircuit' has no 'measure' member",
What I do wrong?
This is my code:
from qiskit import *
q = QuantumRegister(2)
c = ClassicalRegister(2)
qc = QuantumCircui... | |
doc_23537324 | SQLServer 2005
A: Make the first column the primary key of the table.
A: Set the column as a primary key. I doesn't have to be an identity column to has a PK.
A: Create it the same way you would any other column: create table sometable (column1 varchar(10), column2 varchar(20)) or whatever.
Do you mean: How can you ... | |
doc_23537325 |
A: If I were you I'd avoid column names with special characters like ? in the table itself. Writing queries can get troublesome.
But you can use column aliases if you want. For example,
SELECT NOW() 'What time is it?',
t.weatherNice 'Is the weather nice?'
FROM table t
A: It's not necessary. The is prefix ... | |
doc_23537326 | Is there something I have to do to get the enclosed aggregates to be returned?
Here's my code:
private void btnGetPerson_Click(object sender, RoutedEventArgs e)
{
var proxy = new TutorWCFServicesClient();
proxy.GetPersonWithPersonKeyOfCompleted += new EventHandler<GetPersonWithPersonKeyOfCompletedEventArgs>(proxy_G... | |
doc_23537327 | Hi all please help me to produce the following output using XSLT 2.0.
I have this:
<UL>
<ITEM>
aaa
<NL>iii
<ITEM1>111</ITEM1>
<ITEM2>222</ITEM2>
</NL>
</ITEM>
<ITEM>
bbb
<NL>vvv
<ITEM1>333</ITEM1>
<ITEM2>444</ITEM2>
</NL>
</ITEM>
</UL>
I need to produce thi... | |
doc_23537328 | import pandas_datareader.data as web
from matplotlib import style
import matplotlib.pyplot as plt
!pip install https://github.com/matplotlib/mpl_finance/archive/master.zip
from mpl_finance import candlestick_ohlc
import matplotlib.dates as mdates
import datetime as dt
style.use('ggplot')
start = dt.datetime(1996,1,1)
... | |
doc_23537329 | My question is,
should we consider finding fixed point of logic programs as proof theory or model theory or is it neither?
A: My guess would be model theory since the fixpoint semantics of a logic program is its model. However, we know that |= coincides with |- for logic programs, so the semantics based on proving (=r... | |
doc_23537330 | I have to print token list on the left and shift or reduce rule on the right.
Like:
2*4+4/2 //iniput
2 shift 2 2
2 reduce I -> F 2
2 reduce F -> T 2
2 reduce F -> T 2
* shift * 2 ... | |
doc_23537331 | For example:
Task table:
+------+-------------+-----------+
| id | name | projectID |
+------+-------------+-----------+
| 1 | steal | 3 |
| 2 | sell | 2 |
| 3 | earn | 1 |
+------+-------------+-----------+
project table:
+------+-------------+-----------+... | |
doc_23537332 |
#titleBox {
margin: 0 auto;
width: 350px;
background-color: #6da662;
height: 100px;
color: #fff;
font-size: 16.5px;
font-weight: bold;
}
span {
line-height: 100px;
}
<div id="titleBox"> <span>I have 100px line height. || </span> I have 0 line height</div>
Not only this I can't change the ... | |
doc_23537333 | {% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
{% get_current_language_bidi as LANGUAGE_BIDI %}
the current language is {{ LANGUAGE_CODE }}
but I'm getting blank where the code should appear. What am I missing? thanks.
A: This is probably one of two problems:
... | |
doc_23537334 | [2/37] Building CXX object lib\CMakeFiles\cxx_shared.dir\__\src\algorithm.cpp.obj
FAILED: lib/CMakeFiles/cxx_shared.dir/__/src/algorithm.cpp.obj
C:\PROGRA~1\LLVM\bin\clang-cl.exe /nologo -TP -DNDEBUG -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -D_ALLOW_MSC_VER_MISMATCH -D_CRTBLD -D_CRT_SECURE_NO_WARNINGS -D_CRT_STDIO_ISO_W... | |
doc_23537335 | I run H2 in cluster mode with 2 nodes.
I have two tables in a H2 database (v1.4.189), a parent and a child. The child contains a foreign key to the ID of a row of parent table.
Usually, I don't get any errors when inserting a row in child table.
But after a while, I'm getting this error when inserting :
Referential in... | |
doc_23537336 | So, I installed WSL and an Umbuntu distribution, hoping that's the right direction to go.
Now, how can I have VS Code (on Windows) utilize the Linux dist to run NPM scripts, without me being required to mirror all NPM development tools to the Linux OS which I already have installed on Windows.
| |
doc_23537337 | I want to use a outbound gateway to send a file, then continue my flow.
The problem is that I have an exception telling me:
IllegalArgumentException: 'remoteDirectoryExpression' is required
I saw that I can use a RemoteFileTemplate where I can set the sftp session factory plus the remote directory information, but th... | |
doc_23537338 | I am trying to draw a table on the Canvas, by looping through a list and adding a right and left column for each item, represented by using the Rect
The function responsible for drawing the table rows is shown below:
fun drawTableRow(canvas: Canvas, question: Document.H) {
val textBounds = Rect()
... | |
doc_23537339 | serialHelper is a class module arround python serial and this code does work nicely
#!/usr/bin/env python
import threading
from time import sleep
import serialHelper
sh = serialHelper.SerialHelper()
def serialGetter():
h = 0
while True:
h = h + 1
s_resp = sh.getResponse()
print ('respo... | |
doc_23537340 | Currently I'm making just for an example for how to use it right.
CREATE OR REPLACE PROCEDURE "STG"."TRUNC_TEST"
AS
BEGIN
execute immediate 'truncate table TESTSP';
END;
That's my example of simple stored procedure.
My job design probably seen like this
Oracle Connector 1=>Transformer=>Oracle Connector 2=>Stored P... | |
doc_23537341 | <span ng-if="checkValidityForDate(fields.secondaryAction[$index],fields.secondaryAction[$index].attributes[0].name,$index,fields.secondaryAction[$index].action.action_name) == true && flagForUniqueActionsDict[$index] == false" style="display:inline-block;" flex>
<input class="hidden" name="filter{{$... | |
doc_23537342 | I do not know if int (a) is necessary.
from sys import exit
class Glowna_klasa(object):
def start(self):
suma = 0
a = int(input("Take a number: "))
print("Now suma have: ", suma)
if int(suma) == 8:
print("END")
exit(1)
if int(a) == 2:
p... | |
doc_23537343 | I have a class which implements IPresenter :
public class SoldierPresenter : IPresenter
{
...
public SolierPresenter(ISoldierView soldierView)
{
}
...
}
When I call :
var presenters = ObjectFactory.GetAllInstances<IPresenter>();
I get zero instances... what am i missing?!
Here is the configuration code for the cont... | |
doc_23537344 | Incidentally, I'm upgrading some ancient (10+ year-old) code to compile on a modern C++ compiler.
/* WordStore.h */
#ifndef WORD_STORE_H
#define WORD_STORE_H
class WordStore
{
public:
WordStore();
};
#endif
// semclass.h
#ifndef SEMCLASS_H
#define SEMCLASS_H
#include <iostream>
using namespace std;
void ReadSemRu... | |
doc_23537345 | B = Button(newWindow[num], text="Change Direction",
command=lambda: clk == change_direction_dummy(CLOCK,))
B.grid(row=4, column=2)
B.after(2000, B.destroy())
| |
doc_23537346 | If you compile to ES3, you have the widest support, but also additional boilerplate for compatibility (size, partially impossible to parse). If you target esnext, you basically have no boilerplate (clean output code!), but very limited support.
The problem is that the TypeScript compiler does not transpile JS code or a... | |
doc_23537347 | void packedBlend16(uint8_t mask, uint16_t* dst, uint16_t const* a, uint16_t const* b) {
for (int i = 0; b < 8; ++i) {
int const control = mask & (1 << i);
dst[i] = control ? a[i] : *b++;
}
}
The tricky part for me is spacing out the elements of b correctly in the vector.
So far, my approach is:
*
*256 e... | |
doc_23537348 | Controller:
public function update()
{
$string = 'xml/gzip';
$xml = simplexml_load_file("compress.zlib://$string");
foreach ($xml->merchant as $merchant) {
$merchant_name = $merchant['name'];
$merchant_id = $merchant['id'];
$data1 = array(
'merchant_id' => $... | |
doc_23537349 | So far I have:
ISession session = ....
IQuery query = session.CreateQuery("exec LogData @Time=:time @Data=:data");
query.SetDateTime("time", time);
query.SetString("data", data);
query.?????;
What should the method ????? be? Or am doing something more fundamentally wrong?
A: ExecuteUpdate on SQL Query should help you... | |
doc_23537350 | var regexOne = /^(regex).*$/gm;
var regexTwo = /^(regex).*$/gm;
var regexThree = /^(regex).*$/gm;
var regexFour = /^(regex).*$/gm;
var searchQuery = [regexOne, regexTwo, regexThree, regexFour];
for(query in searchQuery){
console.dir(query.toString());
}
The above code prints:
'0'
'1'
'2'
'3'
How can i get this w... | |
doc_23537351 | Now I noticed that bindValue() has an optional paramType parameter that can be set to QSql::Out and QSql::InOut.
Is it correct that the QSql::Out and QSql::InOut arguments are useful when CALLing procedures and that they have no use for lets say a SELECT statement? Are there other use cases than CALL?
A: It turned out... | |
doc_23537352 | Here's what I've got in my view:
<label>Group: <input ng-model="group" ui-select2="select2GroupConfig"></label>
Here's what I have in my model:
$scope.select2GroupConfig = {
ajax: {
url: 'theURL',
data: function (term, page)
{
return { q: term };
},
results: func... | |
doc_23537353 | navigator.device.capture.captureVideo(videoCaptureSuccess, videoCaptureError, {limit:1});
function videoCaptureSuccess(fileURL) {
window.resolveLocalFileSystemURI(fileURL, function(fileEntry) {
// doing something
});
}
resolveLocalFileSystemURI not working as the path is something like '/private/var/mobile/...... | |
doc_23537354 | class Object {
...
vector<Object*> objlist;
...
};
Now, Objects will be added to list in both of these ways:
Object obj;
obj.objlist.push_back(new Object);
and
Object name;
Object* anon = &name;
obj.objlist.push_back(anon);
If a make a destructor that is simply
~Object {
for (int i = 0; i < objlist.s... | |
doc_23537355 | Laravel Framework 8.77.1
PHP 7.4.3
The database table is
What I am trying is the Laravel Query
public function search_friend_custom(Request $request) {
$search = $request->input('search');
$search = 'chase ';
// ** $Search variable has chase string for searching.**
$friends = DB::table('users')
... | |
doc_23537356 | Possible Duplicate:
Can't run a ruby hello world application in Aptana
I've just installed the latest version of Aptana.
I've then tried to create a project, residing in C:\Users\User\My Documents\Aptana Studio 3 Workspace\abc that only contains a single main.rb file with the following contents:
puts "hello world"
W... | |
doc_23537357 | signal(SIGABRT, SignalHandler);
A: Nope; there can only be one signal handler per signal.
Note also the trying to do just about anything in a signal handler is impossible. You can't make any system calls, can't really allocate memory, and can't use Objective-C.
As well, trying to catch SIGABRT is futile. By the ti... | |
doc_23537358 | port: 9191
--
cloud:
gateway:
routes:
- id : USER-SERVICE
uri : lb://USER-SERVICE
predicates :
- Path=/users/**
- id: DEPARTMENT-SERVICE
uri: lb://DEPARTMENT-SERVICE
predicates:
- Path=/departments/**
--
spring:
application:
name: API-GATEWAY
eureka:
client:
register-with-eureka: true
fetch-registry: true
service-url:
... | |
doc_23537359 | Can somebody provide a step by step guide on how to get FireBug working on IE9.
Thank you.
A: Check out the IE developer toolbar for use with IE9: http://www.microsoft.com/en-us/download/details.aspx?id=18359, or firebug lite: http://getfirebug.com/firebuglite.
A: Even better, if you are trying to debug a jsp or htm... | |
doc_23537360 | For the current record, we have the option of using a date literal such as '12/31/9999' or specify it as NULL. The dimension tables also have an additional 'current_flag' attribute in addition to 'start_date' and 'end_date'.
It is probably a minor design decision but just wanted to see if there are any advantages of us... | |
doc_23537361 | Please let me know how we can set the RowHeight of the list item dynamically.
var StatusList = new ListView
{
HorizontalOptions = LayoutOptions.FillAndExpand,
VerticalOptions = LayoutOptions.FillAndExpand,
RowHeight = Constants.CategoryRowHeight + 60,
BackgroundCo... | |
doc_23537362 | I want to change the panel content in the expanded row and reply button is pressed and also keep the row in the dataTable expanded.
If I can resolve this issue it will be nice. I also used partiallySubmit property to update only some components with ajax, not all.
I provide the code here:
<p:dataTable id="topicDat... | |
doc_23537363 | Unfortunately I have a number of PDFs that ghostscript cannot render accurately so I have been experimenting with sips.
I can get faithfully rendered jpegs out of sips but only at the normal resolution.
However, if I ask sips to zoom in as I do with ghostscript, the fonts looks very pixelated, almost as if rasteriz... | |
doc_23537364 | Currently I am trying to achieve the above by running a Lambda that writes to the table when the above events occur. I'm having trouble finding tag-related triggers for my use case.
Here are some potential solutions that I've researched:
*
*S3 PUT trigger, for detecting tag creation: However, it seems like this trig... | |
doc_23537365 | <?php
global $Sys;
//echo $Sys->Auth->chkAuth();
if(isset($_POST['update_slider']))
{
unset($_POST['update_slider']);
$post = $_POST;
unset($_POST);
foreach($post as $name => $value)
{
$value = (is_numeric($value)) ? $value : intval($value);
$result = $Sys->db->query("UPDATE dj_p... | |
doc_23537366 | The error i get is below and has apparently something to do with the fact that i have limited access to the clearDB cloud service. In short, the script asks to see the content of proc - which holds all the procedures that I might have stored on the remote DB. The thing is that I do not use procedure and I wish to have ... | |
doc_23537367 |
A: RECORD_ACTION and RECORD_IS_ROOT are system variable in TIBCO MDM.
User does not have control on these variables.
So, will suggest to use user define attribute for any Rulebase operations.
| |
doc_23537368 | Please tell me how to you will fix it ?
Visit https://codepen.io/benfrain/pen/wJgZYP
What I add class in html for content add
<div class="pn-ProductNav_Wrapper">
<nav id="pnProductNav" class="pn-ProductNav">
<div id="pnProductNavContents" class="pn-ProductNav_Contents">
<a href="#" class="pn-ProductNav_Lin... | |
doc_23537369 | I was import "package:http/http.dart' as http".
But, Result is "The built-in library 'dart: io' is not available on Dartium" in Datium console.
So "dart build" and run the "Uncaught Unsupported operation: Platform._version" error comes in chrome console.
Also, dart: html and dart: io's "HttpRequest" was using the reque... | |
doc_23537370 | array([[137, 138, 139, ..., 126, 126, 125],
[139, 139, 139, ..., 126, 126, 126],
[140, 140, 140, ..., 127, 126, 126],
...,
[132, 135, 137, ..., 136, 135, 133],
[133, 134, 136, ..., 136, 134, 133],
[133, 134, 134, ..., 136, 134, 133]], dtype=uint8)
My goal is to manipulate the ... | |
doc_23537371 | ipython notebook --profile=nbserver
2014-07-18 11:14:05.473 [NotebookApp] Using existing profile dir: u'/home/local/AD/jack/.ipython/profile_nbserver'
2014-07-18 11:14:05.482 [NotebookApp] Using MathJax from CDN: https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js
2014-07-18 11:14:05.497 [NotebookApp] Serving... | |
doc_23537372 | fetch('http://localhost:8080/api/login', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
username: this.state.username_login,
password: this.state.password_login
... | |
doc_23537373 | Here are the details:
*
*It is an ASP.Net WCF REST service deployed to IIS 7.5
*Requests to all functions but 1 at the endpoint work as intended.
*The request causing the redirect is a POST with a file attached to the packet.
*The client connecting to the endpoint is putting in a different URL in the header than... | |
doc_23537374 | var temp=true
if(temp)
window.open('test.aspx');
My problem is window.open() in new tab should not subject to pop-up blockers.
I have tried window.open('viewReport.aspx', '_newtab' ); and window.open('viewReport.aspx', '_blank' );, but its always subject to pop-up blocker.
Please provide any solution.
Thanks.
A:... | |
doc_23537375 |
public abstract class ClassValue
extends Object
Lazily associate a computed value with (potentially) every type. For example, if a dynamic language needs to construct a message dispatch table for each class encountered at a message send call site, it can use a ClassValue to cache information needed to perform the me... | |
doc_23537376 | Microsoft provides an example of this in their article COM Interop Part 1: Client Tutorial:
// Create an instance of a COM coclass:
FilgraphManager graphManager = new FilgraphManager();
// See if it supports the IMediaControl COM interface.
// Note that this will throw a System.InvalidCastException if
// the cast fa... | |
doc_23537377 | Ext.define('ParentController', {
extend: 'Ext.app.ViewController',
alias: 'controller.parent',
sayHelloFromChild: function() {
this.sayHello(); // Uncaught TypeError: this.sayHello() is not a function
}
});
Ext.define('ChildController', {
extend: 'ParentController',
alias: 'controller.chi... | |
doc_23537378 | My certificate setup is like this:
Test Root CA -> Test Sub CA -> Test Server
-> Test Client
So both server and client cert are signed by the Sub CA.
I tried to setup my client and server keystore:
Client-Keystore:
*
*Client Cert & Key (PKCS12)
Client-Truststore:
*
*Sub CA Cert
*Roo... | |
doc_23537379 | Any help much appreciated! :)
Sub FilterSaveCases()
With ActiveSheet.PageSetup
.LeftHeader = "&B& &20 Doff Stock : " & Format(Now, " ddmmyyyy")
On Error Resume Next
Columns("H:H").AutoFilter.ShowAllData
Columns("H:H").AutoFilter
ActiveSheet.Range("H:H").AutoFilter Field:=1, Criteria1:=">1"
Colu... | |
doc_23537380 | The user should only be able to edit the hidden part of the database that is theirs.
I want to use an HTTP request trigger (as it seems the most practical), but I need to be able to have the client somehow prove through either a parameter or some other method that they are a certain user.
Is this possible, if so what ... | |
doc_23537381 | var i;
i++;
$.ajax({
url:"http://localhost/myport.php",
type: GET,
success: function(response){ ...},
...
...
Here is how I make the php call in the myport.php file
<?php
$ch=curl_init();
$curl_setopt($ch, CURLOPT_URL, "http://localhost:7555/test?index=" //Here I need to set a value (the variable i) ... | |
doc_23537382 | But, something is not clear to me. I am using Prisma with and GraphQL-Yoga with Prisma bindings.
I do not know how to pass params from my graphQL server to sub properties. Don't know if this is clear, but i will show it with code, thats hopefully easier :)
These are my types
type User {
id: ID! @unique
name: Strin... | |
doc_23537383 | URLSession.shared.dataTask(with: url) { data, _, error in
if let error = error {
print("error.code \((error as! URLError).code)")
//prints - error.code Code(rawValue: -1020)
if (error as! URLError).code == .notConnectedToInternet {
print("no internet")... | |
doc_23537384 | <div id="price"></div>
and:
document.getElementById("price").textContent = "GMGo is $5.00";
but it didn't show the text "GMGo is $5.00"
A: ie8 does not support textContent, but there is a way to fake it:
http://eligrey.com/blog/post/textcontent-in-ie8
if (Object.defineProperty && Object.getOwnPropertyDescriptor &&
... | |
doc_23537385 | There are campaigns. A phone number is associated with each campaign. Users can text to a number after which they will be subscribed.
I'm building "Create a New Campaign" page.
*
*My current strategy is to create a separate table for each campaign (campaign_1,campaign_2,...,campaign_n) and store the subscriber data ... | |
doc_23537386 |
A: You do not have the OpenSSL extension installed in your PHP instance, so the https:// wrapper is not available.
From the manual:
Note: HTTPS is only supported when the openssl extension is enabled.
And:
To use PHP's OpenSSL support you must also compile PHP --with-openssl[=DIR] .
You will need to recompile PHP ... | |
doc_23537387 | it is locked and cant access documents directory.How can i lock the application from accessing
documents directory via organizer.
A: I suppose you can access documents directory of applications that are signed with provisioning profile installed on your computer. Imo it is a handy feature for developer purposes. Howe... | |
doc_23537388 | If I use any theme they look fine but if I remove the android:theme="@style/AppTheme" tag from AndroidManifest.xml Togglebuttons add an unwanted icon.
Sample image here:
I made a sample project with just a togglebutton with following xml layout:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android... | |
doc_23537389 | But that file has some img sources which are not present so image is not getting loaded.
I want to display a particular message like "Please login in order to view this image" instead of unloaded image if it is not loaded while if other images are loaded they should be shown as it is.
It will be helpful if someone can ... | |
doc_23537390 | func.h:
#ifndef FUNC_H_
#define FUNC_H_
#include "func2.h"
#include "OrderedList.h"
class func{
func2* pointer;
};
#endif /* FUNC_H_ */
and func2.h:
#ifndef FUNC2_H_
#define FUNC2_H_
#include "func.h"
class func2{
func* joe;
};
#endif /* FUNC2_H_ */
I have a project containing this and an empty main.cpp... | |
doc_23537391 | The project is for the Windows and Linux platform.
Folder Structure
root_project
|─── CMakeLists.txt
|─── Project 1
| |─── build
| | |─── Debug
| | └─── Release
| |─── source
| | |─── CMakeLists.txt
| | └─── include
| |─── resource
| └─── h... | |
doc_23537392 | I made a function in my CustomUser to get the ID:
public class MyUserDetail implements UserDetails {
/* default functions */
public Integer getFullname(){
return user.getFullName();
}
public Integer getId(){
return user.getId();
}
}
This way I could get the ID in HTML:
<span>[[${#request... | |
doc_23537393 | df.groupby[['x','y']].apply(lambda x: (np.max(x['z'])-np.min(x['z']))).sort_values(ascending=False)
And I would like to be able to present it across multiple lines but still as a one liner (without saving results to a temporary object, or defining the lambda as a function)
an example of how I would like it to look:
df... | |
doc_23537394 | /public_html/dev/fuel/core/classes/error.php on line 177
A: This error is coming due to zlib compression being enabled in the server/site. You can get rid of this error using the below line above ob_end_clean() on the causing file. Which in your case is error.php
Code should be look like this after the modification
... | |
doc_23537395 | ...
import {
Container, Header, Content, Card, Input,
CardItem, Text, Right, Icon, Footer, FooterTab,
Left, Body, Title, Button, Item }
from 'native-base';
import DatePicker from 'react-native-datepicker';
...
<CardItem cardBody>
<Left>
<FontAwesome name="money" />
<Text>Rent Amount</Text>
... | |
doc_23537396 | Can anybody help me?
A: I already solve it. In case it helps anybody this is what I did:
*
*Check the EC2 instance, configure it's security group to access directly and check any endpoint that should be working.
*If everything is ok with the code, you should see the endpoint working.
*In the Beanstalk section, in... | |
doc_23537397 | But sometimes the interaction is more of a request/response behaviour for which promises seem more ideal. I am wondering if there is a way to unify these methods of communication.
For example, I could have a component that has a encrypted message and needs it decrypted. I want a loose coupling between the component tha... | |
doc_23537398 | public class ActivityChatView extends ActivityBase implements
OnLoadMoreListener {
private LoadMoreListView chatList;
private Intent intent;
private String expertName, chatId;
private int offset = 0;
ArrayList<History> chatHistoryList;
private AdapterChatView mAdapter;
private ProgressBar progressBar;
private Text... | |
doc_23537399 | try {
Class c = Class.forName("android.telecom.Call");
Method m = c.getMethod("disconnect");
m.setAccessible(true);
Object o = m.invoke(c, new Object[] {});
} catch (Exception e) {
Log.e("Exception of Reflection", e.getLocalizedMessage());
}
A: *
*You need to instant... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.