id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_21200 |
*
*Subscribed my Facebook Page to receive messaging_handovers.
*Set the Dialogflow chatbot app as the Primary Receiver.
*Set the Page Inbox as Secondary Receiver.
...And I keep on getting various errors. For example, I try this request in Graph API explorer:
POST to https://graph.facebook.com/v5.0/me/pass_thread... | |
doc_21201 | First try SDK and Tools - 2.4.164 after install VS 2015, then uninstall and try just with SDK 2.3.311 with same result.
Then I try permissions and Fabric counters scheduled task search, all with same result in every case:
Error when run cluster setup
All those cases create two fabricdeployer-numbers.trace files without... | |
doc_21202 | jq16 = jQuery.noConflict(true);
jq16(document).ready(function(){
jq16("td.categorySidebar table tr").each(function() {
//IE fix - get all tr and rebuild to end of table
jq16(this).appendTo("td.categorySidebar table tbody");
//get all level1 td
if(jq16(this).children().hasClass('categ... | |
doc_21203 | and as you can see I've got my toolbar with little cute buttons
I'm trying to navigate to sections of my page by clicking on those buttons
(clicking on about me should scroll down to the start of the section About Me)
and I'm having a hard time figuring this out.
I'll post below the toolbar and about me components, as ... | |
doc_21204 | USER ENTITY
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Table( name = "users",
uniqueConstraints = {
@UniqueConstraint(columnNames = "username"),
@UniqueConstraint(columnNames = "email")
})
public class User {
@Id
@GeneratedValue(strategy = Gen... | |
doc_21205 | Now the issue is that in all my MySQL tables, I am using DATETIME() types to store date/time and if i compare the dates using php's date function and the data inserted using MySQL's NOW() function , there is a major difference .
For instance:
INSERt INTO sales_session (userid,start_time)
VALUES ('".$_SESSION[... | |
doc_21206 |
A: This is what my typical representation of a weighted graph in c++ looks like:
vector<vector<pair<int, int> > > adj_list;
I use a std::pair to store edges first element being the destination node of the edge and the second being its weight. A better approach depending on the case may be to use a custom structure fo... | |
doc_21207 | I have a polygon on my map that, on rollover, gains a stroke by way of another polygon being added to the map. This is kind of glitchy(the stroked polygon shows up if you move your mouse on to the polygon and don't move it, but if you move the mouse at all within the polygon, the stroked polygon flashes on and off. so ... | |
doc_21208 | def do_POST(self):
# I can get the file binary data from here
data = self.rfile.read(int(self.headers['Content-Length']))
I am sending requests through curl command
curl -X POST http://127.0.0.1:8881 --data-binary "@index.jpeg"
How do I get the incoming filename and type here.
| |
doc_21209 | I have removed : from requestPathInvalidCharacters, but now I have another problem. It seems there are several third-party modules in the outside application that get PhysicalPath or do MapPath on all requests, which seems to have problem with colons:
[NotSupportedException: The given path's format is not supported.]
... | |
doc_21210 | My actual solution to obtain the US format starting from the EU looks like:
...
# read_csv and merge, clean .. different CSV files
# result = merge (some_DataFrame_EU_format, ...)
...
result.to_csv(path, sep';')
result = read_csv(path, sep';', converters={'column_name': lambda x: float(x.replace ('.','').replace('... | |
doc_21211 | <ul>
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
<li>Item4</li>
<li>Item5</li>
</ul>
Now I want to find 'Item4' and replace it with 'newItem4'.
I've been able to find 'Item4' but can't figure out how to replace it with new text. Here's the code inside my function so far:
var array = ['Item1', 'Item2', 'Item... | |
doc_21212 | is this a bug?
print(rand())
A: Mohamed Diaa,
You can make use of library functions like arc4random() or arc4random_uniform() for generating random numbers.
let random = Int(arc4random_uniform(3))
To get random value from 0 to 3
you might have to import Darwin to use it.
| |
doc_21213 | What's wrong?
$db->beginTransaction();
try{
$model->insertSome($data);
$model->insertAll($data2); //this line cannot be run and the whole transaction should be rolled back.
$db->commit();
} catch (Exception $e) {
$db->rollB... | |
doc_21214 | I use OpenEjb 4.5.0 and MySQL 5.5.xx with InnoDB engine.
I have a very simple stateless bean, with an injected EntityManagerFactory
@PersistenceUnit
private EntityManagerFactory factory
I'm doing a transaction as follows:
EntityManager em = factory.createEntityManager();
EntityTransaction tx = em.getTransaction();
try... | |
doc_21215 |
A: Create one Component in your application to load this webpage. In that Component place below code.
<iframe src="placeyourdestinationpath"} id="iframe-style"> </iframe>
You can achieve your target by this.
| |
doc_21216 | public class Agent implements Runnable {
private int id;
private Reservation reservation;
public Agent() {
}
public Agent(Reservation reservation) {
this.reservation = reservation;
}
@Override
public void run() {
try {
reservation.reserveSeat();
} catch (InterruptedException e) {
e.prin... | |
doc_21217 | I am working on ASP.NET Core MVC, in which I have successfully added Telerik UI ASP.Net MVC(Kendo).
I can use now the wizard and widgets in _layout, But The problem is here, I am using the Area to separate my projects user!
Now when I try even to use simple widgets like Calendar, it is not showing anything!
I also read... | |
doc_21218 | What are the alternatives?
A: You can sort
FIELD-SYMBOL <product_list> TYPE STANDARD TABLE.
by a single column with
CONSTANTS category TYPE char30 VALUE 'CATEGORY'.
SORT <product_list> BY (category).
and by multiple columns with
DATA(category_and_price) = VALUE abap_sortorder_tab( ( name = 'CATEGORY' )
... | |
doc_21219 | CODE A
int a;
int b = 1;
for (a = 1; a < b + 4; b++, a = b * 2)
printf("%i\n", a);
I expected it to print out 4, 5. but it's 3, 9. I understand that's correct -- but why?
CODE B.
int a = 5;
int b = 0;
while (a > 3)
{
b += a;
--a;
}
printf("%i, %i\n", a, b);
Admittedly I struggled figuring out the math. It prints o... | |
doc_21220 | I have the following type representing a matcher that reprsents a constraint on a type T:
trait Matcher[-T] extends (T => Boolean)
and a matches function that checks whether that constraint holds on a given instance:
def matches[A](x: A, m: Matcher[A]) = m(x)
With this I would like to be able to write checks like:
ma... | |
doc_21221 | i have tried to install by cloning the apex from github and tried to install packages using pip
i have tried to install apex by cloning from git hub using following command:
git clone https://github.com/NVIDIA/apex.git
and cd apex to goto apex directory and tried to install package using following pip command:
pip inst... | |
doc_21222 | controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout);
While I am pretty sure what requestType, buffer, length, and timeout are, I don't clearly understand request, value, and index. What do these arguments do and what would I pass to send the my commands?
For exam... | |
doc_21223 | Example:
MyClass::SomeFunction(Vector<Object^>^ myList) {
// Warning: The following line doesn't work!!
Vector<SpecificType^>^ myTypedList = static_cast<Vector<SpecificType^>^>(myList);
// Here, I go on to interact with the templated vector.
...
}
The compiler doesn't allow me to use static_cast. safe... | |
doc_21224 | <?xml version="1.0"?>
<entries>
<entry accente="B" diacritice="B">
<sense class="0" value="B">
<definition>
<RegDef>Hello <i>world.</i> Today is Saturday.</RegDef>
</definition>
</sense>
</entry>
</entries>
the output should be : "Hello world. Today is Saturday.
What is the best metho... | |
doc_21225 | I've seen many examples using XML, but none with just setting properties for the field programmatically?
fields.Add(new **FieldCreationInformation** {
InternalName = "Test",
etc..
});
A: That's doable, in the following example is introduced a FieldCreationInformation class:
[XmlRoot("Field")]
public class Fie... | |
doc_21226 | Below is the code of html file
<!DOCTYPE html>
<html>
<head>
<title>Demo d3</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="file://d:AUS.jsonp"></script>
</head>
<body>
<script>
var canvass=d3.select("body").append("svg")
.attr("width",900)
... | |
doc_21227 | The culture info in my region requires the date format to be dd/MM/yyyy.
If I use dd/MM/yyyy then a date with a single digit for the day won't bind e.g. 1 August 2014.
However, if I use d/MM/yyyy then a date with two digits for the day won't bind e.g. 31 August 2014.
This appears to be a bug in Kendo UI. Does anybody ... | |
doc_21228 | XStream xstream=new XStream();
xstream.processAnnotations(
new Class[]{SomeResponseBean.class,SomeSectionResponseBean.class});
xstream.toXML(objectForConversion);
Do we need to instantiate XStream instance for every conversion or we can have it a single instance and reuse ?
Our application has huge volume requests .
... | |
doc_21229 | When I run the Marketplace Test Kit included in the WP7 SDK, I get a ton of warnings about usage of an unsupported API.
Now, the DLL file (API) in question is where my controllers, models, utility classes and other resources live (anything not directly connected to the UI).
The methods used by my background agent incl... | |
doc_21230 | id|ordernumber|mainnumber|category| other fields`
1 | Q123 |Q123 |Home | **
1 | Q123.1 |Q123 |Home | **
1 | Q123.2 |Q123 |Home | **
1 | Q124 |Q123 |Music | **
1 | Q124.1 |Q123 |Music | **
1 | Q124.2 |Q123 |Music | **
1 | Q124.3 |Q123 |Music |... | |
doc_21231 | byte[] bytfile = Objects.GetFile(Convert.ToInt32(txtslno.Text.Trim()));
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment;filename="+filename);
Response.AddHeader("Content-Length... | |
doc_21232 |
* {
box-sizing: border-box;
margin: 0px;
padding: 0px;
}
div {
display: inline-block;
}
#cont {
background-color: grey;
}
#cont>div {
margin: 5px;
height: 50px;
width: 50px;
background-color: green;
}
<div id="cont">
<div>
</div>
</div>
Why is there extra space at the bottom of the green squ... | |
doc_21233 | I know that I could use an owner-draw list, but, unless I don't get the examples in MSDN, it looks like I have to take responsibility for all the painting and rendering of items in the other three columns. All I need is for the control to ask me what the text for the index for each item before it draws it.
Is this poss... | |
doc_21234 | $products = DB::table('products')
->where('title', 'like', '%'.$search.'%')
->get();
Video to better understand where the problem is - https://youtu.be/44g47p9JAWs
A: Once this is done, you may access the intermediate table data using the customized name.
use App/Product
$products = Product::with('tags', '... | |
doc_21235 | public TryAsync<bool> TryRelay(
MontageUploadConfig montageData,
File sourceFile,
CancellationToken cancellationToken
) => new(async () =>
{
byte[] fileContent = await _httpClient.GetByteArrayAsync(sourceFile.Url, cancellationToken);
return await _attachmentController.TryUploadAttachment(montageData... | |
doc_21236 |
And here's what I'm trying to do:
*
*Adaptive responsive header, so it look nicely on 400-1920px viewport widths.
*To be able to reorder all header components in any order.
*When viewport width is bigger than 640px I want logo be on the left side, phone and basket modules to be on the right side, as on the image ... | |
doc_21237 | My application has objects/models relating with each other in the entire application.
I want to add a cool new feature change tracking / event logging to this application, kinda like facebook notifications.
Basically, I know I need to build an audit log of events taking place in the application, but what is a high-... | |
doc_21238 | I have a build system that's generating an exe for my project. I wrote a script to download the exe and svn update to the revision the exe was built on. But it rolls back people's work if they run the script right after submitting.
A:
How can I update to a specific revision without making any of my files go back in t... | |
doc_21239 | For example, a database maintains the structured relationship concerns( NLP, this sentence).
Our distant supervision system would take as input the sentence: "This is a sentence about NLP."
Based on this sentence it would recognize the entities, since as a pre-processing step the sentence would have been passed through... | |
doc_21240 | echo($_POST['username']);
doesn't return anything. Can anyone tell me what I am doing wrong here & instruct me to correct this without changing the php files? following is the code which I used to send HTTP POST requests
axios.post('http://localhost/test/login.php', {
username: 'test',
password: 'user@test... | |
doc_21241 | {
Scanner in= new Scanner(System.in);
String time= in.nextLine();
String arr[]=time.split(":");
// System.out.println(arr[0]);
String PM="P";
if(!(arr[2].charAt(2)).compareTo(PM)) //I get an error here
{
arr[0]+=12;
System.out.print(arr[0]+":"+arr[1]+":"+arr[2]);
}
... | |
doc_21242 | com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2423
at com.ibm.mq.MQQueueManager.sequentialConstruct(MQQueueManager.java:904)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:865)
at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:83)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.ja... | |
doc_21243 | I've tried clearing the browser cache, invalidating the Pycharm cache (File>invalidate caches). I have searched throughout the entire program for a visit_form.html file or code, but none can be found (I found one in an old file path and deleted the file with no change).
The error is as follows, and the first Url is in... | |
doc_21244 | price age_id type_id code_id
8.9 5 3 8
... ... ... ...
So age_id, type_id and code_id are the foreign keys and point to the value of the entries. They are stored in separate tables:
age_id age
... ...
5 49
... ...
and
type_id type
... ...
3 ... | |
doc_21245 | Find part of my base code here...
public class base {
public static WebDriver driver;
public Properties prop;
public WebDriver initializeDriver() throws IOException
{
prop = new Properties();
//FileInputStream System.getProperty("user.dir")
FileInputStream file = new File... | |
doc_21246 | This is what I made so far:
typedef struct book
{
char *author;
char *title;
char *bookcode;
} Book;
Book *getBook(FILE *pointer)
{
Book *p;
int c;
while ((c = fgetc(pointer)) != EOF)
{
//create book
putchar (c);
}
}
return p;
}
example of input file
chris evans
hell... | |
doc_21247 | The basic idea is that once a random square is seeded (top left, say) as 1 or 0, then the probability of the adjacent square staying the same as the previous, or switching - is given by the probability of alternation.
The paper describes the generation process as going from left to right and top to bottom. I am not cl... | |
doc_21248 | beq $t4 ,$0 ,__less3
add $s2,$t3,$0 # s2=t3
add $s3,$t2,$0 # s3=t2
j __next1
__less3:
add $s2,$t2,$0 # s2=t2
add $s3,$t3,$0 # s3=t3
__next1:
slt $t4, $t1, $t0 # t4=(t1<t0)
beq $t4 ,$0 ,__les1sk
The problem is that when the simulation gets to line 4 and need to do the jump, it does line 7... | |
doc_21249 | No I want to implement NSUndoManager to undo the last operation which occurred on any UIView. How to do that?
I'm pretty new to NSUndoManager. My problem is same is this, but I don;t understand the answer to that question.
Please help. Thanks.
A: You don't need multiple undo managers. The undoManager property of your ... | |
doc_21250 | I have installed the following libraries:
apt-get install g++ freeglut3-dev glew1.5-dev libmagick++-dev libassimp-dev libglfw-dev
And there appeared to be no errors there. I have the following code:
#include <GL/freeglut.h>
static void RenderSceneCB()
{
glClear(GL_COLOR_BUFFER_BIT);
glutSwapBuffers();
}
stati... | |
doc_21251 | Background:
I'm running a java.jar wrapped as an exe using exe4j.
A: msvcr71.dll is the Microsoft Visual C++ Common Runtime for Visual Studio 2003. Applications developed with VS2003 will usually install this.
A: i tried this fix to resolve MSVCR71.dll missing error in Windows 7 X64:
http://backspacetab.com/2011/05... | |
doc_21252 | How do I solve this problem with some lines of a shell script?
Test,20031231,000107,0.74843,0.74813
Test,20031231,000107,0.74838,0.74808
Test,20031231,000108,0.74841,0.74815
Test,20031231,000108,0.74835,0.74809
Test,20031231,000110,0.74842,0.74818
Test,20040101,000100,0.73342,0.744318
A: quick and dirty but witho... | |
doc_21253 | I use this trick to have multiple <ol> elements with the same counter. I also want to have the correct margins for multiline text. For this, it is suggested to use ::marker like the example below (Using ::before makes the numbers part of the paragraph as opposed to being in the margins). This works well in Firefox, but... | |
doc_21254 | (vert.x-eventloop-thread-0) Exception while executing runnable io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed@8e09d21: java.lang.IllegalStateException: You have attempted to perform a blocking operation on a IO thread. This is not allowed, as blocking the IO thread will cause major ... | |
doc_21255 | Example query :
{
'collectionName' : 'Orders',
'findQuery' : {
"_id" : UUID("4925b1a6-5cd6-6d19-9f2a-7a0083a7bb9a")
}
}
Is there something wrong in my query in your opinion ?
Thanks for your help
A: I found how to use a UUID in a mongo query.
You should first convert your UUID in base64, to do so I used 2 ... | |
doc_21256 | Hi guys, i have trouble with oracle syntax and inner join in update i tried something like this but it doesn't work
"missing SET keyword"
UPDATE table1 AS t1
INNER JOIN table2 AS t2 ON t1.id_description = t2.id_description
SET field = '0.0.0.1.5.'
WHERE t2.code='XXXX' AND t2.status IN ('VALUE1','VALUE2');
thx a lo... | |
doc_21257 | The project is on population: In 2014 China’s population was about 1.37 billion and growing at the rate of .51% per year. In 2014 India’s population was about 1.26 billion and growing at the rate of 1.35% per year. Determine when India’s population will surpass China’s population. Assume that the 2014 growth rates will... | |
doc_21258 | <%= simple_form_for @scooties_coupon do |f| %>
<%= f.error_notification %>
<%= f.input :first_name %>
<%= f.input :surname %>
<%= f.input :occupation%>
<%= f.input :email, input_html: { autocomplete: 'email' } %>
<%= f.button :submit, class: "btn-primary" %>
<% end %>
A: Your form collects four inputs: ... | |
doc_21259 | Basically I need to display an image in a website depending on the current moon phase.
I found this: http://jivebay.com/2010/01/04/calculating-the-moon-phase-part-2/ , however, the author says it's not 100% accurate.
Any ideas ? thanks!
A: // calculate lunar phase (1900 - 2199)
$year = date('Y');
$month = date('n');
$... | |
doc_21260 | As I don't want to have unused resources, is it possibile to list all resources linked to another?
thank so much!
N.
A: there is nothing built-in in Azure to achieve this, kinda. One way of doing this (if you are not using shared virtual networks, backups, etc) is to put all the resources that logically relate to the ... | |
doc_21261 | Here is my current code:
<h1>Generate Reports</h1>
<form enctype="multipart/form-data" action="http://localhost/yiiFolder/index.php/create" method="post">
<table>
<tr>
<td><strong>Materials</strong></td>
<?php
mysql_connect('host', 'root', 'password');
mysql_select_db ... | |
doc_21262 | Symfony2 provides for a robust security system, but it seems to hinge on the "Security Layer" intercepting form submissions and using the form-encoded POST data to process an authentication attempt. This is problematic for our application because we use JSON exclusively. From where I'm standing, using JSON for every ... | |
doc_21263 | #include <iostream>
#include <vector>
#include <queue>
#include <atomic>
#include <thread>
#define NUM_CAMERAS 2
void AcquireImages(std::queue<unsigned char*> &rawImageQueue, std::atomic<bool> &quit)
{
unsigned char* rawImage{};
while (!quit)
{
for (int camera = 0; camera < NUM_CAMERAS; camera++)... | |
doc_21264 | I'm not sure where it's going wrong. Please help me with this.
Code:
import scrapy
class ExampleSpider(scrapy.Spider):
name = 'example'
def start_requests(self):
yield scrapy.Request('http://www.example.com/search?q=%s' % self.query,callback=self.parse)
def parse(self,response):
start_urls=[... | |
doc_21265 | Given the inherent type-hierarchy of schema.org, some properties are shared by all types, some properties are only available on 1 type, and everything in between.
For example: a Person,Organization,LocalBusiness, share properties like name, description, postalAddress, etc. while some are only used by Person, such as fi... | |
doc_21266 | My question is, does "additional EBS volumes" (besides the root volume) always included in the AMI snapshots? Thanks!
| |
doc_21267 | In a case of Publisher->EMS server->Subscriber, if a Subscriber fails, I need to inform Publisher to take a corrective action.I am not bothered about durabilty/PERSIETENCE, my significance is of time. In Trading systems, If I send an market order to a Subscriber who in turn sends it to an exchange, if it fails, I need ... | |
doc_21268 | I tried this:
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
kotlinOptions.freeCompilerArgs = listOf("--add-modules", "jdk.incubator.vector")
}
Result is:
Invalid argument: --add-modules
I've checked and the right SDK is being used, and help for javac at least shows --add-modules as a valid fl... | |
doc_21269 | $('form').submit(function(){
$('input[type=submit]', this).attr('disabled', 'disabled');
});
Is there a better way of coding this?
A: Your code is changing the submit action of the form. Instead of submitting, it changes the button attribute.
Try this:
$('input[type=submit]').click(function() {
$(this).attr('... | |
doc_21270 | I tried in the way to
*
*setRetainInstance(true);
*Also set
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}
in my fragment and framentactivity.
*
*Also added android:configChanges="keyboardHidden|orientation|screenLayout|screenS... | |
doc_21271 | Broadly the answer is "the .map file(s)" and the most common issue is broken paths due to build issues. However I don't think that's the problem here since the map file looks like this
{
"version": 3,
"file": "CoreWidgets.js",
"sourceRoot": "",
"sources": [ "CoreWidgets.ts" ],
"names": [],
"mappings": "AAA... | |
doc_21272 | The problem is:
Consider a list of integers [x_1; x_2;...;x_n]. We'll call index i "a hole"
if 1 < i < n, such as x_i < max(x_1,...,x_{i-1}) and x_i < max(x_{i+1},...,x_n).
The depth of this hole is min(max(x_1,...,x_{i-1})-x_i, max(x_{i+1},...,x_n)-x_i).
Write procedure hole : int list -> int which for given list... | |
doc_21273 | I use Spark 2.3.1 / Scala 2.11.12
My code:
allData = spark \
.readStream \
.format("kafka") \
.option("kafka.bootstrap.servers", "localhost:9092") \
.option("subscribe", "mysql.login") \
.option("startingOffsets", "earliest") \
.load()
df = allData.selectExpr("cast(value as string)", "timestamp", "topic" )... | |
doc_21274 | I have a project that needs to use an old build of Rust (cargo 0.19.0-nightly c995e9e 2017-03-17). It uses rand so I added rand="0.4.3" as a dependency. When the registry updates, rand 0.5.5 (latest) is automatically downloaded and it also runs into "break loop" error which was stabilized a while ago. I am not sure how... | |
doc_21275 | import com.novus.salat.annotations._
case class MyObject(@Key("_id) compId: MyCompositeId, value: String)
case class MyCompositeId(x: String, y: String)
and I created a DAO like the following:
import com.novus.salat.global._
import com.novus.salat.dao._
import com.mongodb.casbah.{MongoURI, MongoConnection}
import com... | |
doc_21276 | I know there are several questions related to the same issue but I've already tried all the "solutions" like:
*
*Re-compile the widgetset
*Clear all caches from Ivy
*Clean the project
*Check the annotation @VaadinServletConfiguration, which already contains widgetset = "com.example.myapp.widgetset.MyAppWidgetset"... | |
doc_21277 | These are 3 different outputs when I execute the code 3 times:
*
*[2, 4, 3, 6, 5, 1]
*[1, 6, 3, 2, 4, 5]
*[1, 4, 2, 3, 5, 6]
Using a fixed pivot such as A[low] works perfectly fine, when I try to implement the median of three random numbers it gets messy, I'm not sure why that is.
What am I missing / doing wrong?
... | |
doc_21278 | What happend if the maxpool size of ConsumerTaskExecutor different with setConcurrency value?
ThreadPoolTaskExecutor customExecutor= new ThreadPoolTaskExecutor();
exec.setCorePoolSize(3);
exec.setMaxPoolSize(6);
ConcurrentKafkaListenerContainerFactory<String, String> factory = new ConcurrentKafkaListenerContainerFacto... | |
doc_21279 | I'm trying to execute a snmpget with snmpv3, security DES and auth MD5 and custom OID (python script, which is executed by snmp's extend funtionality). To create better understanding I used SnmpConstants.sysUpTime in the example below.
The SNMP resource has this user configured:
defSecurityName demo
defSecurityLevel au... | |
doc_21280 |
the html:
<nav>
<ul>
<li><a href="#"><span>Link 1</span></a></li>
<li><a href="#"><span>Link 2</span></a></li>
<li><a href="#"><span>Link 3</span></a></li>
<li><a href="#"><span>Link 4</span></a></li>
</ul>
</nav>
the jquery:
$(document).ready(function () {
$('a span').hi... | |
doc_21281 | This is my page.php file:
<?php get_header(); ?>
<main id="page-main" role="main" class="main">
<?php
?>
<section id="section-top" class="header cf">
<h2><?php the_title(); ?></h2>
</section>
<div id="content-wrap" class="wrap cf">
<div id="inner-content" cl... | |
doc_21282 | cin>>n>>q;
vector<vector<int>> v1 (n);
for(int i = 0; i < n; i++) {
int k;
cin>>k;
for(int j = 0; j < k; j++) {
cin>>v1[i][j];
int temp;
cin>>temp;
v1[i].push_back(temp); */
}
}
Above writ... | |
doc_21283 | select distinct *
from users
left join survey_results
on users.user_id = survey_results.user_id
where customer_id = '9000'
and survey_results.created_at < (DATE_PART('year', survey_results.created_at) = (SELECT EXTRACT(YEAR FROM CURRENT_TIMESTAMP))
AND DATE_PART('month', survey_result... | |
doc_21284 | But I want to style the popup. But how to do that?
SO I have this template:
<mgl-layer
*ngIf="imageLoaded"
id="camera"
type="symbol"
[source]="{
type: 'geojson',
data: {
type: 'FeatureCollection',
}
}"
(click)= "onClick($event)"
[layout]="{'icon-image': 'c... | |
doc_21285 | But each of the service uses the same dll, shared between all the 5 windows service, to perform the underlying processing.
Would this model of distribution of load / load-balancing make sense?
Would I be better off, if I deploy each service with its own processor.dll?
Thanks
A: If I understand your question correctl... | |
doc_21286 | CREATE TABLE dbo.Section
(
Section varchar(50) NULL
)
INSERT INTO dbo.Section (Section.Section) VALUES ('AV01')
INSERT INTO dbo.Section (Section.Section) VALUES ('AV02')
INSERT INTO dbo.Section (Section.Section) VALUES ('AV03')
INSERT INTO dbo.Section (Section.Section) VALUES ('AV04')
INSERT INTO dbo.Section (Se... | |
doc_21287 |
A: update your eclipse 3.4 for jadeclipse from help-> software updates
http://webobjects.mdimension.com/jadclipse/3.3
restart the eclipse.
set the jadeclipse properties.
it doesn't just works.. this is the solution.
A: I'm successfully using JadClipse with Eclipse 3.4
Eclipse 3.4.0.I20080617-2000
JadClipse 3.3.0
It... | |
doc_21288 | Apparently, blender uses GUI and a lot of math to transform otherwise 2D objects, but I need this effect in a SCNNode with a SCNGeometry, in other words, a 3D object currently locate in the scene.
I considered using category masks, but after reading Apple's documentation I've realized that doesn't work for the effect I... | |
doc_21289 |
A: Please Try This One Hope It Would Help
Set fileSystemObj = createobject("Scripting.FileSystemObject")
'To check if the given file present'
MyFile = "C:\TestFile.txt"
If fileSystemObj.FileExists(MyFile) then
Msgbox "File is present" & MyFile
Else
Msgbox "File does not present" & MyFile
End If
'To ch... | |
doc_21290 | -(void)translate
{
CATransform3D translate = CATransform3DIdentity;
translate = CATransform3DTranslate(translate, 20, 0, 0);
[UIView animateWithDuration:2 animations:^{
self.layer.transform = translate;
} completion:^(BOOL finished){
}];
}
So, if I want the view to actually be at that ... | |
doc_21291 | I know we can fetch using the chunk id but in that case we have to make a call for each chunk.
A: Unfortunately, it's impossible to do in a single call. However, it is possible in N+1 where N is a number of shards.
*
*Request a block (by height, hash or finality - depends on your quest, lets assume you need latest)
... | |
doc_21292 | <ControlTemplate x:Key="ControlValidationErrorTemplate">
<DockPanel LastChildFill="True">
<Border Background="Red"
DockPanel.Dock="right"
Padding="2,0,2,0"
ToolTip="{Binding ElementName=valAdorner, Path=AdornedElement.(Validation.Errors), Converter={x:Static val:ValidationError... | |
doc_21293 | I want to send request and get response that would tell me if authorisation is correct and whether the server generally responds correctly, but I don't want to ask for any particular data. I know I could ask for something random, that's not very elegant though.
A: Check out the HTTP HEAD method.
| |
doc_21294 | Abrechnung30.11.2022
0,00+
Kontostand/Rechnungsabschlussam30.11.2022
672,06H
Rechnungsnummer:2022-11-3020:53:31.468209
01.12.2022
01.12.2022
Barausz.Debit.KFK
What I am trying to do is: 1.Read the pdf file 2. Find the line number where the string "Rechnungsnummer" appears and then I want to go to the next line and the ... | |
doc_21295 | spec symbols are missed in set text and browser settings page is opening unexpectedly on enter spec symbol or capital letter.
Tests are based on WDIO http://webdriver.io/
For example if I execute
browser.setValue(selector,"Text #1");
the result in the input will be: "Text 1" and 2 opening of settings Page
Affected MA... | |
doc_21296 | However when I run the same stored procedure in MSSQL 2008 and try to export the data in the temp table into a excel file using the export wizard, I am getting a Invalid object Name '##Temp' error.
May I know why is this so and How can I rectify it. Please advise on how to solve it.
This is the part of the Stored Proce... | |
doc_21297 | <cfset Year = Left(mbTimeStamp_dt,4)>
<cfset Month = mid(mbTimeStamp_dt,5,2)>
<cfset Date = mid(mbTimeStamp_dt,7,2)>
<cfset Hour = mid(mbTimeStamp_dt,9,2)>
<cfset Minute = right(mbTimeStamp_dt,2)>
<cfset NewDate= "#Createdatetime(Year,Month,Date,Hour,Minute,00)#">
<cfset PSTTime = #DateConvert("UTC2Local", NewDate )# ... | |
doc_21298 | foreach($item['author'] as $sub){
if (is_array($sub)){
foreach($sub as $field => $value){
if ($field == "name"){
$author = $value;
} elseif ($field == "Request"){
$request = $value;
} elseif ($field == "Phone"){
$phone =... | |
doc_21299 | Table(MissioneID, Type)
Type can be 1,2 or 3
i have to count missions by type value:
ex. if table's content is:
MissioneID Type
1,1
1,2
1,1
2,3
1,2
The result of query is
MissioneID,Count1,Count2,Count3
1, 2,2,0
2,0,0,1
How can i do?
thanks
A: select
MissioneID,
SUM(CASE WHEN [type]=1 THEN 1 ELSE 0 END) as... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.