id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_43300 |
Access violation at address 27158679 in module 'bds.exe'. Read
of address 00000010
It installs OK on previous versions up to XE8.
I tried putting showmessages() at the start of the register procedure but AV error still occurs before the registration.
Has anyone found a work around for this ?
A: The GetIt Package M... | |
doc_43301 | So in my code below, od which is the ordered dictionary produces:
OrderedDict([(2, (2, 1)), (3, (3, 1)), (4, (2, 2)), (6, (3, 2))])
import collections
list = [2,3]
cost = 0.64
markup = 0.25
a = [(i*j) for i in list for j in range(1,3)]
b = [(i, j) for i in list for j in range(1,3)]
keys = a
values = b
d1 = dict(zi... | |
doc_43302 | use tokio::signal;
pub async fn shutdown_signal() {
let ctrl_c = async {
signal::ctrl_c()
.await
.expect("failed to install Ctrl+C handler");
};
#[cfg(unix)]
let terminate = async {
signal::unix::signal(signal::unix::SignalKind::terminate())
.expect(... | |
doc_43303 | The issue is it doesn't seem that AnimatedList supports keepAlive and I haven't come across any alternatives. I don't want the widgets to be recycled because if a message is playing and I scroll the message in and out of view, I want the message to keep playing AND animating and right now I instantiate an audio player ... | |
doc_43304 | I have a main web-site with a list of employees retrieved as a JSON from a backing service. I am using Handlebars engine for templating and it looks like follows.
JSON
[{"FirstName":"Tom","LastName":"Stephens","BirthPlace":"London","Gender":"M","OIB":"12345678901","CurrentPlace":"Berkeley","Department":"21510"},
{"Firs... | |
doc_43305 | I just downloaded the EPPlus library this morning so I might be overlooking something basic. I also checked the sample project but didn't see anything related to this question in it.
Thanks!
A: Using the Excel Object Model, you'd use Worksheet.UsedRange for that.
Using EPPlus, you'd use WorkSheet.Dimensions.Start.Row... | |
doc_43306 | #!/bin/sh
HOST='mininet-vm'
USER='mininet'
PASSWD='mininet'
FILE='index.html'
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
ls
pwd
get $FILE
quit
END_SCRIPT
exit 0
The output of ls and pwd is redirected to the file but the output of get is not redirected. I want this to be saved in the file, too.
Outp... | |
doc_43307 | Thank you for answering this question.
A: add this in manifst
<uses-permission android:name="android.permission.SET_WALLPAPER" />
and in class
WallpaperManager myWallpaperManager = WallpaperManager.getInstance(getApplicationContext());
try {
myWallpaperManager.setImageResource(R.raw.my_photo);
} catch (IOExceptio... | |
doc_43308 | I've added a couple of environment variables to my virtualenv postactivate file, for example:
export DATABASE_USER="root"
export DATABASE_PASSWORD="12345678"
I then assign those variables in my settings.py using os.environ['DATABASE_USER'], for example
DATABASE_USER = os.environ['DATABASE_USER']
Since my Apache virtu... | |
doc_43309 | Here is Makefile content
all:
flex -o scanner.cpp scanner.l
bison -o parser.cpp parser.y
g++ -g main.cpp scanner.cpp parser.cpp interpreter.cpp command.cpp -o a.out
clean:
rm -rf scanner.cpp
rm -rf parser.cpp parser.hpp location.hh position.hh stack.hh
rm -rf a.out
When I run command make, I g... | |
doc_43310 |
'data.frame': 36993 obs. of n variables:
$ klasse : num 1 1 1 1 1 1 1 1 1 1 ...
$ Start_time: chr "23:56:09.000" "23:56:09.000" "23:56:09.000" "23:56:09.000" ...
$ Start_date: Date, format: "2013-08-31" "2013-08-31" "2013-08-31" "2013-08-31" ...
$ Milk : num 23.5 23.5 23.5 23.5 23.5 23.5 2... | |
doc_43311 | #include <iostream>
#include <string>
#include <vector>
#include <fstream>
Would I need to include these again in player.cpp, where I flesh out the functions declared in the header file? If I don't, do I need to include them when I run main.cpp, which calls the functions from my various .cpp's and .h's
School never re... | |
doc_43312 | enter image description here
I didn't give the domain settings in the photo. Although I gave the main domain name from the Cookie's domain settings after the photo, it still did not work. SSL available on main and sub domains.
web api code:
TokenHandler tokenHandler = new TokenHandler(configuration);
Token token = to... | |
doc_43313 | BUT when i use autocomplete at second row it's not working
Please Help I'm tired about this
i try some tutorial here but dont work, what happened with my code
Here's https:*//jsfiddle.net/qxpj0j2n
A: You are creating the element with the same id and you are using the same id.
Id must be unique
To apply the autocomp... | |
doc_43314 | I tried in python with paramiko package but it is very slow to connect and read the Unix files. That's why I chose Java.
In Java when I read the file I am facing memory issues and performance issues.
My requirement: first read all records from Unix server file1, then read second file records from Unix server and finall... | |
doc_43315 | I tried this:
String str1="Hello[World[Test"
String str2=str1.replaceAll("\\[","")
Error details:
2021-04-06 01:11:33,087 ERROR o.a.j.e.JSR223PostProcessor: Problem in JSR223 script, JSR223 PostProcessor
javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Scrip... | |
doc_43316 | I have many videos on a canvas ... I need to pause the playing video if another one start playing ?????
thanks for any answer
this is my code for more explanation ...
html
<div class="cont">
<canvas id="myCan" class="cont"></canvas>
<div class="mainVidCont">
<video id="vid1" class="myV... | |
doc_43317 | Edit: Let me be more clear. I am aware that the same code with different compilers or different machines can return different results. What I am looking for are two mathematically equivalent expressions that I can compare in my Python interpreter/C++ program/Whatever and get an unexpected result.
A:
are there mathema... | |
doc_43318 | It executes perfectly when i run in my local.
Gives an error when i run it on the grid through Jenkins.The server is connected to hubs on which the tests are executed.
Help me out please, i been working on this for the past 1 month.
This is the error i been getting.
[java] javax.mail.NoSuchProviderException: pop3s
... | |
doc_43319 | #include <iostream>
#include <string>
#include <vector>
#include <numeric> //for accumulate
int sumUpTo(const std::vector<int>& vec, const std::size_t total) //const prevents parameters to not be modified in function.
{
if (total > vec.size())
return std::accumulate(vec.begin(), vec.end(), 0);
return... | |
doc_43320 | However this time local is working fine using docker-compose and tests are running but when same docker-compose file and test code is run in azure pipeline, I get this
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting constructor, java.lang.NullPointerException
... | |
doc_43321 | I created a new controller and added the basic required code for Create and Edit for the data. However when the clicking on the link to edit the a particular record the following error is generated:
The parameters dictionary contains a null entry for parameter '[MyId]' of non-nullable type 'System.Guid' for method 'Sy... | |
doc_43322 | so after clicking the 1st element in page1, I apply wait function for the second element in page2.
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("page2 element xpath")));
driver.findElement(By.xpath("page2 element xpath")).click();
But once I click the 1st element in page1 wait is waiting for the second ... | |
doc_43323 | contacts: ["test@gmail.com", "test2@gmail.com" ]
PSQl query code I am trying:
- name: Insert to db
postgresql_query:
db: xxx
login_user: xxx
login_password: xxx
query: INSERT INTO test_table (id, contacts) VALUES (%s, %s)
positional_args:
- 1
- '{{ contacts }}'
Error:
Invalid input synta... | |
doc_43324 | <div id="nav">
<ul>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
</ul>
</div>
CSS:
#nav
{
width: 800px;
padding: 0px;
margin: 0 auto;
list-style-type: none;
}
#... | |
doc_43325 | I know how to deploy the Frontend using a Loadbalancer service & Ingress to expose the Frontend to the public internet.
The question i have is about how the backend API service will communicate with the frontend.
I want to deploy the backend API using ClusterIP service,
so it's only accessible to the Frontend from with... | |
doc_43326 | I've managed - thanks to help from others - to filter a simple object, but now I need to apply the same thing to a more complex object.
// Simple object query:
var recipes = {
'soup': {'ingredients': ['carrot', 'pepper', 'tomato']},
'pie': {'ingredients': ['carrot', 'steak', 'potato']},
'stew': {'ing... | |
doc_43327 | But, the website I'm attempting needs javascript rendering.
I am able to render webpage javascript using requests-html. Now how do I pass my session from requests-html to robobrowser or mechanize ?
I am able to solve it using Selenium but I would prefer either Robobrowser or mechanize for that.
To be exact, I want t... | |
doc_43328 | public class Client {
public static void main(String[] args) {
Socket s = null;
InputStream is = null;
OutputStream os = null;
try {
s = new Socket("localhost", 3000);
is = s.getInputStream();
os = s.getOutputStream();
int read;
... | |
doc_43329 | Please let me find api to create wallet api using paypal. Thanks.
| |
doc_43330 | For example, I'll use the string "password" .
When it's converted to an ascii byte array, I get a base64 encoded hash of X03MO1qnZdYdgyfeuILPmQ==
When it's converted into a unicode byte array, I get a base64 encoded hash of sIHb6F4ew//D1OfQInQAzQ==
All my passwords are stored in an md5 hash that was applied to an asci... | |
doc_43331 | REQUIRES "Min number of away talks:" AS $iMinNumAwayTalks
LOOP FROM "Home Talks" NODATERANGE WHERE "Last Given" ISMOREOREQUAL "$Today" SORTBY "Last Given"
SHORTDATE_FIELD "Last Given"
TAB =5>
TEXT "Week: "
VARIABLE_FIELD "Last Given" "$iWeekNo#CUSTOMDATE[%W]"
TEXT "$iWeekNo"
$iAwayTalkCount = 0... | |
doc_43332 | I can do the 'Assigning' part using https://graph.microsoft.com/v1.0/users/{id}/assignLicense which works until there aren't any spare licences, where it returns: "Subscription with SKU {id} does not have any available licenses."
To make this a fully automated process, i need to:
*
*Automatically purchase a new Powe... | |
doc_43333 | http://tedmuller.us/Math/img/Taylor-arcsin.gif
but for some reason its not working. when i enter x=1 i get an output of 1.19 rather than pi/2.
here's my code:
#include <stdio.h>
#include <conio.h>
void main()
{
int i,n;
double x,sum,last;
printf("Please enter the x you wish to calculate arcsin(x) for \n");
... | |
doc_43334 | Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: Cannot find table
0.
The error part of the code is " dsReport.Tab... | |
doc_43335 | This is what i got by now :
var n = window.prompt("Insert number of numbers", "")
var nr = new Array(n)
for (i = 0; i < n; i++) {
nr[i] = window.prompt("Number: ", "")
}
for (i = 0; i < n; i++) {
if ((i + 1) % 2 != 0) {
if (nr[i] % 2 == 0)
document.write("Even numbers on odd position are: ", nr[... | |
doc_43336 | This class has a two strings and a List in it.
I know to read and write the strings using WriteElementString & ReadElementContentAsString.
However, I'm lost on how to read & write the List in the ReadXml & WriteXml methods.
How do I do this, or is there a way to serialize and deserialize the object while maintaining it... | |
doc_43337 | Let's say the EWWW image optmizer, for instance: it just optmize the images, in the back-end. It has a admin interface to optimize the images, but the end-user doesn't use it at all. Still it gets loaded in each page visit?
I'm not sure if I'm making myself clear. Hope so.
A: As far as I know there is no way to specif... | |
doc_43338 |
//Closure
function createLI(tags) {
return function(...args) {
if (args.length > 1) {
return args.map((iteam) => {
return "<" + tags + ">" + iteam + "</" + tags + ">"
})
} else {
return "<" + tags + ">" + args + "</" + tags + ">"
}
}
}
var tag = createLI('li');
... | |
doc_43339 | Let's say that one of the containers is called "stack". Now what I want to do is call:
docker-composer run stack ssh user@stackoverflow.com
My public key (which has been added to stackoverflow.com and which will be used to authenticate me) is located on the host machine. I want this key to be available to the Docker M... | |
doc_43340 | Example: plan a long distance bike tour and find hotels close to the route each 100km.
How can I get a coordinate on a route that is 100km (on route) away from the last waypoint to automatically find POIs near that coordinate?
At least, what is the name of the problem I am facing so I can seach for a solution?
Thanks i... | |
doc_43341 | My program works well on the eclipse but when I want to make an executable jar file and try to run it from the command window, it throws an IllegalArgumentException. My package is as follows:
And my code:
public JLabel getLabel() {
JLabel label = null;
try {
String address = "assets/" + pieceName + "... | |
doc_43342 | class ConfigVariable():
""" single configuration variable with some attributes """
def __init__(self, value, description=None):
self.value = value
self.description = description
class ConfigManager(dict):
""" holds several configuration variables """
def __getattr__(self, name):
... | |
doc_43343 | So I am using
.container {
width:400px; //or something else
overflow-x:hidden;
}
.container img {
max-width:100%;
height:auto;
}
But that scales my imgs height not proportionally correct. What do I do wrong?
A: Add 100% width to the img selector:
.container{
width:400px; //or something else
overflow-x:hidden;... | |
doc_43344 | @Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
Menu eventMenu = mNavigationView.getMenu();
eventMenu.add(R.id.events,Menu.NONE,1,"newEvent").setIcon(R.drawable.hangouts_white);
// extra code
}
However, I can perfectly use this add method in onCreate() and onResume(). But, agai... | |
doc_43345 | Example:
from Tkinter import *
app = Tk()
app.geometry("500x500")
def page2():
app2 = Tk()
app2.geometry("500x500")
Button(app, text="button", command=page2).pack()
app.mainloop()
Window one shows information1 and window 2 shows information2. I want the button to change information1 into information2, inste... | |
doc_43346 | def openFile():
try:
os.startfile(r"C:\Users\user\Documents>hi.txt")
except Exception as e:
print(str(e))
A: The problem was that it was running too fast
I added a time function and it's running perfectly now
while os.startfile(r"C:\Users\user\Documents\hi.txt"):
print("I'm going to wait 5... | |
doc_43347 | Thank you very much for any help.
<asp:Panel ID="PanelReviewSite" runat="server" CssClass="Panel" Visible="false">
<table>
<tr>
<td align="center">
<div id="TA_sswidecollectreview991" class="TA_sswidecollectreview">
... | |
doc_43348 | SCSS
.one{
&__two{
color: red;
&--alt{
@extend .one__two;
}
.super &{
color: blue;
}
}
}
Outputed CSS:
.one__two, .one__two--alt {
color: red;
}
.super .one__two, .super .one__two--alt {
color: blue;
}
Expected CSS
.one__two, .one__two--alt {
color: red;
}
.super .one__two{
... | |
doc_43349 | Server is setup as follows:
*
*Ubuntu Mavrick
*Nginx 0.8.54
*PHP (FPM) 5.3.5
*Zend v2.3.0
Under php.ini (for both fpm and php proper) the max-upload size and post-max is set to 20mb. Form field has a max file size of 200000000
Any ideas as to what this could be? Is this an nginx problem?
A: In nginx server ... | |
doc_43350 | Now - I need to remove all these buttons at once.
I have set the tag of each button to be very high and grouped by type of button that was dropped.
How do I loop through all the button on the view and remove them if they fall into the right classification??
A: This removes all UIButtons. Adopt it to your needs. If you... | |
doc_43351 | If you look at the example below here is what I would expect: call login, on success it calls setRefreshToken(responseToken) then calls refresh() which references refreshToken set from setRefreshToken. What actually happens is refreshToken is undefined inside of refresh().
I know setState is async but I haven't run in ... | |
doc_43352 | namespace CSDDashboard.Controllers
{
public class ApiapplicantsController : Controller
{
private readonly CSSDDashboardContext _context;
public ApiapplicantsController(CSSDDashboardContext context)
{
_context = context;
}
public async Task<IActionResult> Create([Bind("Id,ApiRequestDate... | |
doc_43353 | I tried UART1, UART2 with and without interrupts and got the same problem all the time.
It appeared that in order to send 1 byte I need to split it to two 4 bits with shift
code:
#define FCY 16000000
#define BAUDRATE 9600
#define BRGVAL ((FCY/BAUDRATE)/16)-1
U2MODE = 0;
U2STA = 0;
U2MODEbits.STSEL = 0; // 1-Stop bi... | |
doc_43354 | If it is available from Maven, what are the dependency coordinates? Thanks.
A: We haven't uploaded vert.x into Maven Central yet, but it is near the top of the TODO list.
I'll update this post when it's done.
[UPDATE]
The next release is imminent and will feature a Gradle-based build and Mavenised modular components, ... | |
doc_43355 | I have server A, running node.js and using socket.io for communicating with clients (web browsers). This all is running fine and dandy.
However, now that I have server B, which also needs to connect to server A through websockets, I have hit a wall. None of the node.js websocket clients I've found won't work with the s... | |
doc_43356 | To give a toy example of the problem, lets say I have a Rectangle and three RadioButtons named "Red", "Blue" and "Green", how can I animate Rectangle's Fill color so that it is corresponding to checked radio button (e.g. whenever you click "Blue" and rectangle turns Blue)?
<StackPanel HorizontalAlignment="Left">
<R... | |
doc_43357 |
alter table /databasename/.dbo.cp_hh_foo..." failed with the following error: "Incorrect syntax near '@P1'.
The problem appears to be in the final execute SQL statement. The first two execute SQL statements work fine. I think I've made a mistake in my variable/parameter mappings, but I'm not sure.
My data flow looks ... | |
doc_43358 | This is the code:
# -*- coding: utf8 -*-
import matplotlib.pyplot as plt
import networkx as nx
socialNetworl = nx.Graph()
socialNetworl.add_nodes_from([1,2,3,4,5,6])
socialNetworl.add_edges_from([(1,2),(1,3),(2,3),(2,5),(2,6)])
labels = {1:'King Bolaños', 2:'Lancelot', 3:'shopkeeper', 4:'dead parrot', 5:'Brian', 6:'Si... | |
doc_43359 |
It all started when I tried to upgrade to React Native 0.26 ( upgrading to 0.29 would be a huge change set to for our codebase, so doing this in multiple steps).
I have followed the documentation to import Component from react and the rest from react-native
I have updated to the latest dependencies or atleast as far a... | |
doc_43360 | I m trying
SELECT Column
FROM Table1
WHERE REGEXP_LIKE (Column, '^[A-Z]');
but return all the values not only the thes who star with capitals letters
*
*I tryed differents variantes but nothing work for me.
cann enyone help me ?
Thanks in advance
Enrique
A: You can do this like:... | |
doc_43361 | Swc
|-- node_modules/
|-- .babelrc
|-- lerna.json
|-- package.json
|-- Swc.Customer/
|-- package.json
|-- src/...
|-- Swc.Company/
|-- package.json
|-- src/...
|-- Swc.Admin/
|-- package.json
|-- src/...
|-- Swc.Shared/
|-- src/
|--container/...
|--redux/...
|--utils/... | |
doc_43362 | The call GetURLByOS takes 2 methods (1. string AuthenticationInfo , 2. int osBit). As I'm debugging, I can see the authentication info. The osBit's value is 8 (for 64bit) when calling into the web service. But its value is lost (0) when actually in the web service.
Can someone help me figure out why the integer value i... | |
doc_43363 | After clicking on the link, the pop-up window is opened. I use switchTo.window method for going to pop-up window. But when I try to go back, my test is delayed on this operation and doesn't go on.
Some code:
link.click(); //Open pop-up window
Object[] windows = driverIE.getWindowHandles().toArray();
driverIE.sw... | |
doc_43364 | i have multilevel marketing software data in which a person may join many other person and again joind person will do the same.
i have tried these code
protected void load_data()
{
strQuery = "select * from redjoining where id=995";
cmd = new SqlCommand(strQuery);
dt = dbcon.GetDa... | |
doc_43365 | -
categories
sub categories
topic
I want to sort all the categories after user login as seen in the pictures. When I click on any of these categories, sub-categories need to be opened. And when clicking on any of these sub-categories, I want the subject and the content of the subject to be opened.PM and info informatio... | |
doc_43366 | var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var fs = require('fs');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser'... | |
doc_43367 | I already succeeded in writing stories itself in TS, and now would like to write storybook config in TS.
A: I finally manage to make it works.
*
*Configs directory should be added to include option of typescript preset and tsconfig.json
*Set module resolution to "node", because for some reasons it got set to "cla... | |
doc_43368 | I need to clone the Linux kernel onto the internal server in the closed area
Confused with the steps.
Step 1: Clone kernel, git clone https:/some/place/on/network
Step 2 - Sneaker net into closed (private network) room.
Step 3: Using web page - create the repo on the internal server
(This server cannot clone directly -... | |
doc_43369 | {"schemaValidationMessages":[{"level":"error","message":"Can't read from file https://xx.xx.xxx.xx:9001/static/swagger.json"}]}
I converted the YAML that got generated from Swagger Editor into swagger.json and used the flask_swagger_ui Python library to link the swagger.json with my API code. This swagger.json is the o... | |
doc_43370 |
$(".btn").on("click", function () {
$(".main-div").toggleClass("active");
})
.main-div.active {
background: red;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="one">
<div class="btn">ClickMe1</div>
<div class="test-div">test</div>
<div class="mai... | |
doc_43371 | Thanks,
Nix.
A: You could use image magick to combine the images to an animated gif. Here is explained how: http://blog.gotofritz.net/geekery/combining-images-imagemagick/ (halfway down the page), but you should consult http://www.imagemagick.org/script/index.php too.
ImageMagick is installed on most Webspaces.
You wi... | |
doc_43372 | const activity = MessageFactory.text('test') as Activity;
const ref = await TeamsInfo.sendMessageToTeamsChannel(turnContext, activity, teamsChannelId, process.env.MICROSOFT_APP_ID);
.
I have also attempted creating a new client with Microsoft App credentials and passing conversation params:
con... | |
doc_43373 | The search.php shows all the records if I hardcode $searchTerm='a';
Probably it is something in the jQuery I am missing.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>test</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//co... | |
doc_43374 |
*
*For work pc, i want it to prompt for password
*For home pc, I don't want it to prompt for password
In my home pc, i haved added the SSH keys and i am able to push,pull etc. without any issues.
Now When i try to do a clone from my work pc, it just says permission denied (public key) I
I actually expected that it... | |
doc_43375 | The first one is to give support to IE for CSS3 transitions and is taken from CSS3 Hover Transition. The code used is
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js"></script>
<script type="text/javascript" src="scripts/jquery.hoverTransition.js"></script>
The seond on... | |
doc_43376 | Core 1
mov [_x], 1; mov r1, [_y]
Core 2
mov [_y], 1; mov r2, [_x]
Now the unexpected results without memory fences would be that both r1 and r2 can be 0 after execution. In my opinion, to counter that problem, we should put memory fence in both codes, as putting it to only one would still not solve the problem. S... | |
doc_43377 |
A: Assuming that the data is stored in a pandas DataFrame called 'df',
your column '% Returns' would be generated with:
df['perc_Returns'] = df['VIXCLS'].pct_change()
the fourth column in your excel file is produced with:
df['Cumulative_Returns'] = 1000 * (1 + df['perc_Returns']).cumprod()
and the column 'Cumulativ... | |
doc_43378 | function job_search() {
// Initialising output
$output = 'SOME STUFF';
// Table header
$header = array(
array('data' => 'Description'),
array('data' => 'Location', 'field' => 'job_location_display'),
array('data' => 'Specialty', 'field' => 'specialty_description'),
array('data' => 'Job Type', '... | |
doc_43379 | "Title of the post"
<span class="post-date">1 jan 2000</span>
<span class="post-tag">Tag</span>
</h2>
What I want is only the post title "Title of the post"
Title = document.getElementsByClassName("post-title");
Title[0].innerText
What I'm getting is "Title of the post 1 jan 2000 Tag"
A: you could use... | |
doc_43380 | ("The maximum number of messages to return. Amazon SQS never returns more messages than this value but may return fewer. ")
to fetch messages at once, So is there any way we can run multiple parallel processes
in nodejs which can handle many sqs messages.
Any npm package available for that?
A: Async might not be the r... | |
doc_43381 | See this example, I create some data,then a formula notation.
The formula works on a randomForest by itself.
But fails when used in a foreach parrallel loop...?
# rf on big training set
# use parallel foreach
library(foreach)
library(doMC)
registerDoMC(4) #change the 2 to your number of CPU cores
# info on parrallel... | |
doc_43382 | error while loading shared libraries: cv2.so: cannot open shared object file: No such file or directory
I fixed this problem by copying cv2.so into /usr/local/lib, putting
LD_LIBRARY_PATH=/usr/local/lib ; export LD_LIBRARY_PATH
into the .bashrc file of my home directory and running
. .bashrc
in my home directory. H... | |
doc_43383 | setPassword
setRecoveryQuestion
activateUser
When i check the user they're ACTIVE but when i try and log in the UI challenges me to select a picture, recovery answer etc.
What's the correct order/way to complete a user created w/o credentials so that they only need to use their username and password?
A: You may have t... | |
doc_43384 | function get_cli_params() {
$params = getopt( 'g', array( 'xpub:', 'xpubfile:',
'outfile:',
'derivation:',
'numsig:',
'format:', 'cols:',
'gap-limit:',
... | |
doc_43385 | The image file is getting uploaded but when I try to view that file its showing broken image don't know what exactly is the issue.
The upload is done in the AsyncTask
Android Code
FileInputStream fileInputStream;
HttpURLConnection connection;
URL url;
DataOutputStream outputStream;
int bytesRead,byt... | |
doc_43386 | <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
Here is the full file AndroidManifest.xml
There is nothing more. Now please take a look at the list below my app desc... | |
doc_43387 | def unexpected_exceptions(exctype, value, tb):
exception = ''.join(traceback.format_exception(exctype, value, tb))
_logger = logging.getLogger('unexpected_exceptions')
_logger.setLevel(logging.DEBUG)
f_handler: FileHandler = logging.FileHandler(os.path.join(BASE_PATH, 'log ' + CURRENT_VERSION + '.log')... | |
doc_43388 | On the Rails backend side I've created a friendship table,
create_table "friendships", force: :cascade do |t|
t.integer "user_id"
t.integer "friend_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
A friendship controller,
class FriendshipsController < ApplicationController
... | |
doc_43389 | The problem is that every time I open powershell it now complains that my profile is insecure. I don't really want to go down the route of setting the execution policy to Bypass just so I can load my profile.
Is there something I can set in the file itself so that PowerShell knows it hasn't been downloaded off the inte... | |
doc_43390 | For example, in coldfusion\lib I have these jars:
*
*commons-collections.jar
*commons-collections.3.1.jar
*commons-collections.3.2.jar
Then in another location \Coldfusion\cfusion\lib, I have:
*
*commons-collections.jar
Thanks in advance for any help or suggestions.
A:
what are the locations coldfus... | |
doc_43391 | How can I make it to return the table with the 5 columns and the values??
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[paBltBuscarBoletasASA] @id_Asa int
-- Add the parameters for the stored procedure here
AS
DECLARE @Query int
CREATE TABLE #tablaTemporal (Numero_Pregunta varchar, Num... | |
doc_43392 | Coming straight to the point: How can we indent Log entries that are managed by Log4Net? When a Web API receives a request, there are other methods calls involved as well. i.e. from Method A() to Method B().
My current log file looks like the following screenshot:
Could we some how make our log more readable and disp... | |
doc_43393 | if petname['hungry'] == True:
TypeError: 'type' object is not subscriptable
Again, I have a very limited amount of knowledge right now, so I don't know if my program is close to being usable, or if it's just useless garbage. I'll post my code here. I'd greatly appreciate some corrective criticism; or, heck, if som... | |
doc_43394 | This wrapper is inside of a vertical container with fixed width (cant be modified), which is used to align the wrapper with their siblings.
I am using an after pseudoelement to achieve this. The problem comes when I try to position the tag outside the wrapper container, which makes the tags not render.
Some example cod... | |
doc_43395 | int a = 1, b = 1, c = 1;
System.out.println(a + ++a);
System.out.println(b++ + ++b);
System.out.println(c++ + c);
The output is:
3
4
3
This is what I think is happening, but the output doesn't match up:
1. ++a -> +a -> 4 = 2 + 2
2. ++b -> +b -> 4 = 2 + 2
3. c -> +c -> 2 = 1 + 1
A: Unary post and pre-increment have ... | |
doc_43396 | Note: no text is showing up in design view because I have conditional background color formatting and white text.
Design View
Also: it will not allow me to embed the image.
| |
doc_43397 |
2>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(349,2): error : Could not locate Java 6 or 7 SDK. (Download from http://www.oracle.com/technetwork/java/javase/downloads.)
How do I tell Xamarin the new location of my Jdk?
A: If you are using Xamarin Studio, you will need to go to Xama... | |
doc_43398 | pub struct Input {
a: Option<i32>,
b: Option<i32>,
c: Option<i32>,
}
For each field in input if the value is None, the function will immediately return Ok(None) and if there's a value, the function will unwrap it and proceed with further logic:
fn process(input: Input) -> std::io::Result<Option<i32>> {
... | |
doc_43399 | I want to add a listener when user click on listView row,
1 - The textView become checked.
2 - If there is another textview in the list which were checked, become unchecked.
This is the code which I written until now:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstance... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.