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
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
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
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
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
We have Snowflake in our organization and currently we don't have an ETL tool. I would like to pull data directly from Salesforce into Snowflake staging table manually for an analysis. Is it possible to do this with Python or Java code?
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?
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
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.
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
I've observed some strange behavior. I have an array of unsigned 32bit integers. I use one integer to encode 4 values, each one byte in size. I'd like to then pass such buffer to vertex shader layout (location = 0) in uvec4 coords; In order to achieve this, I use VkVertexInputAttributeDescription with format set to VK_FORMAT_R8G8B8A8_UINT. I have defined such handy struct struct PackedUVec4{ unsigned char x; unsigned char y; unsigned char z; unsigned char w; }; Then I build my buffer as PackedUVec4[] and such buffer is then sent to GPU. However, what I have observed, is that the order of bytes
I've already worked with nodeJS and express. Now I came across NestJS and found it quite interesting. There are several references to authorization in the NestJS documentation. RBAC (role-based access control) CASL (claims-based authorization) But I'm not sure which of the many variants meet my requirements. The aim is to create a REST API where on the one hand server-side permissions (rights to call up the route or change data records) and client-side permissions (which widgets are displayed in the frontend, what can the user see ) covers. I programmed everything myself in NodeJS and express,
I'm trying to use an anchor tag in Next.js. I don't get any console errors when I set it up and click the link, but the page does not jump to the element with indicated id property. This issue on GitHub suggests that people need to write a lot of custom code to use anchors. That can't be right. I have: const links = [ { label: 'Solutions', href: '#solutions', id: 'solutions' }, ]; <NavLink.Desktop key={index} href={link.href} id={link.id}> {link.label} </NavLink.Desktop> I get no errors, but the page does not jump to the label that has an id of 'solutions'. Does anyone know how to solve this,
I am new to react native, I tried to install BackEndless from this link: Patch for using Backendless JS-SDK inside React Native App. but I recognized that this was a mistake to do, any way, after installing the Backendless, the android application is not working any more and I get this problem: npm run android [email protected] android react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. (node:7797) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-wa
I appreciate if you could help me with such silly question. I used to have a line prompting me to choose a programming language whenever a new file is created in 'visual studio code'. By mistake, I clicked on don't show and, now, I need to return it back!. Do you have any idea how to display it again. The line is saying "Select a language to get started. Start typing to dismiss, or don't show this again." It is the first line appears in the created new file. I tried to search the settings, but I got lost. Thanks in advance,
I am trying to execute the Blazor WebAssembly Standalone project in Edge, suddenly this project is producing the following error Microsoft Visual Studio One or more errors occurred. Failed to launch debug adapter. Additional information may be available in the output window. Unable to launch browser: "Could not connect to debug target at http://localhost:1051: Could not find any debuggable target" OK I have tried the solution suggested on one or more errors occurred failed to launch debug adapter Visual Studio 2019 But it is not working. Can anybody help me on this? Thanks in advance Regards M
I have an ASP.NET web app which calls an API to get some data from an ASP.NET Core web app of mine. This worked fine until I added Microsoft sign-in to the ASP.NET Core app. I followed this Microsoft Documentation exactly step-by-step to add the sign-in. The sign-in works perfectly; however, this has caused an issue with the API. Now when the API call is made, I get this error in the console (with the sensitive info replaced by {...}): Access to XMLHttpRequest at 'https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/authorize?client_id={client_id}&redirect_uri= {redirect_uri}&response_typ
Hello I am wondering if there is a way to remove skype for business from a bulk of computers using a powershell command? I tried a few things, such as Get-ChildItem -Path "C:\Program Files (x86)\Microsoft Office\root\Office16\*lync*" -Recurse | Remove-Item This commands removes everything that has with skype business to do in the root folder Office16. But it doesn't do the trick as it is not accepted as an official way of removing it from the client computer, and could potentially cause issues. The other one is Get-AppxPackage *Microsoft.SkypeApp* | Remove-AppxPackage however this only applies
New to C programming ^^. I am working on an assignment, and I have to create a function that verifies if my array is sorted. I have to use a predefined template of code and solve it in a certain way. Description : Let's create a function which will tell us if an array is sorted or not. What is sorted? :-) Write a function that takes an integer array as a parameter (input) and returns a boolean (true/false). Your function should return true if the integer array is sorted in either ASC(ascending) or DESC(descending) order. Your function should return false if the integer array is not sorted. Num
I have a question about using the range function to iterate a string. Let's say I need to capitalize everything in the following string: string = 'a b c d e f g' Can I just write the following code? for i in string: i = i.upper() return string Or should I use the range function to iterate every element in the string? Finally, a more general question is whenever I need to iterate all elements in a string/list, when should I use the range function and when can I just use the "for" loop?
I'm very new to debugging. My whole programming "career" has been limited to inserting print statements to try to figure out why things aren't working the way I want them to. Now I'm trying to step through my Python code in Visual Studio Code, but when I try to step into the debugger, it jumps straight to the first exception (which is like 50 steps in to be clear). I saw that there are debugging configurations, but surely I don't have to learn all about those just to step through the code. And I know you can set breakpoints, but I'd like to see each step for now. Is there something I'm missing
I'm having a problem with Prisma data modeling give tried almost everything but i still don't get what this error is giving me. It says that table needs a default value when I already have given it a ID then i tried to remove the relation name same thing happens here my model: model UserToUser { id Int @id @default(autoincrement()) userId Int? follower User? @relation("follower",fields: [userId], references: [id]) following User @relation("following", fields: [followingId], references: [id]) followingId Int } Then it gives me an error saying "Step 2 Added the required column followingId to the
I have recently switched my app to Scoped Storage. However, I have noticed that when I share an image from within the app (via an Intent), the GPS location data is removed from the image's Exif metadata. I am aware that Scoped Storage has some restrictions on accessing the Exif location data of an image and I am aware about the permission <uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />, however adding this permission does not seem to have any effect when sharing the image. Any idea how to share images via Intent while retaining the location data in the image's Exif
As a long-time Visual Studio user, I often use Find in Files to find things throughout the project. In IntelliJ, this is causing me problems, because sometimes IntelliJ decides, for some reason, that what I want is "Directory" rather than "In Project". (I usually notice this after I'm baffled by the small number of matches.) How can I get IntelliJ to exclusively open Find in Files in In Project mode, and never in one of the other settings?
i want to search in elasticsearch using regexp but i must to escape caractere speciaux in this phrase " http://10.10.100.100/test.txt " I tried : GET indexname/_search { "query": { "nested": { "path": "test", "query": { "bool": { "must": [ { "regexp": { "test.search1": "http://10.10.100.100.*" } }, { "match": { "test.search2": "url" } } ] } } } } } not working. when i replace "http://10.10.100.100." with "http." it's working so i need to escape ":" and "//" how to do that with elasticsearch
Is it possible to have text starting out as ****** and display a 'reveal' icon (like an eye), and when they click the icon it is replaced with 123456? The number that I want to show/hide is stored in MySQL, and also what they use to reset their password, so would it also be possible to show ****** again after like 5-10 seconds.
TL;DR: why does this: class Data(BaseModel): a: int class IData(ABC): @abstractproperty def a(self): ... class XData(Data, IData): ... raise: TypeError: Can't instantiate abstract class XData with abstract method a when I instantiate XData likes x = XData(a=1)? I'm trying to implement Mixin pattern while I'm using Pydantics BaseClass to facilitate the instantiation and validation of data from my class. The problem is that my Mixins cannot inherit from my base classes (actually, the dependency is the opposite). Also, I'm using mypy so my implementation needs to be correctly typed. Let's see a s
My data lives in Salesforce objects and I am trying to connect Power Query to Salesforce Objects. The limitation here is that I have to extract the whole object and then filter the required fields. Is there an option to direct query salesforce object without having to extract the object.