id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_27000 | Newtonsoft.Json.dll : error IL2104: Assembly 'Newtonsoft.Json' produced trim warnings. For more information
see https://aka.ms/dotnet-illink/libraries [C:\Users\pclay\scs_link\link\StudioLink\StudioLink.csproj]
I have been using Dotnet 7 trimming, but the documentation does not make it clear how to exempt certain thir... | |
doc_27001 | com.topologi.diffx.xml.UndeclaredNamespaceException: The namespace URI "urn:schemas-microsoft-com:office:office for allowincell" has not been mapped to any prefix.
I eliminated the possibility of errors introduced by the tranformation process by comparing the original document to itself using this method (based on this... | |
doc_27002 | I should be returning True when I want a file to show up in the dialog and False when I don't. The trouble is that when I return based on the custom checking I get no results. But when I return True always (even when I execute the check and print out based on it), I see all of the expected files. If it weren't for the ... | |
doc_27003 | Thank you very much in advance!
code snippet 1: archors
private func aulayoutViews() {
view.addSubview(pageControl)
view.addSubview(navigationBar)
//MARK: navigationBar
PageViewController.navigationBarHeight = 44
navigationBar.translatesAutoresizingMaskIntoConstraints = false
navigationBar.wi... | |
doc_27004 | Where would I put this code?
I am tempted to put it in didRotateFromInterfaceOrientation or shouldAutorotateToInterfaceOrientation or willRotateFromInterfaceOrientation.
A: Anyway, since no one has any opinion, I ended putting it inside willRotateFromInterfaceOrientation and seems to be working fine.
| |
doc_27005 | quadraticRoots a b c = if d < 0 then error "0" else (x, y)
where
x = e + sqrt d / (2 * a)
y = e - sqrt d / (2 * a)
d = b * b - 4 * a * c
e = - b / (2 * a)
The above code gives the f... | |
doc_27006 | <p>ABC</p>
and the encoded version is following code;
var erp = new Array;
erp[0] = 1013988929;
erp[1] = 1111702575;
erp[2] = 28734;
var em = '';
for(i=0;i<erp.length;i++){
tmp = erp[i];
if(Math.floor((tmp/Math.pow(256,3)))>0){
em += String.fromCharCode(Math.floor((tmp/Math.pow(256,3))));
};
tm... | |
doc_27007 | <img src="http://hss.fullerton.edu/philosophy/Red%20Square.gif" id="test1" />
<table id="test2">
<tr><td>Test</td></tr>
</table>
I have an image of a red square and I want the table to overlap the bottom of it. Here is the CSS:
#test1 {
width: 42px;
height: 42px;
display: block;
margin-left: auto;
... | |
doc_27008 | Is there any way how to do it or am I doomed to failure?
Thanks for any help.
| |
doc_27009 | from tkinter import *
class menu:
def __init__(self, master):
self.master = master
button_1 = Button(self.master, text = 'test', command = self.correct).pack()
def correct(self):
button_1.config(state = DISABLED)
def window():
root = Tk()
menu(root)
root.mainloop()
if __na... | |
doc_27010 | On Linux server User Claims are not passing from Auth to API. On Windows machine everything works fine (under VS2017 and using CMD)
I have Controller with special authorization attribute:
[Authorize(Policy = "identity")]
[Route("routes")]
public class RoutesController : Controller
{
[HttpGet]
public IActionResu... | |
doc_27011 | http://www.windowsnetworking.com/kbase/WindowsTips/WindowsServer2008/AdminTips/Admin/DefaultDynamicPortRange.html
However, netsh doesn't seem to exist in CE 7. It it a catalog item I've not found yet? Can I achieve the same thing with the registry and if so how?
Edit: I'm developing an application in C++. It's possible... | |
doc_27012 | The list of decimals to display in a drop down box
public static List<decimal> MyCustomFieldOptions
{
get
{
var x = new List<decimal>();
x.Add(0.10m);
x.Add(0.25m);
return x;
}
}
The property on the view model:
[UIHint("MyCustomField")]
public decimal MyCustomField { get; s... | |
doc_27013 |
*
*Injecting the parent component into the child components.
*Pass data through mapped attributes.
The first solution introduces a lot of coupling, and the second solution is verbose and messy. What I'd like to do is create a simple model class that the parent component would instantiate and bind so that child c... | |
doc_27014 | :Person1 :hasLocation :Location1.
Am I allowed to create other triples with :hasLocation as subject/object? (examples below):
:hasLocation rdf:Type :LocationPredicates.
:hasLocation rdfs:label "someLabel".
:hasLocation rdfs:comment "someComment".
:hasLocation :someProperty :otherObject
| |
doc_27015 | It keeps telling me Relaying Denied. I've written up an extensive troubleshooting support page on this if anyone would like to help me.
I would GREATLY appreciate any help you can provide.
https://www.notion.so/Azure-Web-App-Ghost-Blog-Email-Issue-ef9221fde09d47e29a211ea45357563e
A: On Azure App Service, for sending ... | |
doc_27016 | I created a mouseover function on this image element and it's working fine.
The question is:
If the mouse is ALREADY over the element when the document loads itself, the mouseover function doesn't trigger (I need to mouseout and then mouseover again in order to trigger it).
Is there any way to check in the $(document).... | |
doc_27017 | int[] numbers = new[] { 1, 2, 3, 4, 5 };
string[] words = new string[] { "one", "two", "three", "four" };
var numbersAndWords = numbers.Zip(words, (n, w) => new { Number = n, Word = w });
foreach (var nw in numbersAndWords)
{
Console.WriteLine(nw.Number + nw.Word);
}
I would like to know a way of getting it merge... | |
doc_27018 | "parent_ids": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
... | |
doc_27019 | When the div does slide down, I want the height to be height: 35vh;.
I am unsure of what I am doing wrong. Does anyone see the issue?
$('#serviceClick').click( function () {
$('serviceNav').addClass('active').slideDown();
console.log('The click is working');
});
#serviceNav {
width: 100%;
top: -35vh;
z-... | |
doc_27020 | My code:
model = AutoEncoder(num_items, args.inner_layers, num_items, da=args.num_attention, dropout_rate=args.dropout_rate)
item_vector = self.linear1.weight[:, T.LongTensor(batch_item_index[0].astype(np.int32))]
inner_product = item_vector.t().mm(self.linear4.weight.t())
I tried to make the index start from 0 aft... | |
doc_27021 | I've looked at each one of the components on: https://react-select.com/components and not sure which one would best fit my needs.
From looking at the list of components, I believe the option component is meant for something like that and would probably work but i'm not sure. Can someone validate my thought?
A: React-s... | |
doc_27022 | class Song:
def __init__(self, song, chart, member):
self.song = song
self.chart = chart
self.member = member
def __str__(self):
return (self.song
+ " Top Chart:"
+ str(self.chart)
+ " Band Me... | |
doc_27023 | In Firefox and IE9 everything works, but not on Chrome and I can't figure it out why, because I have other elements with border-radius that work just fine in Chrome.
A: I've checked using Safari's "Web Inspector", and your CSS is definitely being successfully applied to your container.
I think the problem is related ... | |
doc_27024 | t10_t20_t30_t40_
now in matlab, i used the following script
str = 't10_t20_t30_t40_';
a = regexp(str,'t(\d+)_t(\d+)','match')
and it returns
a =
't10_t20' 't30_t40'
What I want is for it to also return 't20_t30', since this obviously is a match. Why doesn't regexp scan it?
I thus turned to Perl, and wrote th... | |
doc_27025 | Here's why I want to do this...
On a payment page I have a DropDownList that allows my user to select their card type. Beneath that is a TextBox in which they type their card number.
I want to use a RegularExpressionValidator to validate that their card number is valid for their given card type. The card payment proces... | |
doc_27026 | https://www.bitstamp.net/api/
But I couldn't find how I can get that client_id.
Any hint on that? Many thanks.
A: Did you register for an API key via their instructions? They say:
To get an API key, go to "Account", "Security" and then "API Access". Set permissions and click "Generate key".`
Once you have the API... | |
doc_27027 | ChannelPipeline pipeline = ch.pipeline();
pipeline.addLast(new HttpServerCodec());
pipeline.addLast(new HttpObjectAggregator(65536));
pipeline.addLast(new WebSocketServerProtocolHandler(WEBSOCKET_PATH, null, true));
I want to add Set-Cookie HTTP header in the response of handshake. This is part of RFC6455
The handshak... | |
doc_27028 |
below is the toy dataset that I used to generate x, y values
df <- structure(list(x = c(0, -1, -2, -3, -4, -5, -6, -7, -8),
y = c(-5.22672371336103, -2.04798328990208,
-0.998312848674327, -1.13656559451279, -1.80175393429754,
-2.67597356058193, -3.62933726371666, -4.61213085819315,
-5.605794197303... | |
doc_27029 | Here is my code, and it seems to work fine. it will down/up scale a PNG.
Tested on XP so far:
uses GDIPAPI, GDIPOBJ, GDIPUTIL;
procedure TForm1.Button1Click(Sender: TObject);
var
encoderClsid: TGUID;
stat: TStatus;
img, img_out: TGPImage;
begin
img := TGPImage.Create('in.png'); // 200 x 200
img_out := img... | |
doc_27030 | I've searched around and nth-child comes close, but just removes all tags. Using simple CSS, how can I retain one <br/> tag between second paragraph and third paragraph, and the single <br/> tag between sixth and seventh and eight and ninth paragraphs in the example below?
<!DOCTYPE html>
<html>
<head>
<style>
br:nth-... | |
doc_27031 | BufferedImage gimage = new BufferedImage(img.getWidth(),img.getHeight(),BufferedImage.TYPE_BYTE_BINARY);
ImageFilter filter = new GrayFilter(true,50);
ImageProducer producer = new FilteredImageSource(img.getSource(),filter);
Image Gimage = Toolkit.getDefaultToolkit().createImage(producer);
... | |
doc_27032 |
I know that to have the button at that position I should have two constraint layout; one for whole change password form and one for change password form without the Save button and then set the Save button's Top and Bottom constraint to the second ConstraintLayout.
But when I do this, the button goes behind the form, ... | |
doc_27033 | I want to list the contents of the path DIR but because there is a space in the path it will not work.
The problem is the space in the path /home/User Name/tarfolder. This works fine if there is no space in the path.
how can I get this to work for paths that have a space in the path?
Also on an aside is it not good ... | |
doc_27034 | My Code
public static String listAll() {
String output = listHeader();
try {
ResultSet res = stmt.executeQuery("SELECT * from STUDENT.MESSAGES");
while (res.next()) { // there is a result
//output += formatListEntry(res);
output += res;
output +=System.lineSep... | |
doc_27035 | {
"hashtags": ["hashtag"],
"title": "title",
"message": "message"
}
and i get this response:
{
"hashtags": [
{
"non_field_errors": [
"Invalid data. Expected a dictionary, but got int."
]
}
]
}
I have the following view defined in views.py
c... | |
doc_27036 | In the case below, when I click on the button, Child re-render, which makes sense as its parent's state was triggered, but I don't know why Grandchild get re-render as well!! its parent's state (Child's state) didn't change.
So, what is the rule here?
What would be the case:
1) the App renders but none of the Child and... | |
doc_27037 | Consider the string 1.1. This string successfully parses to a double using
double.TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, CultureInfo.CurrentCulture, out var result)
This string also successfully parses to DateTime using
DateTime.TryParse(s, out var dResult)
We need this string to be interprete... | |
doc_27038 | List<Exercise> prevexercise= (List<Exercise>)em.createQuery("Select e from Exercise e where e.activity = '"+exercise.getActivity()+"' AND e.GOAL_ID = '"+goal.getId()+"'").getResultList();
I dont know what is wrong in above query please help me with this i am new to this the error as below
un 04, 2015 5:16:56 PM... | |
doc_27039 | My sequence of creating/destroying items A, B and C is:
*
*Create A --> id:1
*Create B --> id:2
*Destroy B
*Create C --> id:3
I've already destroyed B, C should be counted as id:2 right?
A: The underlying database column for id is set to autoincrement. The id is generated at the database level, not by ActiveReco... | |
doc_27040 | Then the user can dynamically select image files or take photos and then the results will be accommodated to those ArrayList.
The problem is that the ArrayList that already contains these elements is displayed to RecylerView with CardView to be unresponsive. If you scroll up or down, there is a delay.
I really apprecia... | |
doc_27041 |
A: No.
But:
*
*The tex.stackexchange.com wiki has a decent list of TeX accents.
*Then you just need to correlate them with their UTF-8 combining mark.
*Make sure you move the combining mark to after the character you want it combined with.
*
*eg: "/~n" to "n" . $combining_mark
*You might then want to run it t... | |
doc_27042 | But I need the GUI to be updated automatically after the status changes. I tried this:
Sub RefreshHideFormulas
Call uidoc.RefreshHideFormulas()
Call uidoc.GotoNextField
Call uidoc.GotoPrevField
End Sub
But it didn't work either!
I their a better solution for this?
A: I found the solution here. I just made... | |
doc_27043 | $do_not_duplicate_slider[] = $post->ID;
Now I'd like to remove these posts from the secondary loop:
query_posts( 'order=DESC&orderby=modified&posts_per_page=4&post_type=post&category_name='.$myCity );
How do I pass $do_not_duplicate_slider in this string?
Under codex I read it is possible to do it in array like so: p... | |
doc_27044 | #include "stdafx.h"
#include "stdio.h"
#include "stdlib.h"
#include "math.h"
#include <string>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char text;
printf("enter text?%\n");
scanf_s("%d\n",text);
return 0;
}
A: You have a complete example here
http://www.cplusplus.com/r... | |
doc_27045 | If I try to access my AWS cluster through the low-level botocore package, which is used by both boto3 and PynamoDB, and connect to a DynamoDB table as
import botocore.session
session = botocore.session.get_session()
client = session.create_client('dynamodb')
client.describe_table(TableName='my_table_name')
all is OK,... | |
doc_27046 | I'm using office.js for all of the operations, but I can't seem to find any reference about digital signatures on the Javascript nor in the documentation...
In the desktop version of Word 2016, there is the menu option to add a digital signature, and my addin's operations works in that Word version as well as in the Wo... | |
doc_27047 | Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
codeblocks-dev : Depends: libcodeblocks0 (= 20.03) but 20.03-3.1 is installed
E: Unmet dependencies. Try 'a... | |
doc_27048 | Code: 32. DB::Exception: Attempt to read after eof: while receiving packet from localhost:9000
when querying a cache dictionary with 75 columns and 100000 rows (126Mb). Is this to be expected as the dictionary seems quite small. I'm using clickhouse-client --query to launch the query:
SELECT dictGet('CacheDictionary'... | |
doc_27049 | The submit-button is disabled and I want to enable the button only if two conditions are fulfilled. An initial version works well, but only if clicking on the checkbox is the last step. But it should be a function that reacts on both, clicks/changes in the select and the checkbox.
The following code is working but with... | |
doc_27050 | SELECT * FROM toys WHERE type_id In (1,2,3)
here is my Controller code:
public function index(Request $request)
{
$type = (new Type)->newQuery();
if($request->has('type_id')){
$type->whereIn('type_id',$request->type_id));
}
return $type->paginate(10);
}
The idea is to be able to query data from d... | |
doc_27051 |
Notice the dots at the bottom of the chart. I would like it to be changed to this:
Note that I want to keep all points which are created between these points in time. So data from 11:31:00, 11:31:01, 11:31:02 etc. should be still there.
This is what I currently have:
LocalDateTime date = LocalDateTime.now();
categor... | |
doc_27052 | <div id="form-div">
<?php
if($_SERVER['REQUEST_METHOD'] != 'POST') {
$self = $_SERVER['PHP_SELF'];
?>
<form class="form" id="form1" method="post" name="contactForm" action=" <?php echo $self; ?> ">
<p class="name">
... | |
doc_27053 |
*
*databaseone
*databasetwo
and I have a similar table in the database, name of the table is tableemployeedetails.
In my databaseone, I have 500 columns in the table tableemployeedetails.
In my databasetwo, I have 10 columns in the table tableemployeedetails.
I cannot use insert into select query because I want to ... | |
doc_27054 | myMQTTClient.configureCredentials("YOUR/ROOT/CA/PATH", "PRIVATE/KEY/PATH", "CERTIFICATE/PATH")
Sources:
https://github.com/aws/aws-iot-device-sdk-python
https://github.com/aws/aws-iot-device-sdk-java
A: "The Iot Java SDK has rootCA pre encoded in the keystore so it does not need customer to provide that."
Source: ht... | |
doc_27055 | Running flutter pub pub publish --dry-run gives me the following warning:
Warning: Your pubspec.yaml includes an "author" section which is no longer used and may be removed
I will authorize my publishing using the email in my author value. If I remove it, how will I authorize.
I'll be thankful to know more about this.... | |
doc_27056 | ||
doc_27057 | ||
doc_27058 | I must use SIP to control the sessions.
How could I do this? Will a Red5 server and a MjSip sever do the trick? As in i'd use MjSip to setup the session and warn users about calls, and Red5 to stream the video and audio? Any suggestions?
Note: only 1-on-1 conference is required.
A: There are a couple of red5 related o... | |
doc_27059 | I've read lots of discussions about android services and restful applications, many of them contrary to each other, so I would like to know have I choosen a good approach.
Inspired by this presentation http://www.youtube.com/watch?v=xHXn3Kg2IQE I put my http requests into IntentServices, instead of the Async Task.
I... | |
doc_27060 | req = urllib.request.Request(url, data=None,
headers={
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'
}
)
f = urllib.request.urlopen(req)
html = f.read()
from bs4 import BeautifulSoup
sou... | |
doc_27061 | For example, for the following 3D matrix:
data = np.array([
[[1,2,3,4], [2,3,4,5]],
[[3,4,5,6], [4,5,6,7]],
[[5,6,7,8], [6,7,8,9]]
])
Shape of (3, 2, 4)
And query indexes:
In case of: idxs = [0, 0, 1]
Result:
[
[1,2,3,4],
[3,4,5,6],
[6,7,8,9]
]
In case of: idxs = [1, 0, 0]
Result:
[
[2,3,4,5],
[3,4,5,6],
[5,6,7,8]
]
... | |
doc_27062 | I have downloaded Stanford Named Entity Recognizer version 3.6.0. It works, no problem. But I can't get a tagged text as an output file. Read about extracting data on this site: http://www.themacroscope.org/2.0/using-the-stanford-named-entity-recognizer-to-extract-data-from-texts (Windows user).
Tried to do the same, b... | |
doc_27063 | I have experience primarily with Java, so all this Windows service stuff is new to me. I am not really asking for a how-to (but if someone has time....I wouldn't object :-P)
The project is as follows:
I am to develop an application in ASP.NET that runs as a process from start-up to shutdown. It will be checking some th... | |
doc_27064 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>HTML5 Chat</title>
<body>
<section id="wrapper">
<header>
<h1>HTML5 Chat</h1>
</header>
<style>
#chat { width: 97%; }
.message { font-weight: bold; }
.message:before { content: ' '; color: #bbb; font-size: 14px; }
#log {
overflow: auto;
max-height: 300... | |
doc_27065 | What's proposed in the book is that all configuration settings are externalized and centralized in a repository of some sort, be it an LDAP directory, ESCAPE Server or somesuch and then retrieved from there.
This sounds really compelling to me as this approach can provide a number of tangible benefits, but after Googli... | |
doc_27066 | import org.testng.annotations.Test;
import TestUtil.TestUtil;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.sel... | |
doc_27067 | I asked about it on StackOverflow here - http://goo.gl/XB2C5 but I guess there were no obvious issues with the code that I had pasted. I've monitored the number of threads that the program uses and it always is between 14-17, so I don't think that's an issue.
Now I'm a bit stuck and don't know how to troubleshoot this... | |
doc_27068 |
A: This differs depending on X-Cart version. There are two major versions now: X-Cart 4 and X-Cart 5. They are very different and in order to give you any advice it is better to now what X-Cart version you are using.
A: Alex Mulin is right, it's kinda difficult to answer your question without such specific info as yo... | |
doc_27069 | Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution.
When searching for a solution, I only see things about Chrome extensions.... | |
doc_27070 | Example of code
class NameListSpider(CrawlSpider):
name = 'namelist'
allowed_domains = ['namelist.com']
start_urls = ['http://www.namelist.com']
rules = (
Rule(LinkExtractor(restrict_xpaths='//div[@class="post-outer"]/a'), callback='parse_item', follow=True),
)
def parse_item(self, res... | |
doc_27071 | Currently the express back end server is setup to route all paths to the same index.html file. So when I try to access http://xyz.abc.com/server-status
, the express server routes it to the index.html file.
Question: What should I change in apache setup or in express so that I am able to access http://xyz.abc.com/serve... | |
doc_27072 | From this interface, I derive several concrete types such as bus and car (all can move, slow down, switch off engine, etc). My interface has no fields.
Would it be bad design to have one class which has fields (e.g. top speed of vehicle) and use this by each of the concrete types? Would this be bad design? Also, if I s... | |
doc_27073 | Let me explain my situation.
I have a main report which contains a subreport. The main report retrieves data from a CSV file aned the subreport from an Oracle Database. I have done a Oracle DataAdapTer.
I work with TIBCO JasperSoft Studio because iReport does not know jdbc.oracle ...
The main report : I put the entire... | |
doc_27074 | I am new to react, any suggestions will be appreciated !
Thanks!
| |
doc_27075 | $items=$this->Database->getItems();
$mySelect=form_multiselect('addedMaterials', $items, '1', 'id="addedMaterials" multiple="multiple"');
To submit all the items from the second select box I've put this:
function selectAll()
{
var selObj = document.getElementById('addedMaterials');
for (var i=0; i<selO... | |
doc_27076 | $(window).scroll(function() {
if($(window).scrollTop() > 200){
$(".element")[0].click();
}
}
But this does not work with changing content. On first load it works. But as soon as ajax does it's stuff the event isn't firing anymore. Any ideas? I know about the on event but cannot figure it out how to use it here... | |
doc_27077 | I am trying to add a 'selected' class to my link regarding the id of my portfolios controller’s show action
Here is what I've tried:
<ul>
<% for portfolio in @portfolios %>
<li class="<%= controller.class == PortfoliosController and controller.action_name == 'show' and controller.params[:id] == portfolio.id ? 'se... | |
doc_27078 | class SpriteWidgetTest extends StatefulWidget {
@override
SpriteWidgetTestState createState() => SpriteWidgetTestState();
}
class SpriteWidgetTestState extends State<SpriteWidgetTest> {
var rootNode = NodeWithSize(const Size(1024.0, 2048.0));
@override
void initState() {
var circ = CircleNode(radius: 50... | |
doc_27079 | Which leads into my question(s):
*
*Has anyone had luck using jQuery UI widgets exclusively (instead of AJAX Toolkit Controls) in an ASP.NET Web Application that occasionally uses UpdatePanels?
*Are there any best practice resources for getting jQuery UI and UpdatePanels to play nice?
Update:
Based on the answer... | |
doc_27080 | <textbox value="<html>" />
it causes a JavaScript error in the browser
Uncaught SyntaxError: Unexpected token ILLEGAL
and I can see in the developer tools of the browser that the generated JS code is really incomplete:
zkmx(
[0,'g2JQ_',{dt:'z_y20',cu:'\x2Fdtag',uu:'\x2Fdtag\x2Fzkau',ru:'\x2Fzul\x2Fcomponent\x2Fm... | |
doc_27081 | Raw data:
> sequences
V1
1 A-aa-aaa-end
2 A-aa-aaa-end
3 A-aa-vvv-end
4 A-aa-vvv-end
5 A-cc-vvv-end
6 A-cc-vvv-end
7 B-aa-vvv-end
8 B-aa-vvv-end
9 B-bb-rr-end
10 B-bb-rr-end
11 C-aa-rr-end
12 C-aa-rr-end
13 C-bb-rr-end
14 C-bb-rr-... | |
doc_27082 |
A: One could use a BufferedImage with an image type that supports transparency such as BufferedImage.TYPE_INT_ARGB:
BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);
One can draw on the BufferedImage by calling BufferedImage.createGraphics to obtain a Graphics2D object, then perform some d... | |
doc_27083 | args = ["mysqldump", f"-u{DBUser}", f"-h{DBHost}", f"-p{DBPass}", "--no-tablespaces", f'{DatabaseName}', f'{ArchiveTable}', '>', f'{BucketReadyName}']
subproc_output = subprocess.run(args)
This code gives this error.
mysqldump: Couldn't find table: ">"
I've tried a couple different arrangements, but mysqldump alway... | |
doc_27084 | My next test is to group items.
Here is an XML snippet:
<MailboxDatabases>
<MailboxDatabase>
<DatabaseName>DB01</DatabaseName>
<Status>Healthy</Status>
<MailboxServer>MB08</MailboxServer>
<ActiveDatabaseCopy>mb07</ActiveDatabaseCopy>
<ActivationSuspended>False</Activati... | |
doc_27085 | java.lang.OutOfMemoryError: Failed to allocate a 22409382 byte allocation with 10594550 free bytes and 10MB until OOM
at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95)
at java.lang... | |
doc_27086 |
A: Use datatables
example js see below
$(document).ready(function() {
var table = $('#example').DataTable();
$('#example tbody').on( 'click', 'tr', function () {
$(this).toggleClass('selected');
} );
$('#button').click( function () {
alert( table.rows('.selected').data().length +' row(s) selected' );
} );
} ... | |
doc_27087 | The URL is => http://localhost:3000/document/
I tried to put it like this => http://localhost:3000/document/<>
but it did not work.
My code looks like this:
router.get('/res', (req, res) =>{
console.log(req.query.code);
var url = 'https://slack.com/api/oauth.access?code='+req.query.code+'&client_id=<the client_... | |
doc_27088 | import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;
import javax.persisten... | |
doc_27089 | from keras.layers import LSTM, Input
from keras.models import Model
x = Input(shape=(3,2))
lstm1 = LSTM(units=1, return_sequences=True, return_state=True)
lstm2 = LSTM(units=1, return_sequences=False, return_state=False)
out,h,c = lstm1(x)
out = lstm2(out, initial_state=[h,c])
model = Model(inputs=x, outputs=out)
Sinc... | |
doc_27090 | DATE am IN am OUT pm IN pm OUT
2015-01-08 08:13 17:51
2015-01-09 08:08 11:57 13:03 17:10
2015-01-10 08:18 08:20 11:20 12:01 ... | |
doc_27091 | In my index.html.erb file that's controlled by the Pages controller, I have this code:
<%= form_tag root_path ({:controller => "pages", :action => "search", :method => "get", :class => "grabTweets" }) do %>
<%= text_field_tag :tweets, params[:tweets] %>
<% end %>
In my Pages controller I have:
def search
def gr... | |
doc_27092 | Assembly as = Assembly.LoadFile("path");
as.EntryPoint.Invoke(null,null);
Error:
Parameter count mismatch.
A: If it is native exe - use Process.Start, if it is managed (i.e. create with C#) you need to load assembly and than call Main via reflection.
Native exe:
Process.Start("IExplore.exe");
It looks like you h... | |
doc_27093 | Error:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string
Can anyone help with this?
A: Please check PHP version requirements of the plugin. So you will get your answer why it is not working.
| |
doc_27094 | Now I want to check whether the link is already clicked or not .If it
is clicked already I want to display that link Italic Otherwise (not
clicked) display that link Bold while loading data from database.
Mycode for dynamic list with hyperlink:
$("div").append("<li id='list' >"+"<a id='link' class='delete'
href=... | |
doc_27095 | 1- I have written smart contract
2- Use truffle to get the smart contract java wrapper.(contract.java)
3- Use testrpc to test the contract
I have 2 class uses testrpc accounts (credentials) to interact with the smart contract and call its functions
Each class (node1.java, node2.java) call a function in the smart contr... | |
doc_27096 | This is the code:
var a = new google.maps.LatLng(8.8013, -74.72538);
var b = new google.maps.LatLng(1.0619, -73.2558);
var c = new google.maps.LatLng(12.5872, -81.7025);
var d = new google.maps.LatLng(3.2719, -73.0877);
var locations = new Array(a, b, c, d);
var mapProp = {
cen... | |
doc_27097 | Here is what I am trying to do: I have a UI that needs a end time drop down list. Its a finite set of times, essentially from 7:00 AM to 10:00 PM in 15 minute increments. I'm using jQuery and want to create on the fly a Select box that looks like this:
<select>
<option value="420">7:00 AM</option>
<option value="435">7... | |
doc_27098 | [data] => Array
(
[0] => stdClass Object
(
[id] => 4
[contact_id] =>
[status] => Complete
[is_test_data] => 0
[datesubmitted] => 2014-04-16 22:18:39
[sResponseComment] =>
[responseI... | |
doc_27099 | I'm using a dataframe, which features minute records. R studio's function to form such a data type is as.POSIXct (or as.POSIXlt), which is not supported by h2o:
Provided column type POSIXct is unknown. Cannot proceed with parse due to invalid argument.
The only other time function I've ran into is as.Date, which is n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.