id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23517000 | This option is missing from Windows Runtime projects as well, like Windows 10 IOT ones.
What is the best way to create API clients by swagger for this? If there is no built in tool / extension for VS, any external tools are highly appriciated.
Thanks a lot!
A: I don't get your question completely; on Windows IOT Core ... | |
doc_23517001 | R 3
W 1
W 2
W 3
R 2
R 5
W 3
W 6
R 2
R 5
I want to check whole of the file when I see W in $1. GAP is a initial integer (in this case is 6) and I wanna replace $2=GAP by GAP+1
first W; GAP=6;
R 3
W 1 <- first W
W 2
W 3
R 2
R 5
W 3
W 6 <- GAP
R 2
R 5
in step 1, I want to apply this modification:
R 3
W 1
W 2
W 3
R 2
R 5... | |
doc_23517002 | The login is successfull and authorization is also working.
How can I check if the authorization status is valid or invalid after the login.
Based on following method
com.evernote.client.android.EvernoteSession.isLoggedIn()
It only returns the login status.It returns true if login was succesfull otherwise it returns f... | |
doc_23517003 |
Not able to find Java executable version. Please check your Java installation. errorlevel=2
I am providing complete path to JMeter.bat file while creating the task.
What could be the possible reason for this error?
A: Finally, I figured it out. The root cause is that I was maintaining two versions of Java on my mach... | |
doc_23517004 | I am having an issue whereby I hide and disable a bunch of dropdown lists based on a dropdown value (in a form). When I submit this form, these fields continue to be validated. These fields are being disabled via jQuery as such:
minage.removeAttr('data-parsley-minagecheck').attr('data-parsley-excluded', '').attr('dis... | |
doc_23517005 | Right now what I do is create features/new_feature.feature, run cucumber, create step_definitions/new_feature_steps.rb, then copy the step definitions in terminal to new_feature_steps.rb.
Is there a faster way of doing this or do I do this manually?
BTW I would appreciate articles on this topic. I am learning Cucumber ... | |
doc_23517006 | The thing is, that I don't have an Apple computer. I mainly use Linux, and Windows when I have to.
Is it possible to build applications for iPhone using the Linux platform?
What type of software is best to learn the ropes of? Suggestions?
A: PhoneGap uses html, Titanium uses javascript. Both run on iOS (after jumping ... | |
doc_23517007 | [1,1,0,0,1,0
1,1,1,0,1,1
0,0,1,0,0,1
1,1,1,0,1,1
0,1,0,1,0,0
1,1,0,1,1,0]
I would like to extract patterns of 1s which repeat most between rows. In this example, I would like to know that [1,1,x,x,1,x] occurs frequently, i.e there are lots of rows where these features fo together.
What is the most efficient algor... | |
doc_23517008 | To accomplish CORS i tried to put Access-Control-Allow-Origin header in service Aapache config.
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Methods "GET"
When i switch of Kerberos protection from resource all is fine
And response header from server allows CORS
Access-Control-Allow-Cr... | |
doc_23517009 | Do I need to install anything else to get the Plugin Project so I can use the wizard?
Thanks, I was planning to write some sweet plugins but I am stuck.
A: You need to install the right package of Eclipse.
The RCP edition should give you what you are looking for.
See the RCP tutorial for illustration.
You can also upd... | |
doc_23517010 | #include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
#define ERR_EXIT(m) { \
perror(m); \
exit(EXIT_FAILURE); \
}
void send_fd(int sock_fd, int number){
iovec vec;
vec.iov_base = &number;
vec.iov_len = sizeof(numbe... | |
doc_23517011 | x=c("NCL","NCL,a","a,NCL","NCL-a","a-NCL","FNCL","Ncl")
grep("[NCL]",x)
[1] 1 2 3 4 5 6 7
However I want the result is
[1] 1 2 3 4 5
Hopefully someone can help me thx.
A: grep('\\bNCL\\b',x)
#[1] 1 2 3 4 5
| |
doc_23517012 | <XML>
<Series key="A">
<Observation>
<Dimension value="2018-11-01" />
<Value value="123" />
</Observation>
<Observation>
<Dimension value="2018-11-02" />
<Value value="456" />
</Observation>
<Observation>
<Dimension value... | |
doc_23517013 |
A: The best practice is to use load tests to find needed configuration. There is no magic number which will solve every situation.
| |
doc_23517014 | Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
This should set up my port address correctly. Then I'm setting my socket options and binding the end point doing.
s.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
s.SetSocketOption(SocketOptionLevel... | |
doc_23517015 | This is my code:
<script>
import { db } from '~/plugins/firebase.js'
export default {
asyncData (context) {
let listUsers = []
db.collection('users').get()
.then(doc => {
doc.forEach(user => {
listUsers.push({ id: user.id, ...user.data() })
});
})
retur... | |
doc_23517016 |
A: I don't have access to bottleneck, so in this example I am using argsort, but you should be able to use it in the same way:
#!/usr/bin/env python
import numpy as np
N = 4
a = np.random.random(20).reshape(4, 5)
print(a)
# Convert it into a 1D array
a_1d = a.flatten()
# Find the indices in the 1D array
idx_1d = a_1... | |
doc_23517017 | But when I go to print I see all the strange characters (in php). How do I convert these fields optimally?
i found this
UPDATE table SET title = CONVERT (CONVERT (CONVERT (title USING utf8mb4) USING binary) USING UTF8)
EDIT: IT WORK. But if I print like this in php I see the strange characters, I have to use utf8_enco... | |
doc_23517018 | <select id="country">
<option data-countryCode="IN" value="91">India</option>
<option data-countryCode="US" value="1">US</option>
<option data-countryCode="GB" value="44">UK</option>
</select>
<input type="tel" placeholder ="956 826 4457" id="tel">
JS code:
const select = document.querySelector('#countr... | |
doc_23517019 | The situation is equal to this:
There are four files for two classes A and B. Every class has got its header file (e.g. "A.hpp") and its implementation file (e.g. "A.tpp").
The dependencies are as follows:
*
*A's header requires B' header
*A's impl requires B's header
*B's header requires nothing but a forward dec... | |
doc_23517020 | app.auth = HTTPBasicAuth()
I'm trying to test the api with curl but my flask app is not logging me in.
This is the curl line
/usr/bin/curl -H 'Accept: application/json' -H 'Content-type: application/json' -u 'user:mypasswd' --cacert path_to/rootCA.crt --key path_to/backend.key --cert path_to/backend.crt -X POST -d '{}... | |
doc_23517021 | I have a web page with 3 sections.
Each of these 3 sections have two columns.
The left column is a list of elements and the right column is an explanation text based on list elements and dynamically updated.
The problem is that this left column could be long and in small screens when the user scrolls down can't see the... | |
doc_23517022 | $ipaddress = '';
// get user ip address
if (isset($_SERVER['HTTP_CLIENT_IP']))
$ipaddress = $_SERVER['HTTP_CLIENT_IP'];
else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
else if(isset($_SERVER['HTTP_X_FORWARDED']))
$ipaddress = $_SERVER['HTTP_X_FOR... | |
doc_23517023 | For that I'm using the following code:
<div class="header">
<ul class="nav nav-pills pull-right">
<li ><a href="#/home" ng-click="clickedHeaderLink(this)">Home</a></li>
<li ><a href="#/register" ng-click="clickedHeaderLink(this)">Sign in</a></li>
<li ><a ng-controller="LoginController" n... | |
doc_23517024 | I extend a QAbstractTableModel, but I get a compiling error ( I'm using cmake)
// file.h
#ifndef TABLEMODEL_H
#define TABLEMODEL_H
#include <QAbstractTableModel>
class TableModel : public QAbstractTableModel
{
Q_OBJECT
public:
TableModel(QObject *parent = 0);
int rowCount(const QModelIndex &parent = QModelIndex()) c... | |
doc_23517025 | I created all of the necessary directories via. the following:
git ls-files --others | awk -F '/' '{print "/home/user/newdir/"$1"/"$2}' | xargs mkdir -p
But I'm not sure how to force mv to use the git ls-files --others directory paths in determining the new locations.
A: One way I usually do this is with tar, since... | |
doc_23517026 | Entering the data seems to have no problems but when I click the button to retrieving the information it just presents 0's in the text box.
Public Class Form1
Dim Array(20) As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Privat... | |
doc_23517027 | Now I like to know :
Is it possible to create a UWP app for different windows 10 builds?
A: The answer to your question is: yes, you can build different versions of your app package that target different ranges of Windows 10 build numbers. For example you can submit a package that targets 16299 and another one for 150... | |
doc_23517028 | I am providing a query for this process which grabs data from a view:
SELECT [Full Date]
,[Year Entered]
,[Month Entered]
,[Day Entered]
,[DOW]
,[Week Ending]
,[Accession]
,[Sales Rep]
,[MLNPI]
,[IMSNPI]
,[IMS Specialty Primary Code]
,[Specialty Primary ... | |
doc_23517029 | I would like to be able to sum all of the word counts of stories in a series/all series to get the 'true' word count
My table layout's relevant columns are StoryId, Title, Words, Prequel, and Sequel.
e.g.
12345, 'The Hobbit', 95356, NULL, 54321
54321, 'The Fellowship of the Ring', 187790, 12345, 32145
32145, 'The Two... | |
doc_23517030 | My OS is Fedora 20 (everything is fine on my other machine with Debian).
Thank you for any hints.
| |
doc_23517031 | from datetime import date
dt = str("RT" + date.today().strftime('%d%m'))
print dt # RT0701
Basically I need to find this pattern dt + "*.txt" :
RT0701*.txt
In this list:
l = ['RT07010534.txt', 'RT07010533.txt', 'RT02010534.txt']
How can i do that with a for loop?
A: You can use fnmatch.filter() for this:
import fnm... | |
doc_23517032 | here is my php file with routes that I want to document:
<?php
use OpenApi\Annotations as OA;
/**
* @OA\Info(title="My First API", version="0.1")
*/
return [
/**
* @OA\Get(
* path="/api/v1/test",
* @OA\Response(response="200", description="An example resource")
* )
*/
'GET a... | |
doc_23517033 | How do I find out that a given DateTime is on the day of the Daylight-Change for a specific TimeZone?
That last part is important: Iam on another local timezone and need to find out when this change appears on another TimeZone!
I found out how to get the Delta, Start and End via the TimeZoneInfo.AdjustmentRule. But for... | |
doc_23517034 | My goal is now to adjust the starting time to when Temp>50.
My pseudocode is like this:
Current: avg_Temp = df.iloc[63-1:115+1]["Temp"].mean()
Objective: avg_Temp = df.iloc[df[Temp>50]:115+1]["Temp"].mean()
What is the best way to accomplish this?
def plot_data(filename, fig_ax, color):
df = pd.read_csv(f, sep... | |
doc_23517035 | date buy sell
2011-01-01 1 0
2011-01-02 0 0
2011-01-03 0 2
2011-01-04 3 0
2011-01-05 0 0
2011-01-06 0 0
2011-01-01 0 0
2011-01-02 0 1
2011-01-03 4 0
2011-01-04 0 0
2011-01-05 0 0
2011-01-06 0 0
2011-01-01 0 0
2011-01-02 0 8
2011-01-03 2 0
2011-01-04 0 0
2011-01... | |
doc_23517036 | i get this error..
ERROR com.test.project.sendService- No signature of method: com.test.project.sendService.withHttp() is applicable for argument types: (java.util.LinkedHashMap,
com.test.project.sendService$_sendText_closure2) values: [[uri:http://myweb.web.id], com.test.project.sendService$_sendText_closure2@43cec0c... | |
doc_23517037 | E0732931.00 and N30 2025.20
Is it 73 degrees, 29 mins and 31 seconds. To convert it to decimal degree, i have to
73+39/60+31/3600?
N30 2025.20 is 30 degs, 20 minutes, 25 seconds? What is the value after the decimal?
2nd i want to ask that is there any coordinate system which uses 100 seconds in a minute, i.e.
... | |
doc_23517038 | {
UdpClient c = (UdpClient)ar.AsyncState;
IPEndPoint receivedIpEndPoint = new IPEndPoint(IPAddress.Any, 0);
Byte[] receivedBytes = c.EndReceive(ar, ref receivedIpEndPoint);
string receivedText = ASCIIEncoding.ASCII.GetString(receivedBytes);
Console.Write(receivedIpEndPoint + ": " + receivedText + ... | |
doc_23517039 | I am using development environment for this. JSPs are stored at
C:\MisasiaAppln10.3_DEV\misasia\autodeploy\misasia
EJBs are deployed at
C:\MisasiaAppln10.3_DEV\misasia\servers\AdminServer\upload
Exception Details:
java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.NoClassDefFoundError: c... | |
doc_23517040 | class Book < ActiveRecord::Base
store :infodump
end
book = Book.new
book.infodump[:color] = green
puts book.infodump[:color]
# => green
This works fine enough, but I want the infodump to be treated as a Hashie::Mash object so that I can do this:
book = Book.new
book.infodump.author_info = {name: 'Bob', location:... | |
doc_23517041 |
Symbol
One
Two
1
28.75
25.10
2
29.00
25.15
3
29.10
25.00
I want to drop the column which does not have its values in an ascending order (though I want to allow for gaps) across all rows. In this case, I want to drop column 'Two'.I tried to following code with no luck:
df.drop(df.columns[df.all(x <= y fo... | |
doc_23517042 | from pydub import AudioSegment
sound = AudioSegment.from_mp3("/srv/python/welcome.mp3")
sound.export("/srv/python/test", format="wav")
ERROR:
IsADirectoryError: [Errno 21] Is a directory: '/srv/python/test'
path /srv/python/test is exits with write permission (777) and /srv/python/welcome.mp3 is also exits
A: As per... | |
doc_23517043 | This means that a plain invocation of java.lang.Runtime.exec is not the solution. I presume that java.lang.ProcessBuilder is involved, but how do I specify that output and error streams must be the same as the calling Java process?
class A {
public static void main(String[] args) {
try {
Process... | |
doc_23517044 | SELECT MONTH(Date), YEAR(Date) FROM Ticket;
for extracting the month number (9,10,11 ..) and year (2011, 2012..) from the Date column (yes thats true, I cannot change the name of this column) in the Ticket table. It works fine in MySQL but when I run the query in PostgreSQL, it gives the following error message for b... | |
doc_23517045 | In the past, it was easy to use 'Add As Link' to add the config file to other projects. How could this be achieved with Slow Cheetah because config files are dynamic?
I need some kind of add reference for config files or if there is no way of doing this, I have to copy the config file and Slow Cheetah it again.
A: I f... | |
doc_23517046 | Naturally I would like to keep the WooCommerce plugin completely vanilla, however I now added the secret directly into a new header attribute 'ms-signature'. I can't get the custom Webhook receiver to accept it though.
I am getting the error:
The WebHook signature provided by the 'ms-signature' header field does
no... | |
doc_23517047 | I have a PNG image with a transparent background. Through CSS I'd like the image (not the transparent background) to change to a different color.
There should be a way to do this through web-kit... but I've heard that that way isn't supported... Is there another way to do it, if not how can I achieve this through web-k... | |
doc_23517048 | jsfiddle
A: You played a little too much with position:relative. You can solve your problem by adding a padding-bottom:40px for class logboxcontain, but I would recommend trying using less relative positioning.
| |
doc_23517049 | I'm trying to integrate omnipay/paypal to process payments. Everythings works great until i need to verify my payment. How i register payment:
$gateway = Omnipay::create('PayPal_Rest');
$gateway->initialize(array(
'clientId' => $config['paypal_client_id'],
'secret... | |
doc_23517050 | For example, i want to crawl a website xxx.appspot.com and i need to login my Google account to access it since this database needs verification and i am authorized personnel.
when i do things like:
content=urllib.urlopen(target_url).read()
The "content" i get is, of course, just a login page. How do i implement the ... | |
doc_23517051 | meta: {
auth: true
}
But there isn't a normal routes/index.js file in Gridsome - only a router object exposed like this in index.js:
export default function (Vue, { router, head, isClient })
{}
How do I reach into the router and add the meta to the specific routes I want to modify?
A: You can get the rout... | |
doc_23517052 | My Code is Here :-
webview = (WebView) findViewById(R.id.webview);
webview.getSettings().setLoadWithOverviewMode(true);
webview.getSettings().setUseWideViewPort(true);
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setPluginState(WebSettings.PluginState.ON);
webview.setWebC... | |
doc_23517053 |
The documentation location for 'recordModifications()' has not been configured. For elements from libraries specify the Javadoc location URL on the properties page of the parent JAR ('/Applications/eclipse/plugins/org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar').
However, when I go to the properities for the JAR, it says:... | |
doc_23517054 | $user_id;
$sql = "INSERT INTO member_contact (mem_first_name, mem_last_name, mem_address_1, mem_address_2, mem_city, mem_state, mem_zip, mem_phone, mem_email)
VALUES ('$_POST[mem_fn]','$_POST[mem_ln]','$_POST[mem_add1]','$_POST[mem_add2]','$_POST[mem_city]','$_POST[mem_st]','$_POST[mem_zip]','$_POST[mem_ph]','$_POST[m... | |
doc_23517055 | How can I get the iphone microphones as a microphone array?
Is it possible to record from all microphones at the same time? How should I set them? (I think that I should use an AVAudioSessionCategoryMultiRoute)
I'm getting the available inputs with this function:
NSArray* inputs = [[AVAudioSession sharedInstance] ava... | |
doc_23517056 | Is there a chance to ignore the filter if the request come from ajax?
something like
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
if (FacesContext.getCurrentInstance().isPostback()) {...}
...
}
?
A: I found a solution which w... | |
doc_23517057 | #include <cstddef>
#include <algorithm>
#include <type_traits>
#include <utility>
template <typename T>
class aggregate_wrapper;
template <typename T, std::size_t n>
class aggregate_wrapper<T[n]> {
public:
using array = T[n];
template <typename... Ts, typename = decltype(array{std::declval<Ts>()...})>
aggregat... | |
doc_23517058 | [Any currency symbol][Any numeric amount] + in + [Any currency symbol]
I know how to format the URLs I will be searching for, and which class the span (whose text) I want is in, I simply just don't know how to programmatically take the result out and use it in my form.
Here's the applicable HTML code from a "£1 in $" ... | |
doc_23517059 | My impression is that it is not possible without significant flaws in the original web app.
Anyhow, the question is: Is it possible to steal session variables of web apps supported by Spring Security without making any changes to the server side content of the web app?
Edit: Using TLS
A: If the client/Server communica... | |
doc_23517060 | if(Debug===true){console.log('No jquery detected on host site, loading own jquery');}
Is breaking my script in a nokia windows phone, if I set that variable to false, everything works nicely, but if set to true the script stops. I tried also putting an alert instead of that console.log but same stop behaviour.
Anybod... | |
doc_23517061 | Here is the first interface
public interface A<T extends Resource>{
...
}
I would like to write something like this but it does not work.
public interface B<T extends Resource> extends A<T extends Resource>
{
...
}
I do not understand why this does not work.
Could you explain?
A: Since you have already defined th... | |
doc_23517062 | const handleSubmit = async (values) => {
const { handleValidation } = props
let success = handleStepValidation
? await handleStepValidation(values)
: true;
if (success) {
nextStep();
}
}
However, the above didn't work because it wasn't waiting for the validation to finish before... | |
doc_23517063 | import numpy as np
x = np.array([1.2334, 2.3455, 3.456], dtype=np.float32)
and want to print:
print('{:.2f}%'.format(x))
It gives me:
unsupported format string passed to numpy.ndarray.__format__
A: If you still want format
list(map('{:.2f}%'.format,x))
Out[189]: ['1.23%', '2.35%', '3.46%']
A: Try this:
x = np.ar... | |
doc_23517064 |
import java.util.Scanner;
public class TheCashMachin {
public static void main(String[] args) {
int pin, proceed2=0, withdraw, dailydraw, Proceed, proceed3 = 0;
double balance;
Scanner pinnumber = new Scanner(System.in);
Scanner proc2 = new Scanner(System.in);
Scanner withd = new Scanner(System.... | |
doc_23517065 | import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.powermock.api.easymock.PowerMock;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import static org.easymock.EasyMock.*;
import static org.junit.jupiter.api.Assertions.*... | |
doc_23517066 | We are currently testing the viability of running our unit tests on Databricks clusters instead of using a (PySpark) image in our Git / CI environment.
The repo within Databricks looks like
| - notebook
| - mycode.py
| - mycode_test.py
Here, mycode.py contains a function that applies a transformation on a Spark Datafr... | |
doc_23517067 | <StackLayout>
<maps:Map x:Name="map"
IsShowingUser="True"
MoveToLastRegionOnLayoutChange="False">
<x:Arguments>
<maps:MapSpan>
<x:Arguments>
<maps:Position>
<x:Arguments>
... | |
doc_23517068 | resources :devices, :except => [:edit] do
resources :services, :only => [:index, :destroy], :controller => "devices/services"
resources :alerts, :only => [:index, :destroy], :controller => "devices/alerts"
end
Now what I want to do is have the devices/show view be the "layout" for the nested resources and
an... | |
doc_23517069 | But the pod is not starting with the error: "ImagePullBackOff". What could be the problem? My helmfile:
...
repositories:
- name: ibm-stable-charts
url: https://raw.githubusercontent.com/IBM/charts/master/repo/stable
releases:
- name: ibm-mq
namespace: test
createNamespace: true
chart: ibm-stable-c... | |
doc_23517070 | switch (levelofapprove_converted)
{ //HiringManager
case 1:
id_hiringmanager_div.InnerHtml = @"<table class=""table"" id=""id_hiringmanager"" runat=""server"">
<td style=""height: 37px""><input type=""checkbox"" class=""form-check-input"" id=""id_check_claims"" runat=""se... | |
doc_23517071 | open Options -> Text Editor -> HTML (Web Forms) -> Formatting
click "Tag Specific Options"
then open "Client HTML tags"
click on "script"
and uncheck "Indent contents".
I've done this in VS 2013, but it keeps indenting every time I enter a new line/paste/etc.
| |
doc_23517072 | I am trying to implement
1. & - puts job in background
2. Fg (id) brings job in foreground
3. Jobs - display current background processes in same terminal.
How can I achieve this ?
A: Best way to run command simultaneously is put all command in one scrip file an and then run that script file using Processbuilder
You... | |
doc_23517073 | <% my_string = "something" %>
<% my_string = simple_format my_string %>
Of course, my_string ends up with <p>something</p>
This removes the opening p tag.
<% my_string[0..2] = "" %>
This removes the closing p tag.
<% my_string.chop! %>
<% my_string.chop! %>
<% my_string.chop! %>
<% my_string.chop! %>
Note: I don't... | |
doc_23517074 | Thanks
A: Hans Passant, you are right. It is enough to change "Attach to" from "Automatic" to "Managed (v4.5, v4.0) code, Native code" and attach to EXCEL process
| |
doc_23517075 | Testcontainer version: 1.15.3
However, it always fails to get the Container.getMappedPort(X) inside the DinD Container.
It works absolutely fine on my local setup and manages to get the mapped port.
Has anyone encounter this issue before or has a solution for this?
My Jenkins file
#!groovy
def label = "debug-${UUID.ra... | |
doc_23517076 |
A: I have checked the package on wpf, it does not work.
If you want to use circle images in wpf, you could try the code below.
<Ellipse Width="250" Height="250">
<Ellipse.Fill>
<ImageBrush ImageSource="http://upload.wikimedia.org/wikipedia/commons/5/55/Tamarin_portrait.JPG" />
</Ellipse.F... | |
doc_23517077 | Here is my Calendar.js Code:
$(document).ready(function() {
$('#calendar').fullCalendar({
theme: true,
eventLimit: true,
eventSources: [source]
});
});
I have bd mysql "event" table in file bdCalendar.js with data. I don't understand how to transfer data from a table to array source usi... | |
doc_23517078 | android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 8
targetSdkVersion 17
}
signingConfigs {
myConfig{
storeFile file("my.keystore")
storePassword "password"
keyAlias "alias"
keyPassword "pa... | |
doc_23517079 | JSF 2.2 (Mojorra 2.2.0)
Servlet 3.0 : Jboss EAP 6.1
Facelets (XHTML)
When we put a parameter to Flash , we can not get it from another page in I.E. browser. We tried in I.E. 11 on different machines.
Strangely it is ok in Chrome, Opera.
Our code when putting parameter to Flash:
public String pageDirect(String url, Exte... | |
doc_23517080 | I think it can be achieved with serialization groups but maybe it's not the easiest way to do it.
So I've thought to simply add a new custom route, called special_get to test with the normalization_group user:special as follow :
/**
* @ApiResource(
* attributes={
* "normalization_context"={"groups"={"u... | |
doc_23517081 | We have created a somewhat complex bootstrap dynamic (via Ajax) tab menu with 700 nested tabs. When loading the page and clicking the first few tabs the load time is only about 1-2 seconds per tab. That is perfect and exactly what we want. However, after clicking more tabs the dynamic load time increases up to 10 secon... | |
doc_23517082 | My query so far for returning the matched rows:
SELECT "study_collection_collection"."id",
"study_collection_collection"."name",
"study_collection_collection"."description",
"study_collection_collection"."search_vector_index",
((0 + SIMILARITY("study_collection_collection"."name", 'my coll')... | |
doc_23517083 | I'd like to read it using Processing but I'm not sure how. If it was shown under Ports (COM % LPT) it would be easy to use the Serial class.
Windows says the location of the device is Port_#0004.Hub_#0005. How do I read this?
A: If the device is a HID device, then the answer is that sadly, no you cannot manipulate th... | |
doc_23517084 | Here is my code :
bot.on("message", msg => {
if (msg.channel.id !== "815002698499096616") {
return;
}
// Checking if the author is a bot.
if (msg.author.bot) {
return false;
}
// Deleting the message if there are 0 attachments in the message.
if (msg.attachments.size == 0) {... | |
doc_23517085 | {
"$id": "1",
"Children":
[
{ "$id": "2", "Children": null, "Name": "Bob Smith", "Parent": { "$ref": "1" }},
{ "$id": "3", "Children": null, "Name": "Suzy Smith", "Parent": { "$ref": "1" }}
],
"Name": "John Smith",
"Parent": null
},
{
"$ref": "2"
},
{
"$ref": "3"
... | |
doc_23517086 | I searched multiple mongo aggregation documentation documents, and built the query the best I could.
Worth to point out I have almost none aggregation experience, and this is onde of the most complex aggregates I have done so far.
let currentYear = new Date();
currentYear.setFullYear(currentYear.getFullYear(... | |
doc_23517087 | I have this document:
[
{
"name": "Josh",
"personId": "1234",
"cash": 100,
"events": [ {"type": "event1", "active": true }, {"type": "event2", "active": true}]
},
{
"name": "Angelo",
"personId": "7890",
"cash": 50,
"events": [ {"type": "event1", "active": true }, {"type": "event2",... | |
doc_23517088 | Solr Response: Internal Server Error
And tomcat6 logs would contain an error like this:
Jul 5, 2011 10:14:29 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr4 path=/update params={wt=ruby} status=0 QTime=6
Jul 5, 2011 10:14:30 AM org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {add=[Pro... | |
doc_23517089 | It is also worth mentioning that when I scroll through the listview the images are reloaded.
FutureBuilder(
future: urlPublicaciones.cargarUrlPublicaciones(),
builder: (BuildContext context,
AsyncSnapshot<List<UrlPublicacionesModel>> snapshotUrl) {
if (snapshotUrl.hasData) {
... | |
doc_23517090 | The answers posed in the second question did not help and when I added wait()it gave me a force close when the app opened and when I added notify() it gave me a force closed when ever I left the app. I am out of ideas and now looking for so see if anyone might have a solution to this problem.
I am using a surfaceview ... | |
doc_23517091 | I need such an object that its internal fields should remain unchanged after the object is created, while I do not like long parameter list. What is the best practice to do it?
A: Use Builder pattern:
Foo foo = new FooBuilder().setBar(...).setBaz(...).build();
A: A long parameter list could (but doesn't have to) mea... | |
doc_23517092 | Example:
df <- data.frame(y=rnorm(12), f=rep(1:3, length.out=12))
z <- c(-1,0,5)
Note that my real z has been constructed to correspond to the unique factor levels, which is why length(z) = length(unique(df$f). I now want to create a vector of length n=12 that contains the value of z that corresponds to the factor... | |
doc_23517093 | var cars = [{id: 1, name: 'Honda'}, {id: 2, name: 'Toyota'}, {id: 3, name: 'Dodge'}];
var selectedCar = ko.observable();
Here's my html:
<select data-bind="value: selectedCar, optionsCaption: 'Select', optionsText: 'name', options: cars"></select>
So now, whenever I select something in the dropdown my variable contai... | |
doc_23517094 | Now I am trying to send response as a paginated response but I don't have idea how to do this because there is no way to know how many rows should be asked from source 1 and source 2.
for example :
consider two tables : comments and likes
one store comments :(this is a mysql table)
comment
Date
second store lik... | |
doc_23517095 | After generation i copy pasted the generated token in https://jwt.io website. It decoded my token without using private key.How come this is possible?
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
PrivateKey privateKey = pair.getPrivate();
Claims claims = Jwts.claims().setSubject(userName);
cla... | |
doc_23517096 | public class Contact(){
private Integer idContact
private Date dateDebut;
private Date dateFin;
...............
public Contact(){}
// getters and setters
}
and List<Contact> contacts
I want to find the Object having the minimum of dateDebut and the Object having maximum of dateFin using Collections.... | |
doc_23517097 | def create_plot(sheet_name):
sample = book.sheet_by_name(sheet_name)
data = [[sample.cell_value(r, c) for r in range(sample.nrows)] for c in range(sample.ncols)]
y = data[2][18:len(data[2]) - 2]
x = np.arange(32, 138.05, 0.05)
indices = peakutils.indexes(y, thres=0.35, min_dist=0.1)
peaks = [y[i... | |
doc_23517098 | The interface is easy to use offline - any php server will do with a local clone of the web app. The problem is the database update:
Components :
I will have 2 things to update :
*
*the mysql database
*the "downloaded pictures" that will eventually exist (i'm using imperavi redactor as a text editor, and will downl... | |
doc_23517099 | Idea is to process input value and return it to cell - render.
ASP
<asp:GridView ID="GridView_stations" runat="server" AutoGenerateColumns="False"
DataSourceID="mailreport" AllowSorting="True" Width="100%" AllowPaging="True">
<Columns>
<asp:BoundField DataField="id" HeaderText="ID" SortExpression="id"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.