on-internet

How to configure on asterisk trunk PJSIP<->SIP?

I've got a problem with configure trunk on asterisk with PJSIP(IP:X.X.X.X) to SIP-server(IP:Y.Y.Y.Y). I want to configure trunk by IP not with user:pass. On SIP-server i have config in sip.conf file like below: [asterisk-pjsip] type=peer context=tests host=X.X.X.X deny=0.0.0.0/0.0.0.0 permit=X.X.X.X qualify=yes disallow=all allow=g729 allow=alaw allow=ulaw nat=yes canreinvite=no insecure=port,invite and on SIP-server peer with PJSIP are available: asterisk-pjsip X.X.X.X Yes Yes A 5060 OK (11 ms) On PJSIP-Server i use script to convert SIP.conf to PJSIP.conf and in SIP.conf i have: [asterisk_si

Join the discussion →

Chrome is blocking third party cookies; asking me to set Same Site attribute = None and Secure, but does not specify how or where?

This is the message I am getting using a Leaflet.js heatmap, and I can't see my circle markers, and I believe this is most likely the issue. Because a cookie’s SameSite attribute was not set or is invalid, it defaults to SameSite=Lax, which prevents the cookie from being sent in a cross-site request. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery. Resolve this issue by updating the attributes of the cookie: Specify SameSite=None and Secure if the cookie should be sent in cross-site requests. This enables third-party use. Specify SameS

Join the discussion →

Virtual Box not allowing me to type. [Arch Linux]

So I downloaded a virtual box and the cyberos for it. I am trying to run sudo pacman -S virtualbox-guest-utils. Once this runs through, it asks for my password. When I start typing it, there is nothing on the screen. It is as if it just rejects my typing. I tried type the password using an on-screen keyboard but there is still no result.

Join the discussion →

How to install Nuget package (.nupkg file) in Delphi IDE without using the GetIt Package Manager?

I am trying to use the TEdgeBrowser component in RAD Studio 10.2. I want to apply that component by following the guide document below: Using TEdgeBrowser Component and Changes to the TWebBrowser Component The document uses the component after installing the package through Edge search in Getit Package Manager. RAD Studio 10.2 GetIt was unable to find TEdgeBrowser: I downloaded the package from the Nuget site, and try to install the package manually. So I downloaded the nupkg file from the Nuget download link: Microsoft.Web.WebView2 Download Link In the document, the description of the compone

Join the discussion →

Curl Command Failing - SSL Certificate (Exit Code 60) Inside Docker Container Running on Windows Machine

There is a shell script that builds a Docker Image (calling a Dockerfile). In the Dockerfile there are several CURL commands like this: The Docker Container is using base OS as : Debian GNU/Linux 10 RUN curl -s -L \ https://repo1.maven.org/ ... RUN curl -s -L \ https://github.com/CodeNarc/ ... \ -o codenarc.jar RUN curl -s -L \ https://repo1.maven.org/ ... RUN curl -s -L \ https://repo1.maven.org/ ... The above Dockerfile is running fine when the host machine is either Mac or Linux based. But when we are trying to run this on Windows host machine the 2nd curl command i.e. to “github.com” is fa

Join the discussion →

Checkmarx: Unsafe object binding

