Jose Jose

1

votes
1

answer
1.2k

views

Exception: Partition key provided …, when using CreateDocumentUri with a partitioned document db

DeleteDocumentAsync and ReadDocumentAsync don't work for me when I have a partitioned collection. I used the RequestOptions: await client.DeleteDocumentAsync(document.SelfLink, new RequestOptions { PartitionKey = new PartitionKey('mykey') }).ConfigureAwait(false); // This works. var uri = UriFactor...
Jose
1

votes
3

answer
144

views

Why SQL query with SHA2_256 returns NULL in WHERE clause

I need a hand on this, any comments will be highly appreciated. I have a table Users with field UserPassword with datatype varchar(60) I insert on the table users from this select SELECT HASHBYTES('SHA2_256','test') it insert its value (0x9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F...
1

votes
1

answer
85

views

How do i connect to a ODBC Oracle database?

I have information about the connection like username, password, host, port, SID and i know that is an oracle database but i don't know how to connect. I am on lubuntu 18.04.
José Augusto
1

votes
3

answer
52

views

How to indicate that I want the interval with the lowest value among all the intervals that satisfy a condition

My last question (I've done many lately). I have df1 that summarises different datetimes. I also have df2 that summarises water temperature at different depths over time. I want to add a column in df1 called Term_depthshowing the mean depth between TWO CONSECUTIVE depths for a specific datetime IF T...
1

votes
2

answer
24

views

How to find a datetime that is not common between two large dataframes

I have two large dataframes df1 and df2 that theoretically should have the same number of rows since they represent the same period. They start at the same date and time and they end on the same date and time. But I found out that they differ in one-row length. I want to know exactly which row or wh...
1

votes
1

answer
21

views

Not enough information to infer parameter T

Context: I am building a REST API with kotlin using Spring Problem: I have a Kotlin class called Response that accepts a generic like this: class Response { var data: T? = null var dataArray: List? = null var errors: List? = null get() { if (field == null) { this.errors = ArrayList() } return field...
José Nobre
1

votes
2

answer
25

views

How can I expand a dynamic range with blanks between cells?

I want to define a dynamic range that will expand the rows and columns of my range whenever a new row or column is inserted. My current formula does not want to expand to cell $T$13. My headers start in row $M$7. How can I adjust my formula? Formula Being Used =OFFSET(Sheet1!$M$8,0,0,COUNTA(Sheet1!$...
Jose
1

votes
1

answer
22

views

How to call a piece function from another piece

I have the pieceA that have a joinbyarray relationship with pieceB. What a I want to do is to access to the functions of pieceB in the index.js of pieceA. I know how to access to pieceB and its fields, but I don't know how to access to their functions. Thanks in advance!
Jose García
0

votes
0

answer
4

views

Container always reach same backend on replicated services

I'm deploying a 3 tier application using docker swarm, similar to: --> BACK01-01 -- --> BACK02-01 | | | FRONTEND-01 ----------------> BACK01-02 --------> BACK02-02 | | | --> BACK01-03 -- --> BACK02-03 Frontend Back Service 01 Back Service 0...
Jose Truyol
1

votes
2

answer
40

views

Error when slicing two different levels of a multiIndex

I get an unexpected error message when trying to slice two levels of a multiIndex...Any help on how to do it? Please look at the attached code... I am running Python 3.7.1 and Pandas 0.23.4 I have this dataframe: import pandas as pd import itertools index = list(itertools.product(['Ada','Quinn','Vio...
José Luis Martínez
1

votes
1

answer
65

views

Why are the controller actions in Phoenix passed as atoms instead of functions?

defmodule HelloWeb.Router do use HelloWeb, :router scope '/', HelloWeb do get('/', PageController, :index) end end In this example, why isn't the controller's function passed directly, like get('/', PageController.index)?
1

votes
1

answer
32

views

How to use members of a structure for arithmetic operators (add,sub,mul,div a variable to a struct member)

Sorry for the noob question. How do i use arith operators to variables within the structure? I have this struct struct account { int no; char name[100]; int pin; float id; }; what I want to do is add a value to float id #include #include #include #include main() { struct account { int no; char...
marc jose
1

votes
5

answer
8.1k

views

Video editing using PHP

Is it possible to record a voice onto the uploaded video using PHP?
jose
1

votes
3

answer
372

views

Spring @Transactional annotation making my class not able to Autowire

I have a class SaveRoute which has got an auto-wired property SaveProcessor. This SaveProcessor class has got a method which is annotated with @Transactional annotation. When I try to run my application, Java is throwing an exception that bean SaveProcessor dependency injection failed. When I remov...
Jewel Jose
1

votes
0

answer
65

views

Azure Bot Service - Channel configuration page displays no content

When I configure the Azure Bot Service Channel, nothing happens. The screen turns white like the image below.
Jose Padilha
1

votes
0

answer
56

views

Dynamics AX SSRS not showing recent data

i have an issue with a report in dynamics. I have an invoice report (more specificly EInvoiceReport_MX), and im printing some variables, the problem is that the users sometimes, they edit the info of the CustInvoiceJour table, to show more information in the report, and when they go to the report an...
José Alejandro
1

votes
1

answer
510

views

Download Excel Angular 4

I have an entry in my API that returns an excel, I have managed to get it to my Angular 4 service. But I did not extract it from the body and download it from a button in my web application: prls(req?: any): Observable { const options = createRequestOption(req); options.params.set('findAll', req.fin...
1

votes
0

answer
238

views

How should I use Realm in React-Native?

I've seen a lot of examples of the implementation of realm inside React-Native world but every time I see them I see they export from a root file the instance of the realm database, example: realmIndex.js > export new Realm(...configuration) I was doing that inside one of my projects until I got an...
Jose Gomez
1

votes
0

answer
351

views

Jackson ObjectMapper throwing java.lang.ClassCastException: java.util.LinkedHashMap while deserializing generic type

I am trying to deserialize an Custom Generic Type class using Jackson ObjectMapper, but the test is throwing the following exception.I know the jackson api is not able to find the correct construct type, but i don't know what is the correct constrct type in my scenario. I tried with constructCollect...
sunish jose
1

votes
0

answer
185

views

Chrome freezing with simple ajax requests

I was developing my project in a simple web hosting (free) After it becomes more complex, i finally moved it to a paid hosting with SSL certificate. But a unexpected result now is the chrome browser freezin with ajax requests. I dont change a single line in the code, but after i moved it to the new...
1

votes
0

answer
55

views

cannot create object from external .jar library in android studio

when i try to create an object and run the app i get this error: i use: api fileTree(include: ['*.jar'], dir: 'libs') Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Android\xxxxxx\app\build\intermediates\transforms\desugar\debug\1.jar Error:com.android.builder.dexi...
José Sosa
1

votes
4

answer
112

views

Chaining Pair of numbers

I've got a list of pair of numbers: List pairs = new List(); a. pairs.Add(Tuple.Create(1, 2)); b. pairs.Add(Tuple.Create(3, 4)); c. pairs.Add(Tuple.Create(3, 5)); d. pairs.Add(Tuple.Create(5, 6)); e. pairs.Add(Tuple.Create(10, 11)); f. pairs.Add(Tuple.Create(2, 3)); I'd like to join them in another...
José Luis
1

votes
2

answer
335

views

Why doesn't Sonar read the format of django-nose coverage results?

When I try to send a python project with sonar-scanner, it throws an exception: Caused by: java.lang.IllegalStateException: Unknown report version: 4.4.2. This parser only handles version 1.'. Before trying to introduce the cover, the project was run normally, the project is python code and the re...
Jose Luis Vallina
1

votes
1

answer
407

views

Ecto: Insert changeset with foreign_key_constraint raise Postgrex.Error

I'm using Ecto (2.2.8) to work with an existent PostgreSQL database. I defined two schemas to represent owner and house. The house schema has a FK (belongs_to) owner. I defined a schema and a changeset for house that look as follows: @primary_key {:id, :id, autogenerate: true} schema 'house' do belo...
Jose S
1

votes
0

answer
215

views

window.print: Receipt printer wasting paper

I am using wep 800 dx black printer, I have a web app to print receipt. Used window.print() to print the page, when I prints, the printer continues rolling until an A4 page completes. I wanted to stop printing when content of my page ends. No need to waste the paper. Is there any way to stop rolling...
Sunil Jose
1

votes
3

answer
312

views

Xamarin Forms displaying simple lists

I have a list of an object and I just want to display a couple of labels for each item. In the asp.net days I would use a repeater with the labels inside. I realized there is no repeater in Xamarin Forms, or is there? I tried using a Listview but it doesn't work because in IOS it creates empty rows...
1

votes
1

answer
32

views

App, Uri is null and because that my cursor is also null

The uri nul, i don't know why... Please help @Override protected void onHandleIntent(Intent intent) { NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); Uri uri = intent.getData(); Intent action = new Intent(this, AddReminderActivity.class); action.setData(ur...
1

votes
1

answer
29

views

Linear regression output “Call Formula” can't be exported to csv file

I'm working on a for function that uses the input data to generate several linear regression models, a~c. This data generate works perfectly fine, but, I need to export the data resulting to a csv file. I'm using the tydy() and glance () functions to obtain p values, intercepts, r2 etc. That part of...
jose m mora b
1

votes
2

answer
219

views

Improve performance big canvas [Edited]

I have a large canvas (2000x2000), and many rect objects (738) With this canvas, I have problems to be able to move objects, the application is blocked easily and it is not flowing I have tried to reduce the size of the canvas to 400x400 and the speed has improved a lot, and it does not use as much...
Pedro Jose
1

votes
1

answer
44

views

Javascript rotate mouseover pause?

I'm trying to modify a word dial, but am not much of a javascript pro(yet). How can I pause this dial on hover/mouseover within the existing code.................................................................................................................................................. html: I...
Jose Rodrigo Gomez
1

votes
1

answer
64

views

Javascript and Jquery | Share script without sharing the code

So, I have created my script with some javascript and jquery. It's some code that you can run using greasemonkey/violentmonkey or even using it on a bookmark... I want other people to use it, but I dont want to share my code. Is it possible? If it is, how can I do it? Thank you!
José Santos
1

votes
0

answer
163

views

Performance issue with spark Dataframe, each iteration takes longer

I´m using Spark 2.2.1 with Scala 2.11.12 version as a language to generate a recursive algorithm. First, I tried an implementation using RDD but the time when I used a lot of data was too much. I have made a new version using DataFrames but with very little data it takes too much, taking less data...
José David Martín
1

votes
0

answer
251

views

Multiple level routes, cannot access parent parameters

I am managing groups and their members. To do so, i've created two different modules, one for the groups and the other for the members. I'm loading the routes for the members by lazy loading. Here is my groups-routing module : const routes: Routes = [ { path: 'groups', children: [ { path: '', compon...
José
1

votes
0

answer
52

views

Can testcafe connect to a Smart TV development deployed app?

I'm evaluating whether testcafe can be driven inside an embedded app, for instance a Tizen or WebOS Smart TV. By creating a runner and browser connection one can make the app be fully controlled by navigating to the remoteConnection URL. [1]. But that's replacing the app itself. I'd rather pass on c...
José Pedro Dias
1

votes
1

answer
169

views

SQLite is not able to save DateTimeOffSet value

In our app the same update is executed in a SQL Server and a SQLite database. The issue is that SQL Server works as expected however SQLite somehow is getting always 1/1/0001. This is the update command: UPDATE ReviewSow SET SowingDate = '7/1/2016 12:00:00 AM -03:00' WHERE ReviewSowId = 3366; Any...
1

votes
1

answer
171

views

Localise notifications sent from Firebase

Is there a way to translate / localise notifications sent from Firebase? I have my app setup to receive notifications successfully: extension AppDelegate: UNUserNotificationCenterDelegate { func setupNotifications() { registerForRemoteNotifications() setupNotificationTokenRefresh() } func registerF...
José
1

votes
0

answer
226

views

Building OpenCV with Clang 5 in Windows

I'm trying to build OpenCV in Windows 7 with Clang 5.0.0 but Cmake does not recognize the option and, therefore, there is no compilation available. The system contains Clang 5.0.0, MSVC 2013 Express and Cmake 3.10.0. Googling the solution does not show any valid results. There is any way to generate...
José Manuel Ramos
1

votes
0

answer
158

views

state, props and setState are being underlined by red

I am using Visual Studio 2015 to work on a React JS project. There are no errors raised while I run buld. But state, props and setState are being underlined by red. Please suggest a solution if anyone knows about It.
Tino Jose Thannippara
1

votes
0

answer
145

views

What is the proper way to know the size of DB needed for SonarQube?

From what I have seen on the web they say: 2.The amount of disk space you need will depend on how much code you analyze with SonarQube. As an example, SonarCloud the public instance of SonarQube, has more than 30 millions lines of code under analysis with 4 years of history. SonarCloud is currently...
Juan Jose Jaramillo
1

votes
0

answer
48

views

how i get data with accent when i do a select in alasql

I´m trying to get data inside a csv file using alasql http://alasql.org , but when i put a file (.csv) in a input file, and i do a select with alasql and some word contain accent i get this simbol '�' where contain accent in that word, i search and i found in github to insert utf8Bom, but don´t...
Fernando josé

View additional