id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_14500 | Here is my dockerfile
FROM quay.io/my_company/phpjenkins
WORKDIR /usr/src/my_project
ADD composer.json composer.json
ADD composer.lock composer.lock
RUN composer install -o
ADD . .
RUN mkdir -p temp/unittest/cache log
RUN cp app/config/config.unittest.template.neon app/config/config.unittest.neon
CMD ["tail", "-f... | |
doc_14501 | #include <limits>
#include <iostream>
int main()
{
float d = 1.e-29;
std::cout<<"d: "<<d<<" underflow? "<<(d<std::numeric_limits<float>::min())<<std::endl;
d = 1.e-59;
std::cout<<"d: "<<d<<" underflow? "<<(d<std::numeric_limits<float>::min())<<std::endl;
}
The printouts are
d: 1e-29 underflow? 0
d: 0 ... | |
doc_14502 | Any help would be greatly appreciated! It's my last step in making my full site work-- you can see the full site here.
var player1,onplayhead1,playerId1,timeline1,playhead1,timelineWidth1;
jQuery(window).on("load", function () {
audioPlay();
ballSeek();
});
function audioPlay() {
/*var player = document.g... | |
doc_14503 | How I can check it in java8 way?
A: tl;dr
If you want to compare the moment represented by your text input against the current moment.
OffsetDateTime
.parse( "2040-11-01T00:00:00.000-05:00" )
.toInstant()
.isAfter(
Instant.now()
)
Details
Parse your input as a date with time-of-day on the context of an offset-fr... | |
doc_14504 | import java.util.Scanner;
public class PositiveNegative { public static void main(String[] args) {
int numbers, plus = 0, minus = 0;
int count = 0;
double total = 0;
Scanner scan = new Scanner(System.in);
System.out.print("Enter an integer (0 to quit): ");
numbers = scan.... | |
doc_14505 | my service:
if (mAccel > 31) {
if (count=="1"){ count = "2";
ToneGenerator toneGen1 = new ToneGenerator(AudioManager.STREAM_MUSIC, 100);
toneGen1.startTone(ToneGenerator.TONE_CDMA_PIP,150);
deviceManger .lockNow() ;
} else if (
count=="2") {
count = "1";
ToneGenerator toneGen1 = new ToneGenerator(AudioManager.STREAM_... | |
doc_14506 | I added the following in the xml, but the variables weren't maintained:
<session-descriptor>
<persistent-store-type>memory</persistent-store-type>
<sharing-enabled>true</sharing-enabled>
</session-descriptor>
I also tried response.encodeRedirectURL(recordUrl2) instead, but sessions variables weren't maintained... | |
doc_14507 | When a user opens a file my plug-in checks the version numbers. If the current plug-in version is not the same as the version stored in the file it pops up a message warning the user about the different version and that the file might cause the plug-in to crash.
I'd much rather provide a set of migration scripts that r... | |
doc_14508 | However, in the example app there are dependencies between Action Creators (ChatMesssageActionCreator) and Stores (MessageStore), and between Stores (MessageStore, ThreadStore) and Web API Utils (ChatMessageUtils), which seems to be against the unidirectional data flow rule:
Is it recommended to follow the given exampl... | |
doc_14509 | attr_accessor :name, :username, :email, :password
validates :name, :presence => { allow_blank: false, message: "Имя не может быть пустым" }
validates :username, :presence => { allow_blank: false, message: "Имя пользователя не может быть пустым" }
validates :email, :presence => { allow_blank: false, message: "Эл. адрес... | |
doc_14510 | How would I use reflection to identify which postback fieldname matches the field in the table and then update that single field with the value passed back using a LINQ update ?
(string fieldid, string fieldvalue)
update: I've looked at Dynamically select and update a column value in LINQ resultset
and instead of set... | |
doc_14511 | import numpy as np
images = np.random.randint(4, size=(500,240,240))
labels = np.random.rand(500,240,240)
How can I manke a Keras generator for model training? Thanks in advance for your help.
A: You can do this easily if you're willing to do a small change to your images. Basically you need to add one more dimensio... | |
doc_14512 |
Hi all,
I am sorry but i am putting my question as a new question in this post.I need all your help very much now and i appreciate your help very much
SELECT *
FROM (SELECT distinct gl.group_id,
gl.group_name,
gl.group_description,
gl.status_code,
... | |
doc_14513 | I am trying to retrieve multiple random rows that contain only unique userid but for the type column to be random - type can only be 0 or 1. The table in question will contain less than 1,000 rows at any given time.
My table
CREATE TABLE tbl_message_queue (
userid bigint(20) NOT NULL,
messageid varchar(20) NOT NULL... | |
doc_14514 | customer data comes from aws backend as seen here in the image when opening the dialog for the specific user. I tried adding new initial values the one that is commented out currently but then it messes up the handleSave function.
const customerSchema = Yup.object().shape({
customer_name: Yup.string().required('Cust... | |
doc_14515 | Error 14 'RaiseEvent' definition missing for event 'AsyncReturn'.
Error 55 End of statement expected.
Error 58 Type 'WksStatus' is not defined.
Error 88 Character is not valid.
Error 102 Maximum number of errors has been exceeded.
Is there any way to either:
*
*decompile it so there are no errors, or
... | |
doc_14516 |
A: No you can’t make the data in the extract unreadable, but you can reduce it to a bare minimum, especially with aggregation.
When you make your extract, you can first hide fields you don’t want included in the extract, filter to exclude Records you don’t want included, and aggregate to visible dimensions to pre aggr... | |
doc_14517 | RewriteRule ^(la|en|me)/?(.*)$ /go/$2 [R=302,L]
When user visit /la/route-1 it will be redirected to /go/route-1.
Visit /en it will be redirected to /go/.
It works great, but I got an issue about this:
If someone visit /eng/route-1 it will be redirected to /go/g/route-1, it shouldn't trigger redirection.
Have any idea... | |
doc_14518 | var url = "myurlhere.com";
var str = UrlFetchApp.fetch(url).getContentText();
const RegexExp = /(?<=<span class=\"text-match\">).*?(?=<\/span>)/gi;
var result = str1.match(RegexExp);
And this works BEAUTIFULLY. The problem comes when the url page source is a client-side Javascript creation. I am crawling all over the ... | |
doc_14519 | The code from the article works well, but... I cannot assign a Maximum nor Minimum value to the control (both are stuck at the "default" Minimum of 0 and Maximum of 100).
I tried to add in code from the SO answer (by adding in a Min and Max field) but doing so locks both in to 0 and unable to change.
The question in sh... | |
doc_14520 | Folder structure :
/Project_folder
/system files
/application files
/helpers
/cache_helper
index.php
static.php (core php file)
I want to access cache_helper.php in static.php. while I am accessing, I get errors like
Call to undefined function get_instance()
A: Try to include b... | |
doc_14521 | Wavy underlines in a FlowDocument
However these no longer work in the Windows Apps Xaml. Are there any alternatives?
A: Using Direct2D with DirectWrite is one option.
A: You can use XAML's existing class PathGeometry to draw wavy lines.
Or, if you choose to use D2D, you can use ID2D1GeometrySink::AddBezier().
| |
doc_14522 | Added In proc file
web: bin/heroku-php-apache2 web/
Error
bin/sh: vendor/bin/heroku-php-apache2: No such file or directory
Also note , composer.phar config bin-dir is bin
Anyone who can share how they resolved this problem?
A: First of all, have you tried letting heroku create the Procfile itself? I think lately it wa... | |
doc_14523 | Here is a segment of the original code:
var tip_content = $('<div>').addClass('tip_content').load(url, function() {
Which produces this output:
<div class="tip_content">
I need to add another class to the output to style it differently on each page. Therefore, it seems like a good solution to add the current html pag... | |
doc_14524 | import asyncio
import aiohttp
from codetiming import Timer
async def task(name, work_queue):
timer = Timer(text=f"Task {name} elapsed time: {{:.1f}}")
async with aiohttp.ClientSession() as session:
while not work_queue.empty():
url = await work_queue.get()
print(f"Task {name} ge... | |
doc_14525 | int playerId;
System.Random rand = new System.random();
for (int i = 0; i <= 5; i++)
{
playerId = random.Next();
}
Console.Write($"Generating player ID: {playerId}");
// output example: Generating player ID: 1158453178
As a result, i got a set of numbers consisting of 10 digits. How can i solve this problem?
... | |
doc_14526 | program
package main
import(
"fmt"
"strings"
)
func main() {
var a [10]string
fmt.Println("emp:", a)
a[2] = "hello"
a[4] = "member of"
a[8] = "google"
str2 := strings.Join(a, " ")
fmt.Println(str2)
}
output
cannot use a (type [10]string) as type []string in argument to strings.Join
... | |
doc_14527 | Using VBScript I could use IE.Document.GetElementById("Blahblah").FireEvent - but this isn't working in VB.NET. So I have attempted to use RaiseEvent and InvokeMember instead, but neither seems to work in updating the form.
The HTML is:
<div class="elements">
<select name="_ctl0:MainContent:generate... | |
doc_14528 | data='[{"user":"CORP\\\\test","id":55cca31dd40238220c11d5a7}]'
However, in my angular JS layer, the json parse cannot work:
JSON.parse(data)
(program):1 Uncaught SyntaxError: Unexpected token c
I tried and turns out it is the returned string should be:
data='[{"user":"CORP\\\\\\\\test","id":"55cca31dd40238220c11d5a7"... | |
doc_14529 | Is there a possible solution without using absolute positions?
This error occurs when the browser is a small window
Google Chrome:
Firefox:
CSS:
* {
padding: 0;
margin: 0;
}
.w-100 {
width: 100%;
}
.flex {
display: flex;
align-items: center;
}
.special {
border-bottom: 1px solid #CCC;
padding: 10px;
... | |
doc_14530 | Using font_name: 'Arial' seems to be working but 'Denmark' raises an exception saying the font file is not found.
A: For the default font: regular, bold, italic, bold-italic.
Also dejavu sans regular and roboto mono regular are included by default.
Arial is usable (despite not being provided by default) because kivy... | |
doc_14531 | I'm looking for generic solutions because I have a heterogeneous DB environment (Oracle, MySQL, Sybase etc). But driver-specific suggestions are also welcome. Thanks,
A: Ah ... the joys of using closed-source libraries ...
If interrupt() doesn't work, and you cannot set some kind of timeout, then I think there is no s... | |
doc_14532 | What I want is to count the occurrence of each item in the successive items such that:
3.1 = 3
3.2 = 2
3.3 = 1
3.4 = 4
3.1 = 2
I wrote the following function:
private void displayItems(List<Double> items) {
double current_item=0;
for(int i=0; i<items.size(); i++) {
int count=1;
... | |
doc_14533 | I tried doing this
df = pd.DataFrame({'candle':[23,22,25,23,22,23,25,25,22],'point':['a','a','a','b','b','c','b','c','a'],'time':['2019-07-05 12:22:22','2019-07-10 12:22:22','2019-07-15 12:22:22','2019-07-20 12:22:22','2019-07-25 12:22:22','2019-07-30 12:22:22','2019-07-35 12:22:22','2019-07-40 12:22:22','2019-07-45 12... | |
doc_14534 | A
a
a
B
b
b
into this:
a/!
a/!
b/!
b/!
So I wrote a custom function:
function PrepareDic()
:g/[A-Z]/d | :%s/$/\/!/g
endfunction
But when I do :PrepareDic() I end up with something like this instead:
a/!/!
a/!/!
b/!/!
b/!/!
What I'm I doing wrong?
A: Since you wrote a function you don't need to chain commands lik... | |
doc_14535 | sudo apt-get install apache2
sudo su
apt-get install lamp-server^
apt-get install phpmyadmin –y
Phpmyadmin is 'avaible' but it doesn't accept login ad password(checked in documentation).
I've installed it without '-y' and suppose it's broken.
Ubuntu 21.04
A: It sounds like you're experiencing two problems here:
*
... | |
doc_14536 | i have an table here:
click here to see table
i want to add a new row
like this "first name"
meta_key = first_name and the coresponding meta_value
where basical looks like this
first name
----------
arnold
gear
john
dude
A: Try
SELECT MIN(CASE WHEN meta_key = 'first_name' THEN meta_value END) first_name,
MIN(... | |
doc_14537 | How do I instruct my Gemfile that vendor/rails is the correct location, and not my system-wide rails install?
So, some people have noted that you can do simply:
gem 'rails', :path => "vendor/rails"
You can also include a version number, e.g.,
gem 'rails', '3.0.3', :path => "vendor/rails"
Both of these depend on what... | |
doc_14538 | I have no option to download images again.
Anyone knows how to convert these files into binary form, or how to repair these files?
A: There is no guaranteed way to repair the files because of the nature of the way ASCII mode works compared to Binary mode.
FTP ASCII mode is designed to convert line endings to the appro... | |
doc_14539 | when( mock.arbitraryMethod( arg1, matcher2 ) ).thenReturn( foo );
I spent about 10 minutes looking over the source at github without seeing the basic pattern that achieves what amounts to quoting the arbitrary method. Somehow the mock object has to record what method was called, and the arguments passed to it, in som... | |
doc_14540 | So my plan is that when displaying a specific auction, I'll link to the external product image. But when I'm showing list of auctions (e.g. a search results page) I'd need to show the thumbnails
I can see 2 options of doing this:
*
*Use the externally hosted images as thumbnails as well. Specify a standardized small... | |
doc_14541 | agegroup <- function(data, column) {
setDT(data)
if (class(data[[column]] == "integer")) {
data[column <20, agegroup := "0-19"]
data[column >= 20 & column < 25, agegroup := "20-24"]
data[column >= 25 & column <30, agegroup := "25-29"]
data[column >= 30 & column <35, agegroup := "30-34"]
data[column >= 3... | |
doc_14542 | At the first time, I made it having no problems. I continue to make some other function in my app. And than I try to test export function again.
And the problem occurred. The problem is in my CSV file, it has a lot empty rows appeared. I checked in my database, it has no null values and in my controller and export.ctp... | |
doc_14543 | def register(request):
...
...
if form.is_valid():
username = form.cleaned_data['username']
password = form.cleaned_data['password1']
email = ''
newuser = User.objects.create_user(username, email, password)
user = authenticate(username=username, password=password)
... | |
doc_14544 | I guess the output of the query does not match v_a VARCHAR2(100), but I don't know what to put there instead. The stored procedure that's being called does a join of several tables and selects more than 20+ different columns belonging to different tables. So what I would want is to just view the output of the query wit... | |
doc_14545 | window.open(StrPageName);
// Here I want to detect that File download is Complete or not and then refresh the //page
location.reload();
Please help me sorry for any mistake
A: You can set cookie from server side that will indicate that file download is complete. There is some jQuery plugin for that... | |
doc_14546 | I am having one array whihc is having 10url of image:-
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWith... | |
doc_14547 | I have a class and in the new method, I want to be able to pass an instance of the class - if an instance is passed, this instance should be used (replace 'me').
An example...
Public Class DataConnection
Implements IDisposable
Public Property SqlCnn As SqlClient.SqlConnection
Private _isNewInstance As Bool... | |
doc_14548 | 60
45
60
60
32
...
There is one number per line in this file.
The other txt file, wds.txt, contains phrases (only words) per line, like the following.
i like to eat candy
and pizza
i also like to
code
....
I want to rearrange num.txt based on the wds.txt by placing numbers that occur back to back in num.txt into one li... | |
doc_14549 | What i'm trying to do is replace the data in the first column and put it into the following hyperlink
This is an example of a file i get each day. Let's call this file input.csv and i want to transform it into output.csv
P.S. The number of rows varies each day.
INPUT.CSV
number|name|age|gender
B24|mike|22|male
B65|john... | |
doc_14550 | https://greenhouse.lotus.com/sbt/SBTPlayground.nsf/JavaScriptSnippets.xsp#snippet=Social_ActivityStreams_Controls_Simple_Stream_All_Extensions
I can see all extensions UI being displayed, but three of four configured extension do not work
1. save in extension does not work
2. commenting in extension does not work
3. de... | |
doc_14551 | For example, server.js:
require('dotenv').config()
const express = require('express');
const app = express()
const PORT = process.env.PORT || 3000;
const path = require('path');
const panelRouter = require("./routes/panel.js")
app.set('view engine', 'ejs');
app.use("/assets", express.static(path.join(__dirname, 'view... | |
doc_14552 | for example:
exchange(dont know what to put here);
Also unsure if i have done the exchange method correctly. The program runs up to the point of asking which currency the user whats to exchange to, but thats only when i comment out the exchange method. Really stuck, any tips?
I think i might have to assign values to e... | |
doc_14553 | I'm pairing it on productid.
I've done a tamper data on the post when you add to basket. The variable that is getting posted is productid.
I've been using This as a guide to output the productid variable. But I'm just not getting a response from the page at all.
The code I am using is {$smarty.request.productid}
The T... | |
doc_14554 | I have been trying for several days to wrap my head around this, but it seems that each configuration I try either comes close, or errors out.
If theres are three views, aaa and bbb and ccc, and each has an index.html.erb, but bbb and ccc have a _content.html.erb partial (signified by the underscore) how can you accomp... | |
doc_14555 | It's naturall to have one main install-files target, that contains everything except the mentioned install -c -d ... But how to construct Makefile so that rule install-files is called at end of install and install-homebrew?
A: If the two targets really do the exact same thing then it sounds to me like you're looking f... | |
doc_14556 | $(document).ready(function(){
function fn_get_natural_dim(){
var width = this.width;
var height = this.height;
var ratiow = width/600;
var ratioh = height/300;
if(ratiow>=ratioh)
{
height = height/ratiow;
$(slide_image).css("width","600px");
$(slide_image).css("heigh... | |
doc_14557 | Now, I wanted to write a data source that takes its value from any given method. It takes a java.lang.reflect.Method instance (and the Object and parameters to invoke it) and uses this to set the data:
@Override
public T getValue() {
if (valueCalculator != null) {
try {
Object result = valueCal... | |
doc_14558 |
A: Installing TFS 2010 Beta 2 today gives an expiry date of June 30, 2010. I'm going to assume this is an absolute date and not one relative to when you install it, but I would be happy to hear anyone else's experience.
| |
doc_14559 | First of all, i'll show how i solved the same issue for Bitmaps (code has been simplified for writting this):
Initially, this code serializes me Bitmaps at the server side:
public String ImageToString(Bitmap img)
{
byte[] byteArray = new byte[0];
using (MemoryStream stream = new MemoryStream())
... | |
doc_14560 | NOTE: I need to pass these values byRef however I am using strings to keep the example simple, in my actual code I am passing objects.
function makeObject(){
var object = [ ];
object.parameter1 = 0;
object.parameter2 = "text";
object.method = function (var1, var2){
console.log(var1+" "+var2);
... | |
doc_14561 | Here is the error:
SqlException was unhandled
What can the problem be?
dataAccess.AddQuestion("Category1", "Question1?", "1");
dataAccess.AddQuestion("Category2", "Question2?", "2");
dataAccess.AddQuestion("Category3", "Question3?", "3");
dataAccess.AddQuestion("Category4", "Question4?... | |
doc_14562 | I want to have the ability to roll-back the changes i.e. return to original state if rule fails at some point in between. Like a DB transaction.
Does prolog provide something along the lines?
If not how would you approach such problem?
thanks
changing db facts are 4-5 different type of facts f.e. :
f1(x,y).
f1(x1,y1).... | |
doc_14563 | Array
(
[0] => Array
(
[Name] => DCL
[Duration] => 18
[Min] => 31
[CostD] => 4
[CostD1] => 4
)
[1] => Array
(
[Name] => Ins
[Duration] => 51
[Min] => 1
[CostD] => 0.00
[CostD1] =... | |
doc_14564 | in some of the videos i get this error:
"the video contains content from... who has blocked it from display on this website"
is there any way to check in PHP if the video is blocked on my website?
thanks
A: By checking for -1 in the onPlayerStateChange event, your code will fire whenever the player has any sort of err... | |
doc_14565 | try {
super.onCreate(icicle);
CookieManager cookieManager = new CookieManager();
CookieHandler.setDefault(cookieManager);
BasicClientCookie netscapeCookie = new BasicClientCookie("UserLoginInfo", "SelectedTab=StudentLogin&RedirectURL=");
netscapeCookie.setVers... | |
doc_14566 | I need to be able to press the lock button multiple times to trigger my app to detect what sequence and timings have been pressed.
For example if I press the lock button on my phone (HTC Radar) five times I want my app (which would be running in the background) to detect that it has been pressed five times and at what ... | |
doc_14567 | <div style="max-width:96px">
<img src="a.png"/>
<img src="b.png"/>
<img src="c.png"/>
<img src="d.png"/>
<img src="e.png"/>
</div>
Which results in:
a b c
d e
If I reduce the max-width of the div to 64px then I will see
a b
c d
e
But, is there way that I can specify a max-height of a div and have the image... | |
doc_14568 | but i get this figure instead: 3750000000000000000000000000000000000
My test
const auctionPrice = ethers.utils.parseUnits("1", "ether");
const [_, userAddress] = await ethers.getSigners();
let fee = (2.5 * auctionPrice) / 100;
const commission = ethers.utils.parseUnits(fee.toString(), "ether");
let commiss... | |
doc_14569 | We Like to create spot request with non-default VPC.
How can we pass non-default VPC in create spot request?
{
:spot_price => spot_price,
:type => 'one-time',
:instance_count => 1,
:launch_group => role,
:launch_specification => {
:image_id => image_id,
... | |
doc_14570 | +--------+-----------------+
| Number | Name |
+--------+-----------------+
| 15 | APPLES |
| 16 | APPLE COMPUTER |
| 17 | ORANGE |
| 21 | TWENTY-1 |
| 291 | 156TH ELEMENT |
+--------+-----------------+
A table of these would comprise up to 100,000 rows.
I'd l... | |
doc_14571 | $('a#galleryArrow').bind('click', function(){
wrapper.children().slice(imageSet,(imageSet + 5)).animate({opacity: 0}, function() {$(this).hide();});
if (wrapper.children(':last-child').is(':visible')) { imageSet = 0; }
else { imageSet = imageSet + 5; }
wrapper.children().slice(imageSet, ... | |
doc_14572 | x <- data.frame(T=c("I","I","C","C"),
R=c(1,0,1,0),
nb_times = c(33,14,42,5))
y <- data.frame(lapply(x, rep, x$nb_times))
I want to compare the proportions of "1" by the two categories of T.
I know I may use prop.test providing the number of "1" in each category of T and the total numbe... | |
doc_14573 | I also created a landing page which includes a form for users to fill out for a free consultation.
How can I make it so that when first-time users go to the homepage, they will be redirected to the landing page? (But clicking on my site logo should still take them back to my regular homepage showing my latest posts.)... | |
doc_14574 | At the beginning the first thing I have to do it to get from the API all the orders, all the stores and all the couriers.
During the life cycle of an order I receive several updates from the API and I handle everything through Server Sent Events.
Once I load the data I put everything in 3 different $scope: $scope.order... | |
doc_14575 | declare @t table
(id int identity, name varchar(50),sub1 int,sub2 int,sub3 int,sub4 int)
insert into @t
select 'name1',20,30,40,50 union all
select 'name2',10,30,40,50 union all
select 'name3',40,60,100,50 union all
select 'name4',80,30,40,80 union all
select 'name5',80,70,40,50 union all
select 'name6',10,30,40,80
... | |
doc_14576 | search.component.ts
import { CoreComponent } from './../../core/components/core.component';
import { SearchDropDownComponent } from './search.dropdown.component';
import { Component,Input,EventEmitter, Output, ViewChild} from "@angular/core";
@Component({
selector:'search',
templateUrl:'app/... | |
doc_14577 | I have the following scheme:
{ "group" :
"items" : [
{
"name": "aaa",
"value": "aaa_value",
"description": "some_text"
},
{
"name": "bbb",
"value": "bbb_value"
... | |
doc_14578 | http://www.beabigrockstar.com/guides/aspnet-mvc-google-plus-login/
But I do not want to upgrade from .Net Framework 4.0 to .Net Framework 4.5
is this possible by any other approach
I am currently using OAuth 1.0 but we need to migrate to google plus signin
because Google is depreciating oAuth 1.0 and gradually stop s... | |
doc_14579 | Makros either move around on slide or input textbox doesn't work (not able to add input)
The slideshow consist of a textbox input box, a commandbutton, and a textbox output box.
When I change settings on the screens (e.g. change reolution, or which screen to be the main screen), I can make it work again.
However, all ... | |
doc_14580 | import java.util.Scanner;
class EncodingTester {
public static void main(String args[]) {
byte largestPositiveByte = 127;
short largestPositiveShort = 32767;
int largestPositiveInt = 2147483647;
long largestPositiveLong = 9223372036854775807L;
long largestPositiveLongPlusOne = 922337203... | |
doc_14581 | TestNG tng = new TestNG();
List<XmlSuite> suites = new ArrayList<>();
for (Deployment deployment : deploymentList) {
tcList = tlsite.getTestCaseClassList();
XmlSuite suite = new XmlSuite();
suite.setName(deployment.getName());
... | |
doc_14582 | I can connect with PostgreSQL database from Report Designer creating a JDBC Datasource, but I want to connect with the DataSource created in BI Server.
How could i do that?
Best regards.
A: You can do that creating a JNDI connection in Pentaho BI Server and Pentaho Report Designer (PRD). I leave this links of my blog ... | |
doc_14583 | Thanks!
A: The best way to do this depends on how the web services are protected.
The main thing to keep in mind is that you don't want to store any secrets on the mobile application.
In an ideal world, these web services would be secured with something like OpenID Connect (OIDC), allowing you to authenticate against ... | |
doc_14584 | const tmpUser: IUser = {
username: "test",
namespace: "test",
password: "test"
}
Object.keys(tmpUser).forEach(property=>{
// Error: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'IUser'.
console.log(tmpUser[property]);
})
// works
console.log(... | |
doc_14585 | g++ -pthread test.cpp
In file included from /usr/include/c++/9/vector:66,
from parcour.hpp:4,
from test.cpp:1: /usr/include/c++/9/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIte... | |
doc_14586 | I see that you need to define these PHPDoc comments and I'm trying to do the same. QuestionList is my "active" class, the MySQLAdapter is my other class which handles the database and SQL queries.
I am trying to define the constructors $sql_adapter parameter as a MySQLAdapter so that when I hit Ctrl + Space I can see m... | |
doc_14587 | app.layout = html.Div(children=[
html.H1("Title", style={
'text-align': 'center'
}),
dcc.Dropdown(
id='slct_type',
options=['type1', 'type2'],
placeholder="Select a type",
multi=False,
value='',
style={'width': '40%'}
),
html.D... | |
doc_14588 | import React from 'react';
import { Avatar, Card, Icon, List } from 'antd';
import { ICON_LIST, LIST_TEXTS, STYLES, USER_UPLOAD } from './constants';
const { AVATAR, CARD_CONTAINER, ICON, USER_LIST } = STYLES;
const { INNER, MORE, UPLOAD, VERTICAL } = LIST_TEXTS
class Home extends React.Component {
state = {
cl... | |
doc_14589 | - (void)addTarget:(id)target action:(SEL)action forControlEvents: (UIControlEvents)controlEvents
for when
However, no I'm doing it all programmatically (in rubymotion, though not necessarily relevant) and looking into the documentation for UITextField I found some delegate methods, which I implemented as follows:
def... | |
doc_14590 | I get the following result in terminal:
GmsCore_OpenSSL
+com.android.org.conscrypt.OpenSSLSocketImpl
7org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl
OpenSSL 1.0.2h 3 May 2016
%s(%d): OpenSSL internal error, assertion failed: %s
OpenSSL DH Method
OpenSSL X9.42 DH method
OpenSSL PKCS#3 DH method
OpenSSL CMAC me... | |
doc_14591 | in log file I am getting prefix value as "INFO - ", How can I avoid this prefix value in
my log file?
My log4jconf.xml is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<appender name="consoleA... | |
doc_14592 | I am prompted for a password. I enter the password that I used during the install, but it is rejected by Postgres with the message:
psql: error: could not connect to server: FATAL: password authentication failed for user "username"
username is actually my windows username.
I have tried:
*
*uninstalling Postgres... | |
doc_14593 | here is my code and raw solution:
iframe id="clock1" src="http://free.timeanddate.com/clock/i52azneg/n2253/szw110/szh110/hbw0/hfc000/cf100/hgr0/fav0/fiv0/mqcfff/mql15/mqw4/mqd94/mhcfff/mhl15/mhw4/mhd94/mmv0/hhcbbb/hmcddd/hsceee" frameborder="0" width="110" height="110"></iframe>
script>
$("iframe#clock1").con... | |
doc_14594 | http://developer.android.com/resources/tutorials/views/hello-listview.html
which tells you to start off extending List activity.
by public class Main extends ListActivity {
Which is based on inflating a textview only layout.
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.co... | |
doc_14595 | User first time make authentication and after that in onCreate method app creates a new user in Database with the name of user + email + status.
But the problem is that it triggering every onCreate and put all values on default. For example, if I change status in settingsActivity it is changing in the database and ever... | |
doc_14596 |
A: I am assuming you are using some textual model like the bag of words model.
From my experiments, you usually don't get good results when changing from one domain to another (even if the train data set and the test are all products, but of different categories!).
Think of it logically, an oven that gets hot quickly... | |
doc_14597 | The using ajax post the result to the controller for processing. The issue I currently have is I cannot get the controller to accept the data coming from the ajax post.
I am making use of jQuery and json to make the ajax call.
function removeRooms() {
var jdata = { 'mRooms': [] };
$('input:checked').each(functi... | |
doc_14598 |
A: Bitmap background = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_4444);
Canvas canvas = new Canvas(background);
canvas.draw(yourSmallImage, posX, posY, null);
....
c.drawBitmap(background, 0, 0, null);
This will use 'background' as a scratchpad, then write the completed background image to the current can... | |
doc_14599 | https://phppot.com/wordpress/how-to-limit-login-attempts-in-wordpress/
I have added this code in the functions.php file but when I try to login it shows me
Fatal error: Uncaught Error: Class 'Api\WP_Error' not found in C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php(287)
I try to find a solution for this iss... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.