We are using Java Spring framework. We have an endpoint for passing email object. @RequestMapping(method = RequestMethod.POST, path = "/api/messaging/v1/emailMessages/actions/send") String sendEmail(@RequestBody Email email); Here checkmarx says: The email may unintentionally allow setting the value of cc in LinkedList<>, in the object Email. Email Object is as follow: public class Email { private List<String> bcc = new LinkedList<>(); private List<String> cc = new LinkedList<>(); private String content; private ContentType contentType = ContentType.TXT; private String from; private String ret

Join the discussion →

Mask-image with png-file

I have a problem with mask-image: I want to use a png (or svg) as a clipping-mask on an image, so the image is shown in a certain shape. I found several examples online of how to do that, but refer now to this one: https://web.dev/css-masking/. When I use the png the author used in their example, it works. However, if I use my own png (or svg), it does not. I made sure the image is reduced to a white fill and a transparent part, just as the one in the example. I also just changed the URL, nothing else. However, the clipped image is not visible. I know that it is possible to use the SVG in HTML

Join the discussion →

Solve Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first

I tried to make html page with javascript to play sound on mouse over but when I tried the code on first reload on chrome browser it give me this error. How I can solve this issue in chrome. Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. <html> <head> <title>ضمور العضلات</title> <style> .img-container { text-align: center; } </style> <!-- Font Awesome --> </head> <audio id="musicSound" preload="auto" src="disability/sounds/song.mp3" > </audio> <audio id="hungrySound" preload="auto" src="disability/sounds/water.mp3" > </audio> <body s

Join the discussion →

Enable a Storybook control conditionally

I use controls in a story to see different states of a component. Some props only make sense if some other prop is enabled. For example, I have 3 props: isEmployee - boolean isActive - boolean canContactInTheWeekend - boolean Here, canContactInTheWeekend applies only if isActive is true. To make it more clear for a developer, I'd like to disable canContactInTheWeekend toggle when isActive is false. How can I achieve it with standard Storybook setup or via some plugins?

Join the discussion →

mailtrap error { Expected response code 250 but got code "550", with message "550 5.7.1 Relaying denied " }

I deployed my app in heroku, it's a simple laravel vue.js blog I'm still learning The problem is in the contact page, when I send mail from the localhost everything work perfectly but when I try to send the email from the website "http://scifiblog.herokuapp.com/" it give me this error { Expected response code 250 but got code "550", with message "550 5.7.1 Relaying denied "} I don't know where is the problem and i didn't find a solution Here is my .env : MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=*********** MAIL_PASSWORD=*********** MAIL_ENCRYPTION=tls MAIL_FROM_

Join the discussion →

How to "sudo" with Powershell (elevate Powershell, running a command as admin) on Linux?

If you want to run a command as admin on PowerShell on Windows, you can write something like this: Start-Process foo -Verb RunAs -ArgumentList '...' But it is not possible on Linux. Powershell will return you the following error: Start-Process: The parameter '-Verb' is not supported for the cmdlet 'Start-Process' on this edition of PowerShell. Indeed, According to the Powershell online documentation, "the [-Verb] parameter does not apply for non-Windows systems", so it is not possible to run Powershell as admin like this on Linux. My question is simple: how to elevate Powershell privileges on

Join the discussion →

Submit HTML form to .txt file, but how to make new posts appear on top, rather than on the bottom? [duplicate]

Everything works perfectly however there is one thing that I am trying to figure out and I’m not sure how to actually figure this out. On the HTML web form everything works perfectly, on the php page the takes the data that has been submitted is posted on the text file that I specify, but here is where I want to make a change. As of right now if I make a post, the oldest post remains on top where the newest one is at the bottom which is kind of annoying having to scroll all the way to the bottom for the newest post so my question is how can I reverse this so the oldest post is at the bottom an

Join the discussion →

Azure AD authentication with JWT token

I am using ASP .NET core web API (3.1). Where I need to authorized the user in 2 ways. First by SQL identity (with user name and password) and second by Azure AD SSO single tenant (by clicking Microsoft login button). I used JWT for SQL authentication and send back a JWT bearer token. This part is working fine. I need a way to do same JWT bearer token sending feature with Azure AD in same application. Please suggest.

Join the discussion →

SSRS compatibility with Edge

We use SQL Server 2012 and using version 44.17763.831.0 of Microsoft Edge. Edge, it would appear is supported for viewing reports but not for managing them. The screenshot below shows how in IE we are able to click on the drop down menu and edit a report, this does not work in Edge. Does anyone know of a way around this or if the latest version of Edge now supports this? Or perhaps upgrading SQL server would help?

Join the discussion →

How does ASCII 0x00A0 becomes 0x00E1

I'm reverse engineering a old parser application and the ASCII code 00A0 ("NO-BREAK SPACE") from a text file, is being parsed into 00E1 ("LATIN SMALL LETTER A WITH ACUTE"). What kind of encoding or coercion is happening, and how can I reproduce this behavior in C# ?

Join the discussion →

Which branch should workflow files be located on for GitHub Actions to execute them?

I have created on my main branch with on: push: branches: [ test ] I have noticed, that while I can trigger it manually, and it will work, it will not actually trigger if I push to test. For that, I needed to create that same action file on test. Now, it seems like I don't even need to have the action on the main branch, is that correct? So why does even the option so specify the branch that it should trigger on exist? It only triggers on the branches the file exists anyway. That said, I found it frustrating that I have to merge my one file from main to my test branch, is there a way to trigge

Join the discussion →

How to get URL of OData service from SAP Gateway for connecting it with Web IDE Personal Edition?

I'm trying to connect SAP Web IDE Personal Edition" (local Web IDE) following this tutorial: https://help.sap.com/viewer/825270ffffe74d9f988a0f0066ad59f0/CF/en-US/2cf47f37e34c428c97a51057733c0394.html But no connection happens. I guess the problem is in the host URL and the port. How can I get the URL? I tried using S4HANA URL but it didn't work. Also tried Fiori URL didn't work either. How to get the Gateway URL and port?

Join the discussion →

Data mining outlier removing and PCA

I need a dataset for some operations, such as data cleaning, outlier detection and removing, and principal component analysis (PCA), but I couldn't find any dataset. Also, I made outlier removing two columns dataset. I really don't know how can I make this with multi column. Do you have any suggestions for datasets and methods?

Join the discussion →

Why is it showing mongodb validation error

mongoose schema const mongoose = require('mongoose'); require('mongoose-type-url'); const mobilesSchema = new mongoose.Schema({ name:{ type: String, required: true, trim: true, maxLength:100 }, price:{ type: Number, required: true }, desc:{ type: String, required: true, trim: true }, productLink:{type: mongoose.SchemaTypes.Url}, imageLink:{type: mongoose.SchemaTypes.Url}, }, {timestamps: true}) const Mobiles = mongoose.model('Mobiles', mobilesSchema) module.exports = Mobiles controller const Mobiles = require('../models/mobiles') exports.createMobile = async (req, res) => { const { name, price

Join the discussion →

How to restrict route access to certain ids

I need to restrict guest access to certain links like 'fixtures/1' and 'fixtures/2'. When a guest tries to access other ids, like 'fixtures/3' for example, they should get a message like "page not found". I tried like this: Route::get('/fixtures/{team}', function ($team) { // })->where($team, '1')->name('front.fixtures'); but it doesn't work. How I can add clause like this? Here is my route without any changes: Route::get('/fixture/{team}', 'FrontController@fixtures')->name('front.fixtures'); I tried to restrict access using if, but everytime I open page, it doesn't check the id. Here is my me

Join the discussion →

Angular Application's first page loads very slowly

I am hosting my .Net Core / Angular application. When I visit the URL of my application the first page takes more than 90 seconds to load. I found that these files are very big (15MB): styles.js, scripts.js, main.js, vendor.js, polyfills.js. So I used this website to minify the JS code https://jscompress.com/. Now my application is faster, but I think that it can be even faster. Is there any way to make it faster? click here to see the image

Join the discussion →

MS-Excel: Retrieve Row Number where VBA Function is located

I hope I'm asking this in the correct forum: I'm writing a UDF in VBA for MS-Excel; it basically builds a status message for the transaction on that row. It steps through a series of IF statements, evaluating cell values in different columns FOR THAT ROW. However, this UDF will reside in multiple rows. So it might be in C12, C13, C14, etc. How would the UDF know which row to use? I'm trying something like this, to no effect Tmp_Row = Application.Evaluate("Row()") which appears to return a null What am I missing here ? Thanking everyone in advance

Join the discussion →

How to verify if an email is NDR using Microsoft.Graph

I am trying to identify if an Email is NDR or not. Using Microsoft.Graph, I trying to copy some emails from an email address to an external database. Because it could be the possibility to have emails that told me a specific email couldn't be delivered because of some reason, I want to skip them. I already check the properties of Message object, but I couldn't find something to help me in order to identify if that email is NDR or not. I am expecting to have a special flag or something like that. This is how I retrieve all the emails from the email address: var email = _graphServiceClient.Me.Ma

Join the discussion →

I have project created by laravel 8 ,and i use JWT for my API ,now i can't install pusher because of JWT version

Someone can help me to fix this conflict Your requirements could not be resolved to an installable set of packages. Problem 1 - tymon/jwt-auth is locked to version 1.0.2 and an update of this package was not requested. - tymon/jwt-auth 1.0.2 requires php ^5.5.9|^7.0 -> your php version (8.0.1) does not satisfy that requirement. Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Join the discussion →

nodemailer Invalid login: 535 Authentication Failed

I'm trying to use nodemailer(npm package) in my node app to send email through the contact page. It is giving me this 535 Authentication Failed error while I can assure you that my email and password are absolutely correct. var express = require('express'); var router = express.Router(); const nodemailer = require("nodemailer"); require('dotenv').config(); router.route('/') .post((req, res)=>{ const emailData=req.body; let transporter = nodemailer.createTransport({ host: "smtp.zoho.in", port: 465, secure: true, // true for 465, false for other ports auth: { user: process.env.EMAIL_ID, // gener

Join the discussion →

Checking HTML for formatting tags (bold, italics etc.)

I am using edgarWebR to parse 10K (SEC EDGAR) filings. I am trying to write an algorithm to deduce whether each HTML element is normal text, a subheading or a heading by checking how the document is formatted (e.g. some 10Ks might have all headings in bold italics, and subheadings in just italics) edgarWebR returns a dataframe with each element corresponding to a row, containing the text and HTML. An example of some HTML: <p style="margin-top:18px;margin-bottom:0px"><font style="font-family:ARIAL" size="2"><b><i>Our quarterly operating results have fluctuated in the past and might continue to

Join the discussion →

Route keep asking for parameter even if not set to receive any

I'm new to laravel and I'm having trouble with one of my web routes... I grouped some routes with the auth middleware Route::middleware(['auth:web'])->group(function ($router) { Route::get('/news', [NewsController::class, 'news'])->name('news'); Route::get('/profile/{user_id}', [ProfileController::class, 'profile'])->name('profile'); Route::get('/marketplace', [MarketplaceController::class, 'marketplace'])->name('marketplace'); }); Before this issue, I have set a user_id parameter for the news route and then removed it the next day, now the news route keeps returning error saying it needs user

Join the discussion →

Stream run-time generated gzip file with proc_open

I'm trying to stream a tar.gz without buffering anything in memory or saving data do disk. I need to gzip a bunch of PDF files (~100kb per file). Everything seems to work fine if small 10-20 bytes text files are sent through the script and the user downloads a readable tar.gz file, but when sending real data (run-time generated PDF files) the script blocks and stops Below is a snippet of the code. Why is the script blocking when writing to stdin after a couple of iterations of the loop? It stops at this point waiting for something Every step is logged to a file to see the message before writin

Join the discussion →

tensorflow: Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found

When i run my program i see this error: I have CUDA 11 and there is not such dll file in bin folder: I use: Python 3.8.7 CUDA 11.0 tensorflow 2.4.1 On this page there is information https://www.tensorflow.org/install/source#gpu tensorflow-2.4.0 Python 3.6-3.8 CUDA 11.0 that that versions are correct. Does anyone know how I can fix this problem? What should I download or reinstall?

Join the discussion →
Older stories