Art.

0

votes
0

answer
3

views

Best way to find the first non-null occurrence of each column for each index?

I have a dataframe that looks like this: ItemID Attribute CostGrade RelatedTo --------------------------------------------- 01A tya 01A van 01A 03a 01A 03B 01A 02i 01A lof 01A...
Art
1

votes
1

answer
97

views

In Vert.x web client, can I map a JSON response to a collection of POJOs?

In Vert.x Web client manual there's an example of decoding an incoming JSON response into a POJO: client .get(8080, 'myserver.mycompany.com', '/some-uri') .as(BodyCodec.json(User.class)) .send(ar -> { // Process the response }) Is there a way to decode an incoming JSON array into a collection of obj...
art-solopov
1

votes
0

answer
731

views

webpack devServer configuration : "‘Access-Control-Allow-Origin

Hi all i'm new in stackoverflow and Premise that i not expert in NodeJs; below what i have done I downloaded webix jet from https://github.com/webix-hub/jet-start unpacked and installed webix jet in Ibm i (As400) via npm install (in Ibm i we run NodeJs V6.9.1) As Dependencies of webix Jet, there is...
jhon_art
1

votes
0

answer
528

views

XAMPP - Object Not Found Error

I will apologize in advance and say that I am a complete noob to PHP, XAMPP, SQL, etc. I seem to be having great trouble fixing this issue. I have installed XAMPP on a Kali Linux distribution in VMWare. I am trying to migrate my website work to this from my Windows machine. I installed XAMPP on the...
Psych_Art
1

votes
0

answer
233

views

d3.js resize liquid fill gauge without redrawing it

I'm working on a visualization using d3.js. I've started from this example. I can update the liquid fill value but i would also like to update the size of the circle without using the function remove() and redraw everything. Can someone give me at least tip about where and how to start to achive wha...
Art_Knopfler
1

votes
1

answer
213

views

Elixir spawn processes without self recursion in anonymous function

I am pretty new to elixir and functional programming in general, and I was wondering in the specific example below how can I add 'nodes' in the currently empty list in the 3rd parameter of the spawn/3 function. def create(n) do nodes = Enum.map(1..n, fn(_) -> spawn(Node, :begin, []) end) end For exa...
hack-is-art
1

votes
3

answer
29

views

Sending an AJAX request in jQuery, getting valid request back but AJAX is throwing an error

