on-internet

An uxexpected error has occured. Conda has created the above report. Upload/ Report not sent

When I updated conda to a recent one, it started showing this long list of unsent report after every command I pass. Here is the text it shows: Traceback (most recent call last): File "C:\Users\Amit\anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in call return func(*args, **kwargs) File "C:\Users\Amit\anaconda3\lib\site-packages\conda\cli\main.py", line 8 4, in _main exit_code = do_call(args, p) File "C:\Users\Amit\anaconda3\lib\site-packages\conda\cli\conda_argparse.p y", line 83, in do_call return getattr(module, func_name)(args, parser) File "C:\Users\Amit\anaconda3\lib\site-p

Join the discussion →

Two-level modelling with lme in R

I am interested in estimating a mixed effect model with two random components (I am sorry for the somewhat unprecise notation. I am somewhat new to these kind of models). Finally, I also want also the standard errors of the variances of the random components. That is why I am somewhat boudn to using the package lme. The reason is that I found this description on how to calculate those standard errors and also interesting, the standard error for function of these variances link. I believe I know how to use the package lmer. I am finally interested in model2. For the model1, both command yield t

Join the discussion →

inject instance of ability using casl library

With the latest version of casl that supports only vue 3, an instance can be created like this: import { ABILITY_TOKEN } from '@casl/vue'; export default { inject: { $ability: { from: ABILITY_TOKEN } } } https://www.npmjs.com/package/@casl/vue how can this be achieved with the previous version of casl plugin for vue?

Join the discussion →

Run a series of post-hoc t-tests ANOVAs in R

I have run a series of ANOVAs that examine the link between group membership and a range of dependent variables, with a dataframe generated containing the results of each ANOVA model (one row = one ANOVA model). I would now like to run a series of post-hoc tests based on a list I've generated of dependent variable-independent variable combinations that survived multiple comparison corrections. I've tried to write a a function that submits each of these DV-IV combinations to pairwise.t.test although my code is currently not working as expected. Please see an extract of this code with simulated

Join the discussion →

Why wrap a `Dialog` in a `FragmentDefinition`?

An UI5 dialog can be defined directly as a Dialog: <Dialog xmlns = "sap.m" id = "helloDialog" title = "Hello {/recipient/name}"> <beginButton> <Button text = "{i18n>dialogCloseButtonText}" press = ".onCloseDialog" /> </beginButton> </Dialog> Or can be wrapped by a FragmentDefinition: <core:FragmentDefinition xmlns:core = "sap.ui.core" xmlns = "sap.m"> <Dialog id = "helloDialog" title = "Hello {/recipient/name}"> <beginButton> <Button text = "{i18n>dialogCloseButtonText}" press = ".onCloseDialog" /> </beginButton> </Dialog> </core:FragmentDefinition> As far as I understand, a FragmentDefinition

Join the discussion →

Automating emails on Google sheets

I am trying to automate sending emails on Google sheets using Mailapp. My problem is the following: I need to include the gmail signature in the email. When using Mailapp, the pre-defined signature on gmail does not appear. Is there any solution for that? The other solution, as I found online, is using HTML. I need to develop the email automation for many users on a single google sheet and need to include Linkedin links. My issue here is that I am not able to assign HTML's 'href' as a variable (variable that is in fact a cell containing the linkedin link. JS: var linkedin_link = SpreadsheetApp

Join the discussion →

Node.js: Import .sql file and use it in query

I'm currently using an ORM for Node, this has worked fairly well in most cases but for more complex applicants I still need to occasionally write SQL. Luckily my ORM has a way to execute SQL queries: orm.execute(`SELECT * FROM "Users"`) Ideally I'd rather not write my SQL inline so I was wondering if it's possible to save my SQL query as a .sql file and then import it into a Javascript/Typescript file so it can be used. import sql from '/my_query.sql'; orm.execute(sql) Is this at all possible?

Join the discussion →

Jest encountered an unexpected token This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript

Facing issue while running Jest test cases in combination of D3 with Jest and angular. Test suite failed to run Jest encountered an unexpected token This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript. By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules". Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/en/ecmascript-modules for how to enable it. • To have some of your "node_modules" files transformed, you can specify a custom "trans

Join the discussion →

Create On Delete Cascade on existing Foreign Key

Can we create On Delete Cascade on an existing Foreign Key? I know we can create from SQL design of table going to relationships But I want to do this with the script query? I also not want to drop the foreign key first and then create the foreign key with on delete cascade.

Join the discussion →

Can We Create On Delete Cascade on existing foreign Key

Can we create On Delete Cascade on an existing Foreign Key? I know we can create from SQL design of table going to relationships But I want to do this with the script query? I also not want to drop foreign key first and then create the foreign key with on delete cascade, I not want this.

Join the discussion →

Listar fontes do sistema ou diretorio para um dropdown

