Categories
Mastering Development

Why would Azure Search Indexer stop working on a Live app

I have a .Net/C# app that calls the Azure Search Service. It’s been working fine to find a list of PDF files I have in Azure storage based on keywords submitted. But a couple of days ago, the live app on Azure stopped working – no documents are returned from a search. However, on Local, […]

Categories
Mastering Development

How to fix security within WinSCP SFTP scripts in PowerShell with hard-coded passwords

So my organization has tasked me with cleaning up some of the security issues in regards to some automated scripts that have hard coded passwords within the scripts that are running as automated tasks. One such task contains SFTP scripts that export and import files to and from with the password, host name, credentials, port, […]

Categories
Cryptocurrency Development Ethereum

Web3j and Ganache stack underflow error

I’m experiencing the error “Error processing transaction request: VM Exception while processing transaction: stack underflow” basically with any contract. I’m using Ganache v2.1.2 and Web3j 4.5.15. I’m able to deploy the contract with Remix without any issue. The Java code: public class contractCR { static class OSCGasProvider implements ContractGasProvider { public OSCGasProvider(){} @Override public BigInteger […]

Categories
Cryptocurrency Development Ethereum

Contract is not deploying properly on Geth private network using web3j SDK

I am new to Ethereum. I have created private blockchain using Geth on my local and trying to deploy my smart contract using java web3j SDK. I am able to deploy my contract using java and getting contract address but when I try to call createItem() method to set some values then its not able […]

Categories
Cryptocurrency Development Ethereum

Not able to decode the input data from transaction using web3j (Java)

I am creating transactions using web3j and passing some private data in that transaction. The transaction is also getting mined . I have subscribed to the mined blocks, where I am fetching the transactions added in the mined block. I want to retrieve the input data passed earlier, but unable to get it. Please help […]

Categories
Development

UWP VPN profile didn’t create VPN connection

I created a VPN profile, but settings didn’t set: name, password and authentication method. I tried to run project as administrator and it didn’t also worked. What’s the problem? auto mgr = ref new VpnManagementAgent(); auto profile = ref new VpnNativeProfile(); profile->AlwaysOn = true; profile->NativeProtocolType = VpnNativeProtocolType::L2tp; profile->UserAuthenticationMethod = VpnAuthenticationMethod::PresharedKey; profile->ProfileName = “TestVpn”; profile->RememberCredentials = […]

Categories
Development Java Website

access a azure active directory protected web service using Java

Here is the background: App Service A, using Tomcat and Springboot, provides web service end points. e.g.https://xxx.azurewebsites.net/appA/order/1111 webapp A is protected by AAD authentication (express config). An application (web-app) is registered in AAD. The client id for web-app is [client-id]. A client secret [client-secret] is created in web-app. The AAD directory id is [tenant-id]. Using […]

Categories
Development Java Windows

No effect in setting proxy to AuthenticationContext in KeyVaultClient java

I want to run my Java code to read Azure KeyVault with proxy in Windows server. I’ve gone through many posts but could find any working solution. Mostly given for c# but I want for Java. My code is working fine in my local machine but when I’m trying to run same code in Pre-Prod […]

Categories
Development Google

Google traslate api – PermissionError: [Errno 1] Operation not permitted:

I use anaconda navigator and I am starting to learn how to used google’s apis i have followed the instruction online to start off using the api https://cloud.google.com/translate/docs/reference/libraries the first part I get stuck in is at this stage Provide authentication credentials to your application code by setting the environment variable >GOOGLE_APPLICATION_CREDENTIALS. Replace [PATH] with […]

Categories
Cache Development Docker Laravel

Laravel container Linking to Docker memcached container

i try to use docker container to link memcached container,but $serve[‘port’] get full URL here for some information laravel .env MEMCACHED_HOST=memcached MEMCACHED_PORT=11211 docker for laravel project docker run –name DAC -d –link mysql57:mysql -p 8082:80 -v –link memcached:memcached dac docker memcached images use official memcached:latest https://hub.docker.com/_/memcached docker run –name memcached -d memcached but unfortunately when […]