How should I change my Graph structure (very slow insertion)?

This program I'm doing is about a social network, which means there are users and their profiles. The profiles structure is UserProfile. Now, there are various possible Graph implementations and I...

How to recalculate axis-aligned bounding box after translate/rotate

When I first load my object I calculate the initial AABB with the maximum and minimum (x,y,z) points. But this is in object space and the object moves around the world and more importantly,...

Getting rid of '... does not point to a valid object' for an old git branch

I have a fork of a Git repo and my clone appears to have an issue with an old, no longer existant, branch. I keep seeing this message: error: refs/heads/t_1140 does not point to a valid object! I...

Why NoSQL is better at "scaling out" than RDBMS?

I have read the following text in a technical blog discussing the advantages and disadvantages of NoSQL " For years, in order to improve performance on database servers, database administrators...

How to empty or clear heap memory dynamically

My project is totally bases on images. I am using a gallery and a coverflow in my project and due to less heap size the app is forcefully close. So every time I load my app I want to clear heap...

Apply PCA on very large sparse matrix

I am doing a text classification task with R, and I obtain a document-term matrix with size 22490 by 120,000 (only 4 million non-zero entries, less than 1% entries). Now I want to reduce the...

page refresh causes css to be ignored

My page loads fine then as soon as you hit the refresh button all the styling disappears. It seems to be specific to chrome. If I look at the network tab I see that my css files returned with 304...

Visual Studio hangs constantly during build

Probably between 25 and 50% of the times I build my solution, I see this: "The operation you requested is taking longer than expected to complete. This dialog will close when the action...

How to get the Headers/Column Name of gridview table binded with SqlDataSource

I want to extract the columns names of gridview and bind those columns names with a drop down to make a filter template. I'm facing little challenge to get the columns names from gridview on page...

How to automatically add / remove scroll-bars as needed by text height

Many commercial word processors have a default behavior that automatically hides the vertical scroll bars when the lines of text in the document are less than the visible window; and, the scroll...

Setting-up an open-source decentralized social-network

I am trying to build an open-source decentralized social network, created and supported by the community (Facebook like). Using Datastax Enterprise/Cassandra it is possible to setup a working DHT...

Sieve of Eratosthenes has huge 'overdraw' - is Sundaram's better after all?

The standard Sieve of Eratosthenes crosses out most composites multiple times; in fact the only ones that do not get marked more than once are those that are the product of exactly two primes....

Using webpack with NodeJs native modules

I have an Node.js app that has few native module which are created via node-gyp. These modules do not end up in "node_modules" and are being required via standard "require" from Node... My webpack...

Why does Redshift not need materialized views or indexes?

In the Redshift FAQ under Q: How does the performance of Amazon Redshift compare to most traditional databases for data warehousing and analytics? It says the following: Advanced Compression:...

Firebase Project Results in "Auth/network-request-failed" error on login

I'm running into a strange problem with my Cordova Project that uses Firebase. It works perfectly in browser, but when I run my app on an emulator or phone (Android), (at least) the first login...

Express server doesn't close

I'm creating an Express server with reloadable endpoints. To make this possible I created an endpoint for such a purpose. But when I call server.close() on the Express's HTTP server it still...

Antd: How to override style of a single instance of a component

I'm using webpack to import the antd.less file in a global App.less file. Then I override some global styles and webpack bundles everthing: // App.less @import "~antd/dist/antd.less"; @import...

No 'Access-Control-Allow-Origin' header is present on the requested resource—when trying to get data from a REST API

I'm trying to fetch some data from the REST API of HP Alm. It works pretty well with a small curl script - I get my data. Now doing that with JavaScript, fetch and ES6 (more or less) seems to be a...

Web view is too slow

Web view takes more than 4 sec to load the webpage. The same page takes less than 2 sec in Native app. Is there a way to speedup the load time. I tried both Official webview_flutter and...

Vuetify performance issues

I have picked vuetify for an offline PWA project where I work with indexed db and some notable size data (5k-6k/collection). I have to transfer it between vuex and idb after I get them from...

how to fix sqliteException in android java

I have trying to insert values into database as well as in content provider but getting null sqlite exception.Before using content provider class my data are added to database without any...

NextJS - export is broken (no CSS, no JS)

I am using NextJS (https://nextjs.org/) Version 9.0.6. My next.config.js looks like this: /* eslint-disable */ const withLess = require("@zeit/next-less"); const lessToJS =...

Performance of Axios http calls is bad, calls are taking longer time resulting in lower transactions per second

We have microservices built using node js. One service(say service A) need to make http api call to other service(say service B) to complete its functionality. Load test of service A is giving...

Issues deploying Next.js to Vercel using #getStaticProps()

Using Next.js hooked up to Apollo, I have a good 50 or so non-dynamic urls fetching data using getStaticProps(). It works wonderfully, and I love how the pages load in. The issue I am facing is...

Failed to load config "react" to extend from

I am trying to create a react app without using create-react-app using the following...

Babel can't resolve imports in it its own source code

I have upgraded a React project to Webpack 5. The aliases are resolved by Babel. Everything was working fine with Webpack 4. But when launching webpack dev server, Babel makes the build crash...

TypeError: this.getOptions is not a function

I am facing a weird error when I installed Bootstrap. The error is below. I tried uninstalling less-loader and installing [email protected], because I saw it online, but it did nothing. I am...

Loading dynamic schema JSON files into a BigQuery table using autodetect

This question is very similar to this one - but using the python API, and a couple of years later - and as the solution there is not complete, I thought it's best to open a new question. I have a...

Powershell: Cannot find a variable with the name 'AmsiContext'

Summary Using Vagrant with Virtualbox and Powershell 5.* I get a message while running any vagrant commands. PS C:\Users\dharris\SparkleShare\vagrant-salt> vagrant up es-master Vagrant failed to...

npm install issue : 27 vulnerabilities (16 moderate, 9 high, 2 critical) To address all issues , run: npm audit fix --force

When I enter npm install in the relevant react project folder, it gives back this error after installing node modules => 27 vulnerabilities (16 moderate, 9 high, 2 critical) To address all...