Ha possibilidade em javascript ou outra linguagem de listar as fontes instaladas no sistema ou dentro de um diretorio e colocar no drop down? function changeFont(font){ document.getElementById("preview").style.fontFamily = font.value; } <select id="input-font" class="input" onchange="changeFont (this);"> <option value="Arial">Arial</option> <option value="Sans Serif" selected>Sans Serif</option> <option value="Comic Sans MS">Comic Sans MS</option> <option value="Times New Roman">Times New Roman</option> <option value="Courier New">Courier New</option> <option value="Verdana">Verdana</option> <

Join the discussion →

AWS Glue job fails with the error "Command failed with exit code 10"

I get this error message every now and then making the Job very unreliable. On deeper evaluation, and continuous logging, I see the following error: 2021-09-02 10:38:19,810 ERROR [main] glue.ProcessLauncher (Logging.scala:logError(70)): Unknown error from Python: Error Traceback is not available. The above error also does not mention where the issue lies. I am running Glue 2.0 with Python 3 with worker type G.1X. The data being pulled is only 100,000 rows, so this should not be a memory issue at all. The AWS page is very unhelpful with the error. The AWS Glue job fails with the error "Command

Join the discussion →

signal: aborted (core dumped), making a two sum pair from a vector

This is the question I'm trying to solve: Write findTwoSumPair, which takes in a vector of integers and a target sum, and returns a pair that represents two distinct indices of elements that sum up to the target value (with indexes sorted). There are no explicit time complexity constraints here (i.e. algorithm just needs to work as intended). Also make sure to handle empty input. This is my main: std::cout << "Q3" << std::endl; std::vector<int> q3Input1{0, 2, 3, 4, 5}; std::pair<int, int> q3Out1 = findTwoSumPair(q3Input1, 6); std::pair<int, int> q3Out2 = findTwoSumPair(q3Input1, 10); std::cout

Join the discussion →

Telegram API send message special character

I need to send a URL that contains the special character # through Telegram API post request. I currently use HTML as parse mode. The message to send is something like: <a href='www.example.com/#/otherparams'>inline link example</a> But when I send the message, the substring of the URL from the # to the end is automatically deleted. I tried to encode the # with the related ASCII code %23 and the message is sent correctly. But the when I click on the link, the URL doesn't work. I think there isn't a resolution of %23. If I manually replace the ASCII code in the URL bar of the browser with #, it

Join the discussion →

How to enable tree shaking for next.js?

Is there something to enable to have next.js perform tree-shaking/removal of dead code from dependencies? I've exported two objects like this: library.js export const foo = {foo:"foo"} export const bar = {bar:"bar"} And in my next.js app I do like this: page.tsx import { foo } from 'library'; console.log(foo); So now I'd expect a production-build will not include bar, and indeed something appears to go right because this line is produced: .next/server/chunks/621.js /* unused harmony exports bar */ But confusingly when I load the app in the browser the network-traffic indicates the unused expor

Join the discussion →

"Assertion 'iFuncWrapper' failed" when using valgrind

I have the following C program test.c #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include "libavformat/avformat.h" #include "libavutil/imgutils.h" int convertVideo(const char *in_filename, const char *out_filename) { AVFormatContext *input_format_context = avformat_alloc_context(); AVPacket pkt; int ret, i; int frame_index = 0; av_register_all(); // Input if ((ret = avformat_open_input(&input_format_context, in_filename, NULL, NULL)) < 0) { printf("Could not open input file."); return 1; } else { printf("Format %s, duration %lld us\n", input_format_context->iformat->long_name,

Join the discussion →

Valgrind Shows 64 Bit on 32 Bit Raspberry Pi

I am cross-compiling a C / C++ application to run on a Raspberry Pi 4 with the arm-rpi-4.9.3-linux-gnueabihf compiler from the Tools Github Repository on an x64 Debian Linux system running in a VM. I am having some issues with this application so I built Valgrind from source on the Raspberry Pi with GCC 8.3.0-++rpi1. The compiler binaries I am using can be downloaded here: https://github.com/raspberrypi/tools/tree/master/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf If I run Valgrind on the RPI I get a number of errors, many of which indicate "Invalid read of size 8". My understanding is this woul

Join the discussion →

How to resolve 'Illuminate\Support\Facades\Route' error while debugging in Laravel?

I've created one controller with web route. If I put a request in browser I am getting my output, but when I tried to debug I am getting a following error in debug console: PHP Fatal error: Uncaught Error: Class 'Illuminate\Support\Facades\Route' not found in /home/payarc/Desktop/myDummy/routes/web.php:21 Stack trace: #0 {main} thrown in /home/payarc/Desktop/myDummy/routes/web.php on line 21 How to resolve this error? web.php <?php use App\Http\Controllers\UserController; use Illuminate\Support\Facades\Route; Route::get('/div',[UserController::class,'dummy']); UserController.php <?php namespac

Join the discussion →

Rename editor tabs in DataGrip

