id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_35600 | I confirmed (with IO.inspect) that his mount and defp code I added to a LiveView adds the socket assigns. But he doesn't give an example of how to call the format_time function from a heex template. Perhaps it should be obvious, but it's not obvious to me. I tried this:
<%= if connected?(@socket) do
... | |
doc_35601 | abstract class A{
public void init(String name){
//do whatever
}
}
And then we have:
class B extends A{
public void init(String name,String lastName){
super.init(name);
//do whatever
}
}
I would like to get the parameter types of class B, but when I do:
Class clazz= classLoader.loadClass("B");
fo... | |
doc_35602 | http://spatialgalaxy.net/2018/02/13/quick-guide-to-getting-started-with-pyqgis3-on-windows/
However, I can´t get the processing package to work properly in pycharm. For example, when I use a simple code like:
from qgis.core import *
import processing
processing.run("qgis:createpointslayerfromtable",
{'I... | |
doc_35603 | I have a number of large images available, but due to space limitations, I can't create multiple copies of these at various sizes. I have used PHP GD functions to resize the images to the sizes I need and output them to the browser. This works, but obviously takes some processing time, which therefore impacts pages loa... | |
doc_35604 |
A: <div class="main_container">
<div class="box1">text for box 1</div>
<div class="box2">text for box 1</div>
<div class="box3">text for box 1</div>
</div> <!--main_container ends here-->
<style type="text/css">
.main_container{float:left;width:500px;}
.box1{float:left;width:500px;background:#cc0000;}
.box2{... | |
doc_35605 | Original question:
I just noticed, that geopandas GeoDataFrame allows for inplace reprojection:
In [1]: import geopandas as gpd
In [2]: import shapely.geometry as sg
In [3]: data = {'geometry': [sg.Point(9,53), sg.Point(10,53.5)]}
In [4]: gdf = gpd.GeoDataFrame(data, crs='epsg:4326')
In [5]: gdf
Out[5]:
... | |
doc_35606 | Is there a way to tell yarn to automatically restart a specific application on failure?
A: Have you tried Hadoop Yarn - ResourceManger Restart
Yarn will restart the driver if this fails with the feature “yarn.resourcemanager.am.max-attempts”, and by default it’s 2.
A: You can specify the max attempt of a specific app... | |
doc_35607 | create table elba7430.kurinys(
id INTEGER not null check (id > 10000),
pavadinimas VARCHAR (55) not null,
metai YEAR,
meno_rusies_id INTEGER not null check (meno_rusies_id > 100),
autoriaus_id INTEGER not null check (autoriaus_id > 1000000),
kliento_id INTEGER not null check (kliento_id > 100000... | |
doc_35608 | here is the code that i use for routing right now. characters is an array that i fetched from api.
And Detail is the component that takes a character prop and returns details about it.
Currently , when i clicked a photo, i see the details but i see other products too. How to fix it?
in the normal flow of the page , pa... | |
doc_35609 | My Problem/Question:
*
*Is it possible to post a straight up JSON object? Currently I'm spoofing a normal form post for my ajax calls by giving the object a name json={"key":"value"} if I don't give it a name I can't seem to get the data from the Symfony request object $JSON = $request->request->get('json');
*I wa... | |
doc_35610 | In fact, there's too many, which one do i use?
A: pick one you like :P. I like async for example. But Step is also pretty famous. I think it is a very good thing that there are so many modules. The node.js community is putting out some really good modules. Installing them with NPM will not cost you any effort at all.
... | |
doc_35611 | <rewrite>
<rules>
<rule name="Force HTTPS" enabled="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rul... | |
doc_35612 | But my class under test has dependency injection and I wonder how to mock it.
I tried to do something but it seems a bit clumsy, and I would like help to improve it.
Here is my code :
class MyController @Inject()(val mydao: MyDAOClass) extends Controller {
def getData = Action { request =>
mydao.fetchData
... | |
doc_35613 | var items = {}, sortableItems = [], i, len, element, listOfStrings;
listOfStrings = JSON.parse(the_chems);
for (i = 0, len = listOfStrings.length; i < len; i += 1)
{
if (items.hasOwnProperty(listOfStrings[i])) {
items[listOfStrings[i]] += 1;
} else {
items[listOfStri... | |
doc_35614 | I have a collection called Users with the following document:
{
_id: "5d93f338e602a10a38ad3588",
userID: "1",
email: "test@test.com",
password: "password",
firstName: "Tom",
lastName: "Bombadil"
}
I also have a collection called Posts. with a document:
{
_id: "5d93fddce602a10a38ad358a",
postID: "1",
... | |
doc_35615 | When trying to compile my ast root:
dl = compile(newRoot, '<string>', 'eval')
I get this Exception:
expected str, got Module
I am using the last version of IronPython.
Is there an idea why this does not work? all the examples I found seem to do it this way with no issues.
Is there a workaround to compile an AST objec... | |
doc_35616 | Where col1= @input1
And col2= @input2
And col3 = @input3
Huge_table has three indexes : one clustered and two non clustered. Clustered index seek is taking long to complete.
| |
doc_35617 | I want to think the person that did that example plotted it in a smart way avoiding to deal with each of those spaces one by one, because otherwise doing something like that svg would be a bit expensive (in relation of time) if you need to change of model (or just another knot).
Does anyone know how was it done or was ... | |
doc_35618 | I created a new SSIS project in VS 2019. Then I created a Connection Manager and successfully Tested the connection against the database.
When executing a SQL Task with a simple query I get this error:
[Execute SQL Task] Error: Executing the query "" failed with the following error: "Retrieving the COM class factory fo... | |
doc_35619 | I have temporary table temp_marks with key and value as column.
I am trying to update the student_subject table with temp_mark.
UPDATE student_subjects
set marks = (SELECT tmp.value
FROM temp_marks AS tmp )::int
WHERE student_id = std_id
AND subject_id IN (select id
from subjects ... | |
doc_35620 | Three nodes installed with kubeadm on VirtualBox VMs running on a MacBook:
sudo kubectl get nodes
NAME STATUS ROLES AGE VERSION
kubernetes-master Ready master 4h v1.10.2
kubernetes-node1 Ready <none> 4h v1.10.2
kubernetes-node2 Ready <none> 34m ... | |
doc_35621 | The version of IIS is 6.0 and the machine has windows server 2003 running on it. When i deploy the application i get the following error message while browsing. Could anyone please help me with this issue.
Culture name 'ne-np' is not supported.
Parameter name: name
Description: An unhandled exception occurred during t... | |
doc_35622 | In the new scene, didMove(to view: ….) is used to add the children from the previous scene to this next scene.
SceneKit crashes when doing this quickly, seemingly because the children of the old scene haven’t yet been released.
If I add a slight delay before adding the children to the second scene, it’s fine… it seems ... | |
doc_35623 | The thing is I want to compile both the .c and .s to verify that they both return the same value.
A: Have you simply tried to pass an .s file to the compiler? If it is written correctly, then it will just be transformed into an object file and/or an executable.
Here's a minimal example that should work:
$ cat 1.s # tw... | |
doc_35624 | That is something like below.
The dependency GoogleMaps is not used in any concrete target.
A: You have to specify a target for each pod.
e.g. if before you had your Podfile written like this:
pod 'GoogleMaps'
just change it to
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
target "TargetName" ... | |
doc_35625 | [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayAndRecord error: nil];
[[AVAudioSession sharedInstance] setActive: YES error: nil];
NSDictionary *recordSettings = [[NSDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithFloat: 44100.0], AVSampleRateKey,... | |
doc_35626 | struct Data {
std::string str;
int data;
};
struct {
bool operator()(Data a, Data b) const { return a.data > b.data; }
} customLess;
int main() {
std::vector v = {
{"Rahul", 100},
{"Sachin", 200},
{"Saurav", 200},
{"Rohit", 300},
// .....
};
for(uint k = 0;... | |
doc_35627 | As far as I know, I can't use ScriptTags because I want to use liquid variables on these pages. The liquid content may occasionally be specific to the template,
such as:
{{product.id}} or {{checkout.line_items}}
Currently on app installation I'm placing a liquid snippet this way:
ShopifyAPI::Asset.create(key: "snippet... | |
doc_35628 | I would normally use simple concatentation, but there are 7500 records and 27k notes entries.
A: For a formula it will require a subscription Office 365 Excel:
=IF(LEFT(B2,4) = "NOTE",TEXTJOIN(" ",TRUE,B2:INDEX(B3:$B$104000,IFERROR(MATCH("NOTE*",B3:$B$104000,0)-1,MATCH("ZZZ",B3:$B$104000)))),"")
If you do not have ... | |
doc_35629 |
In the date 2022-05-01, the invoice value is 100, so it should not be considered in the running sum. In the date 2022-06-01, the invoice value is negative (-250) so the running sum should start until it turns into a positive value (which happens in the date 2022-09-01). The same logic should happen continuously: In th... | |
doc_35630 | I'm getting the name of the last clicked button with this:
foreach (Control t in this.Controls)
{
if (t.Focused)
{
ClickedButton = t.Name;
}
}
Then I want to change the Text of the button:
ClickedButton.Text = "Whatever";
But I can't use ClickedButton as the name of the button.
Thank you in advan... | |
doc_35631 | The problem is that I can put it in an NSArray, but the type becomes a _SwiftValue, so I don't know how to use that in ObjC code.
A: In Objective-C it is char, which is a primitive and just contains a byte. So char* is an array of characters, which is essentially a string.
I would stick to NSString and check for the ... | |
doc_35632 | Or should NLog be doing its connection straight to the db because its a logging framework?
A: It's good that you are abstracting with a data access layer. However the repository pattern is meant/intended for your domain objects.
Think of logging as service and not as a domain object. Logging can be persisted to variou... | |
doc_35633 | Titles Col_A Col_B Col_C ...
Row_1 x
Row_2 x x
Row_3 x
If interested in Row_1, I should return {Col_B}, or if searching Row_2 then I should return {Col_A, Col_C}.
I have the following formula that return an array of cell values for non-empty cells, but I do not kn... | |
doc_35634 |
A: PkWare Appnote tells that
"Immediately following the local header for a file is the compressed
or stored data for the file. The series of [local file header][file
data][data descriptor] repeats for each file in the .ZIP archive."
So there should be no gaps between them.
However, I would recommend to parse an... | |
doc_35635 | {
"1":
{
"media_content":"test3.xspf"
},
"2":
{
"media_content":"test3.xspf"
}
}
In the terminal, using bash as shell, I can execute the following commands:
export schedules="1"
echo $(jq '.[env.schedules]["media_content"]' json_file.json)
Which results in outputing this:
test3.xspf
So it works as expected... | |
doc_35636 | Once the Task is complete and the data has been downloaded, the view should display the downloaded data in a Text view.
I thought this would be a fairly easy implementation, here's a minimal example:
struct ContentView: View {
let items = 0..<100
var body: some View {
NavigationView {
L... | |
doc_35637 | The data for the DK uses this field name "streaming_from_shop" and the UK uses this "streaming_from_shop_uk".
How can I make it show only the button with data written in the field and not show the other? And of course, show both if there are data present in both fields.
<?php
$streaming_link = get_field('streaming_... | |
doc_35638 | error C2057: constant expression expected
error C2466: impossible to allocate array with constant size 0
error C2133: 'packet' : unknown size
unsigned int length=4;
if(...)
{
length = 8;
}
else if(...)
{
length = 6;
}
else
{
length = 4;
}
unsigned short packet[length/2];
I tried to do some shenanigans lik... | |
doc_35639 | Is there a way to achieve what I am aiming for? Am I even thinking about this problem in the right way? I've searched for tutorials on charting, but the ones I've stumbled upon have been pretty basic. Thank you in advance for any help or guidance you may be able to provide.
The relevant code for creating the chart:
... | |
doc_35640 | PS: I have assigned a floating IP to the instance. That is all I have done so far.
A: Does ifconfig return the correct IPs?
If everything is fine, try checking your system's routing status by route. Your Linux may have chosen a wrong default gateway for you.
See http://www.cyberciti.biz/faq/linux-setup-default-gateway... | |
doc_35641 | I want this to be more simple possible
I have main file (index.html) and i need to include some other html file in this file
index.html
file1.html
file2.html
Here is my webpack config
var HtmlWebpackPlugin = require('html-webpack-plugin');
var text = require('./src/text.js');
module.exports = {
... | |
doc_35642 |
A: I have fixed the issue. I was set the fronted widget environment to Live but mistakenly the backed it was set to sandbox. So, the order was not place to amazon end and the error was throwing.
| |
doc_35643 | nginx is running on 3002
*
*for route /api strip off the /api and redirect to service api i.e. the node app
*redirect other routes to service client i.e. react app
docker-compose file
version: "3"
services:
api:
build:
context: api
dockerfile: Dockerfile.dev
ports:
- 3000:3000
volume... | |
doc_35644 | def function(audio):
How do I do something like this (consider that 'wave' apparently only supports audio path, not objects)?
wav = wave.open(audio)
sr = wav.getframerate()
| |
doc_35645 | one table has records as follows, this table is called ASTM_Table
and another table called ASTM1 is like this
Astm1 table contains gravity with 0.1 difference while "astm_table" has gravity with a difference of 0.5 (However, this table is the latest)
All i want is to have all those records from astm1 table and mer... | |
doc_35646 |
Doing a little research AutoRecover.Enabled = False (Application.) should be the right attribute but for some reason I can't get it to work. I don't get an error message, but the AutoSave Function does not turn off.
No luck with different objects (myWorkbook.AutoRecover.Enabled = False, etc.) either. Any Ideas what t... | |
doc_35647 | I don't want iterate again inside .QuestionId = 12' to find.QuestionID = 14` again.
Is there any way I can go directly to .QuestionID = 14 using LINQ?.
For example:
For Each mQuestion As Question In _mQuestions
If mQuestion.QuestionId = 12 Then
'Find mQuestion.QuestionID= 14 and insert Somtext to
... | |
doc_35648 | Stream 1: [1,3],[2,4]
Stream 2: [2,5],[3,2]
A regular merge would produce a Stream 3, like this:
[1,3],[2,4],[2,5],[3,2]
I would like to merge the stream whilst preserving the order in which the
tuple was emitted, so if [2,5] was emitted at time 1, [1,3] was emitted at
time 2, [3,2] at time 3 and [2,4] at time 4, the... | |
doc_35649 |
A: It can be easily done using Beanshell.
Check the below example to get an idea.
import org.apache.jmeter.services.FileServer;
f = new FileOutputStream("path of the file.csv", true);
p = new PrintStream(f);
p.println(vars.get("DOBZ") + "," + vars.get("SSN"));
p.close();
f.close();
A: You can configure JMeter s... | |
doc_35650 |
my code:
delete.backgroundColor = UIColor(patternImage: (UIImage(named: "button-delete-default-png")!))
Any ideas? I've been searching about two days, and nothing..
Thanks in advance to any suggest!
| |
doc_35651 |
___________________________________________________________
StateName | City | Score1 | Score2 |
________________|_______________________|_________|_________|
| | | |
New South Wales | Albury (C) | 979 | 967 |
... | |
doc_35652 | the application failed to initilize propely (0x0000005). click ok to terminate the program
all the librarys are linked properly, and all the nessory directoris are added to the path variable. the program is a very simple program that just reads a image and displays it. eny ideas how to avoid this error. thanks for eny ... | |
doc_35653 | ISO3 Indicator Year Value
FRA Pop. density 2003 113,6
FRA Pop. density 2004 114,5
FRA Pop. density 2005 115,4
USA Pop. density 2003 31,7
USA Pop. density 2004 32,0
USA Pop. density 2005 32,3
FRA Pupil-teacher ratio 2003 18,6
FRA Pupil-teacher ra... | |
doc_35654 | I need to call a function inside another function on document load. An example code is below. Here I need to alert the message 'my second alert'. How can I make it happen?. I know by initializing alertSecond() inside the function will work it, but is there any other way to do it?
Thanks in advance
$(document).ready() {... | |
doc_35655 | I have a custom toolbar with a height of 117 pixels and so far I haven't found a way of modifying the buttons on the toolbar. Also I need it to be a toolbar because the displayed view gets covered with another animated view (cut scene style) while I setup assets in the first view and the toolbar needs to stay on top du... | |
doc_35656 | I want to map each element in the set with specific value to be a map using streams .
that for example if the set contains {1,2,3} and the value=5 ;
so I want the map be like this
1->5
2->5
3->5
The problem that I do not know what to write in the map function part
TreeMap<Integer,Integer> map = set.stream().map(... | |
doc_35657 | Main.java extending FragmentActivity
mTabHost = (FragmentTabHost)findViewById(android.R.id.tabhost);
mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent);
mTabHost.addTab(mTabHost.newTabSpec("tab1").setIndicator("Tab1"),MyFragment.class, null);
MyFragment.java
public class MyFragment... | |
doc_35658 | I'm using Ubuntu servers and all configurations are done by Jenkins jobs using ssh.
My ultimate outcome is to reset the cluster environment each time when I executing the Jenkins jobs for each new release of our application. Is there a way to do that??
A: There is no way to deploy docker image as vm or physical server... | |
doc_35659 | package test
class Test {
def main(args: Array[String]): Unit = {
val i: Int = 0
println(i)
}
}
The bytecode of main is:
public main([Ljava/lang/String;)V
// parameter final args
L0
LINENUMBER 4 L0
ICONST_0
L1
ISTORE 2
L2
LINENUMBER 5 L2
GETSTATIC scala/Predef$.MODULE$ : Lscala/Pre... | |
doc_35660 | package com.example.api;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
impor... | |
doc_35661 | My controller:
var myApp = angular.module('myApp', ['ngResource']);
myApp.controller('categoryController', ['$scope', 'Post',function($scope, Post) {
$scope.heading = "Hello from angular";
$scope.post = Post.query();
}])
myApp.factory('Post', ['$resource', function($resource) {
return $resource('/posts/:... | |
doc_35662 | How do I visualize this in a UML 2.0 Component Diagram?
The image above shows how I am trying to achieve it, but I am certain that it is wrong.
My component "Export Data" is creating a *.csv which is used by the component "Initial Data Import".
A: You cannot through a component diagram, but you can through a deployme... | |
doc_35663 | As a simplification of my example, if I have a catalog of items, and some of them are only available in certain countries, and some are not available in specific countries. I'd like to be able specify the list of items, and the exceptions, something like:
(defrel items Name Color)
(defrel restricted-to Country Name)
(d... | |
doc_35664 | final Graphics2D g2d1 = (Graphics2D) volatileImg.getGraphics();
final Graphics2D g2d2 = (Graphics2D) volatileImg.getGraphics();
Why g2d1 != g2d2 ??
Why volatileImg.getGraphics() create a new instance in each call ??
is there any way to get always the same Graphics2D ?
Thanks :)
A: Here what I did to improve the ... | |
doc_35665 | thank you
A: try this jquery
$(function(){
$('a[href^="http://example.com/external/link"]').attr('rel','nofollow');
})
| |
doc_35666 | def eval(e):
...
eval('print(1)') # I'd like to call the built-in one rather than my own eval
A: You can use __builtins__:
>>> eval = 'foo' # shadowed
>>> __builtins__.eval('1 + 1')
2
But of course, it's better to just not shadow built-in names.
| |
doc_35667 | http://dl.dropbox.com/u/381953/Screen%20shot%202010-11-01%20at%204.51.01%20PM.png
I tried to simulate the environment in VMWare, under 1004x601 resolution the app still looks fine.
Is there something I'm missing that would cause the window hight to be reduced?
A: Maybe it's not the windows who is reduced: take a look... | |
doc_35668 | I am using C++ gRPC. When I create gRPC server, I set its self-signed certificate and private key:
grpc::SslServerCredentialsOptions sslServerOptions;
grpc::SslServerCredentialsOptions::PemKeyCertPair pkcp;
pkcp.private_key = serverPrivateKey;
pkcp.cert_chain = serverCertChain;
sslServerOptions.pem_key_cert_pairs... | |
doc_35669 |
A: If the dataset is not huge, here you go (possibly quite inefficient):
data =
%|Derek Aufderhar, 2134, 1
Hadley Kuhn, 2044, 0
Myrtie Lueilwitz, 2207, 2
Mitchell Schiller, 2036, 2
Javier Walter MD, 2485, 4
Waino Leuschke, 2486, 2
Ariel Jacobson, 2015, 3
Melvin Bailey, 2485, 0
Dovie E... | |
doc_35670 |
*
*The Source File
*The Destination File
*The Object / Data Being Copied
My current thinking:
Implement a Clipboard Viewer that identifies the clipboard owner window (and the data) when a WM_DRAWCLIPBOARD message is received - but how do I identify which window subsequently calls getClipboardData - to identify t... | |
doc_35671 | 11-4 Member access control says
Access control is applied uniformly to all names, whether the names are referred to from declarations or expressions. [ Note: access control applies to names nominated by friend declarations (11.4) and using- declarations (7.3.3). — end note ]
11.4-9 Friends says
A name nominated by a... | |
doc_35672 | $token = NoCSRF::generate( 'csrf_token' );
$status = "succeed";
$message = "Update done!";
$return = array($status,$message,$token);
//header('Content-type: application/json');
echo json_encode($return);
returns
"↵["succeed","Update done!","MTQ0NDcxNzM3Nm9nUTRCVzRKOXc5RXFocUZodXh5eXo4Tm5waTlzZ05a"]"
to the browser w... | |
doc_35673 | Thank you in advance!
A: Yuan Zhu's answer in ResearchKit-Users mailing list:
I guess you can:
*
*Create an ORKActiveStep and configure it properly.
*Implement the - (void)taskViewController:(ORKTaskViewController *)taskViewController stepViewControllerWillAppear:(ORKStepViewController *)stepViewController delegat... | |
doc_35674 | Edit 2: full minimal example (js fiddle: https://jsfiddle.net/g1u2p36k/):
<html>
<head>
<script language="javascript">
function walkText(node) {
if (node.nodeType == 3) {
node.data = node.data.replace(/"Ashen Glow Gaming"/gi, "<span style=\"font-color: red;\">a<span style=\"color: blue\">shen</span> g<span style... | |
doc_35675 | CSVReader reader = new CSVReader(new FileReader("ping10102012.csv"), '\t');
int i=0;
while ( (nextLine = reader.readNext()) != null){
System.out.println(nextLine[i]); // Debug only
}
And I'm having some issues with stuff. I'm only getting the first(column) values from my csv, and they're outputting pretty weird... | |
doc_35676 | My question is how can I generate this array of points from a provided width and height that I want the curve to be. Is there some sort of special command or algorithm that I can use to obtain these Cartesian coordinates. For a clearer picture of what I need please refer to the following image http://en.ecgpedia.org/wi... | |
doc_35677 | <connectionStrings>
<add name="EmploymentDbContext"
connectionString="Data Source=ASD-PC\SQLEXPRESS;Initial Catalog=EmploymentsHistory;Integrated Security=SSPI ;"
providerName="System.Data.SqlClient"/>
</connectionStrings>
My server name is ASD-PC\SQLEXPRESS and I use Windows Authentication to con... | |
doc_35678 | Here's the code:
function changeDiv(e) {
var x = e.clientX; // Get mouse x and y
var y = e.clientY;
if (/tr/.test($("#mouseX").val())) { // Find the suitable unit using a regex on value of corresponding select tag
var xUnit = "px"
} else if (/(sk|ro)/.test($("#mouseX").val())) {
var xUnit = "deg... | |
doc_35679 | try {
input1 = Integer.parseInt(textfield1.getText());
input2 = Integer.parseInt(textfield2.getText());
} catch (NumberFormatException e) {
setBorderBorderFactory.createMatteBorder(2,2,2,2,Color.red);
}
How do I now get the text field in the catch clause which causes the NumberFormatException in order to ch... | |
doc_35680 | select ID as SBDID,(select top 1 T.ID from Transactions T where T.SBDID=S.ID order by id desc) as TransID
from SBD S where ID in(223,225)
I want to list the last TransactionID for each SBD.ID
Thanks
A: Apparently you have SBDS and TRANSACTIONS. Every Sbd has a primary key Id. Every Transaction has a primary key Id an... | |
doc_35681 | I have already tried to use the map function.
I have to following type of objects
[
{a:1, b:2, date:'2019-01-05'}, {a:12, b:22, date:'2019-01-05'}, {a:13, b:23, date:'2019-01-05'},
{a:11, b:2, date:'2019-01-06'}, {a:1, b:22, date:'2019-01-06'}, {a:1, b:23, date:'2019-01-07'}
]
now i want to have an object like this wh... | |
doc_35682 | const { count, rows: questions } = await QBQuestion.findAndCountAll({
where: {
[Sequelize.Op.or]: [
{ 'QBQuestionSkills.Skill.Skill': { [Sequelize.Op.substring]: 'python' } }, { Text: { [Sequelize.Op.substring]: keyWord } }
]
},
limit,
offset,
include: [
{},...{}, //Few Joins redacted here
... | |
doc_35683 | The requested URL was not found on this server. Apache/2.4.41 (Win64) PHP/7.3.12 Server at localhost Port 80) in tow different versions of NetBeans 8.2 and 11.3.
Step 1. Running WampServer Version 3.2.0 64bit installed on Windows 10 OS ==> I see the green icon in status bar, indicating all services are running.
Step 2.... | |
doc_35684 | The lines causing the flickering say things like 'if [condition1 for a given cell=true] then [draw a red circle in the cell].' (I can post the actual code, if desired.)
So, is it possible a custom method can do the same thing--tell a grid to draw a circle in a cell if a statement resolves to true?
A: The actual act of... | |
doc_35685 | The index of numerical Array elements just change from like 26 to 1 and 27 to 2 and that keeps going on for all numerical Indexes.
How do I prevent that from happening and keep all Index like they are?
My Code looks like the following:
foreach ($options as $key => $option) {
$optionName = $option->{"attributeName"}... | |
doc_35686 | I have tried to implement drop_duplicates but it's not working for me.
Here is an example of what I'm trying to do:
import pandas as pd
import numpy as np
from pandas import DataFrame, Series
dfA = DataFrame({'date' : Series(['1/1/10','1/2/10','1/3/10','1/4/10'], index=[0,1,2,3]),
'a' : Series([60,57,56,50], ind... | |
doc_35687 | I have modal script like this :
My input field is like this :
<div class="container">
<div class="row">
<div class="col-sm-4">
<h3>ID</h3>
<input type="text" name="id" onclick="return openmodal(this);"/>
</div>
<div class="col-sm-4">
<h3>Name</h3>
<input type="text" name="name"... | |
doc_35688 | Looking the web, all information i've found is more related to compiling the open source and not how can it be used from Android camera.
| |
doc_35689 | Here is an example of one. Also, I do not have to actually call the methods for the assignment, I only added that as a test.
public class Assignment05 {
public static void main(String[] args) {
displayGreeting();
displayText("hello");
printTotal(2,4,6);
... | |
doc_35690 | Here is my .babelrc file
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
[
"babel-plugin-react-css-modules",
{
"webpackHotModuleReloading": true,
"autoResolveMultipleImports": true
}
]
]
}
My webpack... | |
doc_35691 | I have a function that has a list as an argument. It then does list-specific functions on it. Here is an example:
def getValues( my_list ):
for q in my_list:
print(q)
But, I get my list from USER INPUT like this:
a_list = input("Please enter a list. ")
getValues(a_list)
The built-in input() function retu... | |
doc_35692 | D:\St\Retail\AMS\AMS\FTP-FromClient\AMS
It contains various folders of dates:
2022-04-01
2022-04-02
...
...
2022-02-02
2021-05-05
2019-04-12
And each of these folders contains own files inside the folder. So, I want to retrieve all the filename inside the folder if it has 2022-04. So if the folder has '2022-04' as t... | |
doc_35693 | I'm using oAuth2.0 and the v2.0 token endpoint to get access without a user, and with the code below, I can provide administrator consent to the permissions (which were applied to the application permissions on the new Application Registration Portal https://apps.dev.microsoft.com/ and appear on the Enterprise Applicat... | |
doc_35694 | what I've done so far (Role, Policies, attaching IAM in ec2 instance and declared awslogs in /etc/docker, installed and configured awscli with user credentials) here's my docker-compose file https://imgur.com/V9rvH3L and also here's my Dockerfile https://imgur.com/0okE5ch
here's my daemon.json in /etc/docker
{
"log-... | |
doc_35695 | Id Code Name
1 100 John
2 200 Jack
3 300 Mike
4 400 Betty
And table SaleType:
Id Code Name
1 1000 cash
2 2000 cheque
3 3000 free
And a table that describe which customer has which sale type named SaleType_Customer
Id SaleTypeID CustomerID
1 1 1
2 1 ... | |
doc_35696 | I want a solution that doesn't require a hidden input field.
| |
doc_35697 | <authentication mode="Forms">
<forms name="NOPCOMMERCE.AUTH" loginUrl="~/login" protection="All" timeout="100" path="/" defaultUrl="/home/index" requireSSL="false" slidingExpiration="true" />
</authentication>
how can i do for redirect to home/index without redirect to login page.
A: loginUrl="~/login"
thi... | |
doc_35698 | These groups might have different lengths.
Example
X<-data.frame(Dev=c("a","b","a","d","a"), value=(1,2,3,4,7))
Split<-split(X,f=X$Dev)
Then I have to cbind these lists.
Since I have huge dataset, I can't extract each list from list. Since each has different lengths, so it's not allowing to directly use function cbind... | |
doc_35699 | For the moment, I need the old categories and the new ones to coexist in my mysql database.
So in the table that relates categories and movies I have:
id_category (PK)| id_movie (PK) | category_name
12 | 7822 | japanese horror
13 | 4563 | new fantasy
202 | 7822 | horror
303 | 4563 | fantasy
To include the new categor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.