Questions tagged [massive]
A single file database access tool based on .NET 4 dynamics made by Rob Conery.
99
questions
0
votes
1
answer
32
views
Recreating new list with old elements but different orders
I have a list of dicts like
[ {'elemend_id':1, 'data': 'datachunk1'}, {'elemend_id':2, 'data': 'datachunk2'}, {'elemend_id':3, 'data': 'datachunk3'} ... {'elemend_id':99, 'data': 'datachunk99'}]
So ...
0
votes
3
answers
143
views
Filtering an array by multiple property values
I have an array of the form
var cars = [
{name: "BMW X5", topsales: ["USA", "China", "Russia"], maxspeed: 250, users: ["teenage", "ladies"...
0
votes
0
answers
59
views
I need to output the desired value to a variable and then check by condition C#
I have this code:
using System;
using System.Globalization;
using System.IO;
namespace TimeTress
{
class Program
{
static void Main(string[] args)
{
var ...
0
votes
0
answers
20
views
condition if in massive
how can I put space correctly that table would be straight? ( between 0-9 " " //1 space
10-99 " " // 2 space
int[][] MULTIPLICATION_TABLE = new int[10][10]; for (int i = 1; i &...
1
vote
1
answer
147
views
Text mining on a massive dataset in R (or Python !)
I have a dataset of more than 2.300.000 observations. One variable is dedicated to descriptions (text), and there is sometimes quite long sentences.
With all this observations imagine the number of ...
1
vote
2
answers
96
views
How to count specific numbers in massive on Python (not list)
I have a program which generates random numbers from -10 to 10. My task is to count how many elements from 1 to 5 are in this massive. the problem is that I can't use functions like counter or others ...
0
votes
0
answers
18
views
Count the determinant. Subtract from each element of the main diagonal X
My program counts the determinant of a matrix.
square matrix size = 3
source
the matrix
1 2 3
4 5 6 -> и вычесть из каждого элемента главной диагонали X
7 8 9
1-x 2 3
4 5-x 6 ->решить определитель
...
1
vote
0
answers
120
views
Node/Express Server not connecting to postgres database after updating Node to v14
I have an express app and am using massive to connect to a postgres db. I recently upgraded node to v14 and it is no longer working. When I roll back to node v13.11.0 it works fine. When I run this ...
1
vote
0
answers
2k
views
DeprecationWarning: Implicit disabling of certificate... How to fix? (node.js, express, massive)
I'm using Postgresql with Node.js, Express, and Massive. I'm getting this error:
"(node:11507) DeprecationWarning: Implicit disabling of certificate verification is deprecated and will be removed in ...
0
votes
1
answer
55
views
How do connect my Node.js backend server to pgAdmin4 using massive?
I'm trying to connect my server to my pgadmin 4 database using massive.
the pgadmin4 creditentails given to me are placed in a .env file. i passed the credentials through the massive method like so
...
-1
votes
2
answers
55
views
Machine Generation of Art Patterns in Vector Fields
I am trying to rewrite this article:We draw, programming. Machine-generated generation of artistic patterns in vector fields (Russian language) from pseudo-code in Python. I am new to ML, hence the ...
1
vote
2
answers
335
views
How to paginate results of cypher, neo4j?
i am currently working with neo4j, if anybody knows how to do pagination with the results that a cypher query gives, specialy the size of the results is so big, about 100 millions.
i know the ...
-5
votes
1
answer
49
views
How to copy massive data to clipboard
I have an array [1, 2, 56, 32, 54] or something.
How do i send it to clipboard
1
2
56
32
54
I tried this.
Loop % table.MaxIndex() {
meow := table[A_Index]
Clipboard := ...
2
votes
2
answers
34
views
Joining a PostgreSQL table into another table's column
I'm looking for a way to join(?) two tables together, but not in the traditional way of matching foreign keys and creating a row of the match.
For example, if I have a person table and a cars table:
...
0
votes
1
answer
423
views
Query returns an empty array - why?
I am trying to get information from my PostGres database to be displayed on my frontend. I'm using react, axios for http requests, node with express for my server, massive for database interactions ...
1
vote
0
answers
39
views
Property '__super__' does not exist on type '(pointSimplifierIns: any, opts: any) => void'
I use the Scott map in the angular2 project of mass point API,When I run
npm run build:prod An error has occurred,The following is a relevant code and exceptions (added:There is no question of npm ...
0
votes
1
answer
656
views
req.app.get('db') is undefined when using Massive JS in my Node Application
I am building a Node application using Express, Massive JS, and Postgresql. I was using sequelize but decided to try Massive JS, so I started converting my code to use it.
I have a login endpoint ...
4
votes
1
answer
2k
views
Convert IEnumerable<dynamic> to string[]
I have the code below, basically returns a single column of string values from a DB using MassiveORM.
The Query() method returns IEnumerable. I'm trying to find out how to cast or convert that to a ...
0
votes
0
answers
79
views
The size of the cache line is level 2 - C ++
I'm writing a program to determine the size of the second-level cache line, I used the article http://igoro.com/archive/gallery-of-processor-cache-effects/. But I have completely different results. ...
0
votes
3
answers
76
views
Why 'datas' array is always empty? [duplicate]
My code
$.getJSON('/load4',
function (data) {
for (var i = 0; i < data.length; i++) {
var counter = data[i];
datas.push([counter.Id, counter.login.substr(0, 25)...
2
votes
3
answers
24k
views
I don't understand why my axios post request isn't working - 404 not found
import React, {Component} from 'react';
import axios from 'axios';
export default class CreateDog extends Component {
constructor(props){
super(props)
this.state = {
...
3
votes
1
answer
6k
views
I'm getting an Unhandled Promise Rejection error but can't figure out why
const express = require('express');
const cors = require('cors');
const massive = require('massive');
const bodyParser = require('body-parser');
const config = require('../config');
const app = ...
1
vote
0
answers
630
views
Connection to database and receiving error: database does not exist
So I am new to ReactJS and trying to connect to a Postgres Database on my local machine. I'm using Axios and Massive V2. Attempting to run my server.js file I am receiving the following error message ...
0
votes
1
answer
26
views
Switching foreign keys of two rows
I am working on a site where users can trade items with other users. Upon completion of a trade, I need to change the owner of the items.
My 'items' table has a foreign key referencing the user. ...
0
votes
0
answers
61
views
javascript massive field get elements
i have that code here:
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
#game {
padding-...
0
votes
1
answer
170
views
Connection terminated for basic Postgres and MassiveJS
I am trying to connect to my database, but I am running into some errors. I am pretty new to all this, so sorry if I'm not being clear. I am able to use pgAdmin to run queries to my database, but I ...
3
votes
1
answer
2k
views
'bind message supplies 1 parameters, but prepared statement "" requires 5' in Node
I am having trouble trying to figure out why my POST is not working using Nodejs and Massivejs. I am trying to add a test product using Postman and it's giving me the "bind message supplies 1 ...
0
votes
2
answers
109
views
Massive ORM dynamic Where filtering
Since there is not much documentation on this, could someone tell if there is a way of filtering data dynamically, given that there are lot of filter options ?
2
votes
1
answer
116
views
Is there a way I can access the express's Application in a REST API?
Looking at Massive's documentation, the way to save database connection execution time is to save the connection object once to Express's application settings. My question is, how to access the ...
1
vote
1
answer
83
views
A lot of setText and String assignment
I have a lot of getting String from json objects like this:
city1 = jsonobject.getJSONArray("object").getJSONObject(0).getString("city");
And if value not hull i apply this String to textview:
if(...
1
vote
1
answer
479
views
Caching results using Massive micro-ORM
I'm using the Massive micro-ORM with a new project. I added some caching, and it all appeared to work - until I realize that the cached objects (dynamic) are still querying the database. This kills ...
0
votes
1
answer
219
views
How to fetch python output and get to dynamic massive
I have got Jenkins and python, and some jobs in a queue. I have got a script whic
import jenkins
j = jenkins.Jenkins('http:///', '....', '.......')
queue_info = j.get_queue_info()
print(queue_info)
...
0
votes
1
answer
98
views
Task factory force more tasks to start at the beginning
i am filling a task factory with tasks something like this (pseudocode):
private int _taskcounter;
snip
var factory = new TaskFactory();
for(var i = 0;i<1000;i++)
factory.StartNew(() => ...
1
vote
1
answer
196
views
Technique to create new var foo=new{bar = "Hohoho"}
I am new to the c# language and questions came up.
i use the massive single file DB.
here you can create a class like this:
public class products : DynamicModel
{
public products(String conn) : ...
0
votes
1
answer
311
views
NGINX too long location (massive?)
NGINX
Have a locations like:
location ~ "^\/(place1|place2|...|place50)\/(service1|service2|...|service80)\-(else1|else2|...|else90)\/"
{...}
location ~ "^\/(word1|word2|...|word70)\/(place1|place2|...
2
votes
1
answer
467
views
Servicestack ORMLite/Massive managing multiple DataTables with Expandos / Dynamic?
i have a Stored Procedure that returns multiple datatables with dynamic types according to the input and I cannot modify or split it.
I actually retrieve the data in this way:
var massiveModel =...
4
votes
2
answers
576
views
How to use Rich Domain with Massive Operations?
Since I am working on a relatively complex problem, I would like to use the Domain Driven Design approach to solving it. Problem in question is calculating monthly invoices for clients. The current ...
1
vote
3
answers
1k
views
How to use IEnumerable<ExpandoObject> in knockout.js?
Problem Description
I wanted to ask about how to use a list Exbando Objects in knockout.js,am using Rob Conrey's Massive and all returned results are dynamic, that's fine with me it suits my needs ...
2
votes
1
answer
742
views
Does Dapper use numbered parameters such as in Massive
Does Dapper use numbered parameters such as in Massive(@0, @1, ...) unlike named (@a, @b, ...)?
It is necessary to create a query as
//select @0 as val union select @1 union select @2 union select @...
3
votes
1
answer
2k
views
"Database is locked" exception when using Massive with SQLite
Recently I browse the micro ORMs and I like Massive for SQLite because its simple. But I have now an issue.
I am just running some select statement followed by an update statement but I am getting an ...
2
votes
1
answer
375
views
Using Massive Insert I get DBNull when trying to get scope_identity()
I have a table with an identity column.
Using Massive with code like this
var table = new Categories();
var newID = table.Insert(new {CategoryName = "Buck Fify Stuff", Description = "Things I like"}...
0
votes
1
answer
153
views
Read uncommitted when using Rob Conery's Massive
Is there a way to do a read uncommitted when using Rob Conery's Massive without writing your own query?
It is for a site that is mostly read-only. A CMS type of a site.
3
votes
2
answers
696
views
How do I build simple D3 charts that display massive amounts of data?
I would like to use D3 to build simple charts with literally hundreds of millions of data points.
Obviously, I won't be attempting to plot millions of points at a time. Only a very, very tiny ...
1
vote
2
answers
1k
views
Massive: Using stored procedure
I am trying to execute stored procedure using Massive micro-orm.
var tbl = new DynamicModel("Conn", tableName: "User", primaryKeyField: "UserID");
var result = tbl.Query("EXEC User_INSERT @0,@1,@2,@3"...
1
vote
2
answers
1k
views
Massive: Update object: Cannot update identity column
I have following scenario...
Massive Micro-ORM
.NET framework 4.0
SQL Server 2008R2
Model:
public class sUser : DynamicModel
{
public sUser() : base(Model.strConnection, "Users", "UserId") { }
}...
4
votes
1
answer
417
views
Access DynamicModel.Query using dot notation or index
I am using Massive micro-orm and SQL server 2008R2 with .NET framework 4.0.
// This is my model
public class sUser : DynamicModel
{
public sUser() : base(Model.strConnection, "Users", "...
1
vote
1
answer
942
views
How can I determine if a stored procedure needs a parameter? [duplicate]
Possible Duplicate:
How can I retrieve a list of parameters from a stored procedure in SQL Server
I'm using Massive to create a generic stored procedure executor. Basically, I have a function ...
0
votes
2
answers
530
views
Select distinct rows from a table using massive ORM
How can I retrieve distinct rows from a table using massive ORM . I need to get list of unique studentname from table 'Student' that has columns ID,StudentName,Age . ID is the primary key.
Note : ...
0
votes
1
answer
301
views
Massive ORM remove column SQLite
I am using the Massive ORM for a wpf application. I have screen with listview and needs to be populated with two tables (one being master data). E.g. I am populating the list of Employees and Salaries ...
5
votes
2
answers
216
views
Least-bad way to change constructor behaviour
I feel like I'm stuck between several bad solutions here and need some advice on how to minimize future agony. We are using Massive ORM, which in its constructor has these lines:
var _providerName = "...