I'm trying to figure out how to rename the editor tabs in DataGrip to be more accurate. I could not find a way to do it and cannot imagine that DataGrip does not offer such an important feature. I am probably missing it somewhere. Here's a screenshot of my databases on DataGrip vs DBeaver. What I am trying to change is the name of the editor tab as soon as I open the query console. At the moment it looks like this in DataGrip vs in DBeaver. I would like to be able to always exactly know on which Database I am, an DBeaver offers that under the Script preferences as Script Title Pattern. There y

Join the discussion →

How to form SOQL query for multiple objects in salesforce

There are 5 objects: contact, account, account_contact__c, user, recordtype in Salesforce. Below is the SQL query which needs to be converted to Salesforce SOQL query SELECT c.id,c.fname,c.lname,u.name, ac.desc, r.date FROM contact c LEFT JOIN user u on c.oid =u.sfid LEFT JOIN account_contact__c ac on c.sfid=ac.contact_id__c LEFT JOIN account a on a.sfid=ac.account_id__c LEFT JOIN recordtype r on a.recordtypeid =r.sfid and r.type=‘test’ I managed to join 2 objects but in the second table, I’m not able to add more than one field. Select id,fname,lname from contact where id in ( select contact_i

Join the discussion →

Installing Elasticsearch 6.8.15 on Apple-M1 Macbook issues

I am trying to download elasticsearch 6.8.15 for my current project. I am on a 2020 Macbook air with the M1 chip and have tried download using brew and a docker image but whenever I try to get elasticsearch to run I get a few issues. First it appears some of the java settings are adjusted due to the M1 chip and this warning is shown: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested OpenJDK 64-Bit Server VM warning: UseAVX=2 is not supported on this CPU, setting it to UseAVX=0 Then I get this

Join the discussion →

How to show notification badge count on Android 10+ devices?

How can we show notification count in Android on Home screen app launcher icon with count and how to increment and decrement this count? And if we want to increase count with silent push means without showing notification in app bar then can we achieve this functionality too?

Join the discussion →

MSAL React is not signing out from application instead it is also signing out from other tabs which are authenticated sessions

I am trying to logout the user in my react application which uses MSAL and with user account [email protected]. Now, there is a tab already opened with portal.azure.com for the same user. When the user gets logged out from the React application, while we are changing the tenant or accessing some links in portal.azure.com, it is asking to reenter the credentials for the user that is signed in before. It means the Logout is happening even for other url which is having authenticated session for the same user , which is in other tab and opened. Thus, the user is signing out from identity

Join the discussion →

Is there a way to download a csv file from a website and upload it directly to Amazon S3 using Lambda?

I'm making an app that cleans-etc-search a CSV that is updated daily on a website. I was using an EC2 to download the file using python pandas.read_csv(url) to an EBS, but now I want to make the app serverless. I want to automate the download from 'https://sam.gov/api/prod/fileextractservices/v1/api/download/Contract%20Opportunities/datagov/ContractOpportunitiesFullCSV.csv?privacy=Public' and upload it to S3 serverless. I'm not sure if is possible to do it serverless. Is there a better way to do it? The file size is about 500 MB.

Join the discussion →

Creating a Bootstrap-like grid system in TailwindCSS

I am using Tailwind with the Blade template in Laravel. How can I create cards like in Bootstrap, where there are three items per row? @section('content') <div class="flex justify-center"> <div class="w-8/12 bg-white p-6 rounded-lg mt-10"> @forelse($products as $product) <!-- Box --> <div class="md:flex md:justify-center md:space-x-8 md:px-14"> <!-- box-1 --> <div class="mt-16 py-4 px-4 w-72 bg-white rounded-xl shadow-lg hover:shadow-xl transform hover:scale-110 transition duration-500 mx-auto md:mx-0"> <div class="w-sm"> <img class="w-64" src="{{ asset('storage/images/products/' . $product->i

Join the discussion →

I cannot see any output using Python in VSCode

I am trying run a script in VSCode. I press Ctrl + Alt + N and get this output: [Running] python -u "the_directory_of_file\the_file_I_use.py" [Done] exited with code=0 in 0.191 seconds I don't see my program's output. However, when I run the script from the terminal, it works correctly. How do I get VSCode to display my program's output?

Join the discussion →

Keyboard Shortcuts no longer working on ALL Delphi versions on this Windows 10 PC

One of my favorite Delphi IDE keyboard shortcuts is the handy Ctrl-K-I, that let's me indent a block of code that contains existing indents, and which indents the selected set to the right, while keeping all lines in the block at their same relative indent. I was using this shortcut, but I apparently hit a wrong key on the keyboard. Suddenly I found that ALL keyboard shortcuts had stopped working -- in ALL versions of Delphi on this Windows 10 PC. Windows shortcuts like Ctrl-V still work, and GExperts shortcuts also still work, but the Delphi key mapping shortcuts in the IDEs no longer work. I

Join the discussion →
Older stories