I have the following AJAX request in jQuery: $.ajax({ url: 'http://someurl.stuff.com', beforeSend: function(xhr) { xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Host',null); xhr.setRequestHeader('Access-Control-Request-Method',null) xhr.setRequestHeader('Origin',null) x...
Art F
1

votes
0

answer
109

views

node using .insertId to get last insert returns 0 instead of auto increment id

in my code the insertId returns 0 rather than the auto_increment column, am I selecting the wrong value with result[0] connection.query(stuff[prop], function (err, result) { if (err) { callback('err' + err); } else { var newid = result[0].insertId; callback('done:'+newid); }
art vanderlay
1

votes
0

answer
101

views

Apache Phoenix select with joins execution plan

I have a simple query with two joins that I'm running using apache phoenix driver (v4.13.1): explain select one.pk, two.pk, three.pk from table_one one left join table_two two on two.pk = one.two_id left join table_three three on three.pk = two.three_id . where one.pk = 1 The result looks quite ba...
Art
1

votes
0

answer
129

views

c# using OleDbDataReader to get value from Access database

I'm making a library system for a school project and I'm already at the Borrowing System. There's a column in my database where it says 'Availability', basically it will say if the Book is 'Borrowed', 'Reserved', or 'Available' and I'm trying to get the 'Available' value from my access database usi...
Art Acc
1

votes
2

answer
60

views

c# doing 2 commands at the same time

I'm trying to put data into my database at the same time but in different tables, I've tried to squish the query into one line but it doesn't seem to work. private void btnBorrows_Click(object sender, EventArgs e) { string connectionString = @'Provider=Microsoft Office 12.0 Access Database Engine OL...
Art Acc
2

votes
0

answer
15

views

Get all groups and roles for current user from LDAP

I'm trying to get all groups and roles for current user from LDAP. Here is my App. If user logged in I need to get its roles and groups I searched many post, but didnt found the answer @Override public void run(String... args) throws Exception { String searchbase = 'dc=springframework,dc=org'; Hasht...
art
1

votes
0

answer
209

views

Compile a third-party DLL to use in PHP

I am trying to compile a third party library into a dll to use in PHP5.6.31. By following the php build directions here, and the dll's reference guide (select 'Using lpsolve from PHP' from the index and scroll down to the compile section). This is what i did. Downloaded the PHP source php-5.6.31-s...
Art Eby
1

votes
0

answer
24

views

Python overview of different techniques used to apply a function to a list of elements

I want to understand the following outcomes of the following techniques used in python3.X to perform certain things. Consider the following code which using different techniques tries to achieve the same result. def addSlash(fname): if isinstance(fname, str): if ' ' in fname: return fname.replace('...
hack-is-art
1

votes
1

answer
122

views

Update size and value of multiple donut charts d3.js

i'm working on a project using JS and d3.js 3.x. I've a force layout where every node is sorrounded by a donut chart. Now I'm trying to update the data and resize nodes and donut charts with a transition but I'm having big troubles with the arcTween function. If I create arc variable not depending b...
Art_Knopfler
1

votes
0

answer
37

views

tomcat constant pool size

I have this configuration for connection pool the connections are always replaced , i need a configuration for 200 connections that won't be replaced. hope someone can help? thanks
Prog Art
1

votes
0

answer
512

views

How can I use NPM to publish releases and snapshots to a Nexus instance?

My company has a Nexus 3 server where we store all of our artifacts for a predominantly Maven environment. I'm trying to use Node to do the same things as Maven: Deploy to a snapshots or releases directory based on a non-hard-coded flag (could be in Jenkins job) Automatically append an additional ve...
Art Vandelay
1

votes
1

answer
256

views

Understanding RiscV objdump

I am examining the objdump of a C file that I have compiled using the following commands: riscv64-unknown-elf-gcc -O0 -o maxmul.o maxmul.c riscv64-unknown-elf-objdump -d maxmul.o > maxmul.dump strangely (or not) the addresses appear not to be aligned on 32-bit words but actually on a 16-bit boundary...
Art.
1

votes
0

answer
70

views

Has anyone successfully built QuickFIX/J with IntelliJ IDE, importing Maven project structure?

I ask this question because it sort of builds but not really. The core module could not be built; it is missing the Field classes. I do not know how to make the builder generate these classes. I added some dependencies to point to JAR files that were included in folder \org.quickfixj-2.0.0-bin\org...
art
1

votes
0

answer
219

views

Threads Blocked in SOAP WS getPort() - Performace issues + High CPU

I have created Java classes using WSDL and then calling SOPA WS. Everything works fine in low load but as the load increases Threads start going to BLOCKED state. CPU is also very high. On analysing Thread dump seems some contention sun.net.www.protocol.jar.URLJarFile lock. Code for calling SOAP end...
Art
1

votes
0

answer
246

views

Internal Server Error Jasper Report

I had some issue when running my Jasper report with Apache Tomcat 7.0. Sometimes my report are running well but sometimes it show a 500 Internal Server Error. I do not know what is the problem since this is my first time deal with Jasper report. Please help me how can I solve this error. Below is fr...
art
1

votes
0

answer
25

views

userContent.css doesn't work for Slack

I'm trying to make default Slack fonts bigger. I'm using Firefox's userContent.css: @-moz-document domain(mastodon.social) { .column { flex: 1 0 25% !important; } }; @moz-document domain(slack.com) { [lang] body { font-size: 18px; } [lang] .c-message, [lang] #msg_input { font-size: 17px !important;...
art-solopov
1

votes
1

answer
209

views

How do I fix php7.1-fpm.sock failure on Laravel

I am trying to solve my white screen problem. Currently, I'm unable to login to one of my staging servers. I'm running Laravel 5.2 / php 7.1-fpm. After doing a repository update(via Forge), I hit the white screen view. Based on my domain error log, I think that fixing the php7.1-fpm.sock failure wi...
Art Williams
1

votes
1

answer
42

views

Form validation does not triggered after data is loaded

I have a function that calculates form completion percentage. When editing an existing record, data is loaded and rendered but the validation does not kick in. If I edit data in one of the inputs then it gets triggered and start working. ... ... Events that trigger the function $scope.$watch('dat...
Art S
1

votes
1

answer
61

views

C#: Timeout does not match elapsed time

I have an application that connects to a service (webserviceSoap1), and that service has the next timeout configuration: From what I understand, I'm stating here that all timeouts have to wait at least 10 minutes to end communication and get a System.TimeoutException. However, here is the issue I'm...
Luis Art Guerra
1

votes
2

answer
71

views

How to project each 28×28 image to a 7 × 7 image by averaging the grey tone in each 4 × 4 subsquare in MNIST data (R)?

The MNIST data contains 785 columns, the first is the label and the rest are the pixels. I want to reduce the dimensions of each image to 7x7 by averaging the grey tone in each 4x4 subspace in an image. How can I achieve this? Sample data: label v1 v2 v3....v784 1 0 0 13 100 3 9 0 200...
Art Tatum
1

votes
0

answer
33

views

Creatomg specific elements for certain values in data

I am trying to create a table with d3js in node. For the table I'd like to create a column which is sort of a gantt chart. For that I need a svg element in the last column. But I am having difficulties understanding how I can run a function for the last column which use values for other columns and...
Art Vandelay_
1

votes
1

answer
29

views

Filter middleware js

I need to add into my MVC js project a middleware filter which will transfer control to the controller which will do some actions if the filter condition is false and render a special page if a condition is true (but not giving the controll to the controller). It must be a middleware which executes...
Art_0f_War
1

votes
1

answer
68

views

MongoDB - SyntaxError: Invalid regular expression in $regex

I use $regex to find a record in mongodb collection. Basically, I use it as a search to return all records that match a 'query' partially or entirely. It works just fine until I have characters like [, (, ', etc. All the options to escape brake results and I get 0 records back. I tried packages simi...
Art
1

votes
1

answer
77

views

Dynamic file name with custom outputter

I'm trying to process images (create thumbnail images) using u-sql with custom outputter and trying to output files with dynamic file name. My u-sql code look like this. REFERENCE ASSEMBLY [USQLAssemblies]; @image_out = SELECT USQLAssemblies.ImageOps.scaleImageTo(ImgData, 480, 480) AS thumbnail_imag...
Art
1

votes
0

answer
35

views

Correct merge sort

So... If I input: 4 1 5 3 INSTEAD OF 1,3,4,5 I GET 3, 4, 1, 5 Following is the code for merge sort but for the last comparison the program doesn't fetch updated (1,4) (3,5) value rather (4,1) (5,3) thus giving the wrong result. var a = [4, 1, 5, 3]; q(a); function q(a) { var start = 0; var n =...
art
1

votes
0

answer
61

views

how to upgrade ASDF to version 3

I need a version 3 ASDF. I am on GNU CLISP 2.49, Emacs 23.5.1, Ubuntu 16.04, SBCL 1.3.1 Debian. The current problem is CL-USER> (asdf:asdf-version) => '3.3.2' but CL-USER> (ql:quickload :quickproject) => Evaluation aborted on # My question is; were I to uninstall, purge and then reinstall both Cli...
Art-P
1

votes
0

answer
41

views

How to solve output underflow error using naudiodon / portaudio?

I am writing a small node.js program that will be able to play wav sound files on a chosen audio device. The sound starts well but it is stoped before the end of the file. Here is my code : const fs = require('fs'); const wav = require('wav'); const portAudio = require('naudiodon'); const ao = new p...
art.mu
1

votes
0

answer
14

views

how to efficiently call github api to extract real names of multiple repo contributors

I would like to fetch the real names of all the contributors to a list of github repos. I can do it but it takes a series of looping calls to the github API. If I want to do, say the top 100 R packages, my approach would take 2100 calls to the API(assuming 20 contributors per repo). If I underses...
Art
1

votes
0

answer
28

views

Problem with Offset Property on RTL mode in Vuetify framework

I use vuecli3 and vuetify, the problem is offset in RTL have margin-left instead of right. Also i config properly my vuetify.js file and html lang direction too. Vue.use(Vuetify, { iconfont: 'md', rtl: true, }); Also i tried to add these line to main.styl file grid-offset-rtl() for $size in $grid-...
Art Mary
1

votes
0

answer
15

views

How to get ggmap::get_googlemap visible parameter to work

I have tried the methods shown below to use the visible parameter as a way of getting finer control over the 'get_googlemap' extent than zoom provides but have not had success. Is there a way that works? Thanks. library(tidyverse) library(ggmap) # static map with ggmap # boundaries of continental...
Art
1

votes
3

answer
2.9k

views

JSON parse -> stringify -> parse broken?

I'm using json2.js for this: var str = '{'elements':[{'text': '', 'colour': '#66AA50', 'type': 'line'}]}'; var obj = JSON.parse(str); var str2 = JSON.stringify(obj); var obj2 = JSON.parse(str2); Weird thing is that obj2 is a broken version of obj, i.e it's not identical to it. In my case obj2 has on...
Art
1

votes
3

answer
392

views

MySQL FULLTEXT search

How do you add a column to a fulltext search in MySQL to indicate which words were included in the search?
Art
1

votes
2

answer
171

views

Is it safe to put reference to current user in User model in Rails?

You know, I think I have to check current user in the model callbacks (like before_update). Rather than rely solely on adding where ('something.user_id = ?', 'current_user.id') in the controllers. I need something like Thread.CurrentPrincipal in .NET Is it safe to put reference to current user in Us...
Art Shayderov
1

votes
2

answer
90

views

Ids in an included XML layout for a table

How should I implement a table of 15 by 15 cells if I plan to dynamically update the cells individually? I began creating the table in my main.xml, but I don't want to describe the table with 15 TableRow elements and 15 elements in each of those all in one body of code. I feel like even putting just...
Art Vandelay

View additional