instruction
stringlengths
0
30k
Your code is missing an instance of the `interface`. I added one in `top`: module dst_rd_blk ( input logic clk, sec_rd_if.dst sec_rd ); //< main rtl code > endmodule module top ( input logic clk ); always_comb begin // Combo log...
1. `char c[2]` is needed hold a string with one character with the terminating `'\0'`. You could also use `char c[1]` or just `char c` and read a single non-space character with ` %c` (space prefix is significant). When you print the character you then need to use the `%c` (instead of `%s`) conversion specifier...
I am using a Mac M1 Pro. I am new to IOS development. when I added Cocoapods like Lottie and Kingfisher they were not getting added and I could not add a package from the form "Add package dependency". I can not add any third-party package. [Cocoapod installation issue](https://i.stack.imgur.com/kZ79w.png) ...
null
I am using a Mac M1 Pro. I am new to iOS development. When I added CocoaPods like Lottie and Kingfisher they were not getting added and I could not add a package from the form "Add package dependency". I can not add any third-party package. ![Cocoapod installation issue](https://i.stack.imgur.com/kZ79w.png) ...
I can not install CocoaPods and any package from "Add package dependency"
|ios|cocoapods|swift-package-manager|
You can't use parenthesis to initialize a class member directly in its declaration, but you use curly braces instead: `clsAddress Address {"", "", "", ""};` I would suggest giving `clsAddress` a default constructor instead and let the compiler initialize the empty strings for you: `clsAddress() = default;` ...
{"Voters":[{"Id":4370109,"DisplayName":"Brian Tompsett - 汤莱恩"},{"Id":888580,"DisplayName":"lane.maxwell"},{"Id":2756409,"DisplayName":"TylerH"}],"SiteSpecificCloseReasonIds":[16]}
add this to the head part of your html <meta name="viewport" content="width=device-width, initial-scale=1" />
I am using pino for logging, and using pino-pretty as well. I have come across an issues with pino printing special characters.\ ex: ``` key: "someKeyJson" value: "\t\t\t\tsomeValueJson\nstring\t\tthat isnt being formatted" ``` When what I would like is something along the lines of\ ``` key: "someKeyJson" v...
pino-pretty logging special characters as literal
|node.js|logging|pinojs|
null
null
{"Voters":[{"Id":23889907,"DisplayName":"Parham Daneshnejad"}],"DeleteType":1}
I am migrating my project to Spring 6 and Hibernate 6.4.4. Everything is working +/- fine, but I have big problem with debugging. When I change in `log4j2.properties` logging to debug I get error from hibernate. But in info mode works everything good. log4j2.properties: ``` #rootLogger.level =...
Hibernate 6.4 in debug logging do not start
|java|spring|hibernate|
null
`I have used the same hook sendTransction in both nextjs for web and expo for mobile app from wagmi, when i send transaction from web it perfectly opens up my metamask and approval popup appears but when i use send the same transaction from expo mobile app it opens up metamask but approval popup doesnt't come up w...
This is my first time using Type Classes, and I'm testing the hubble:icon type class described here: [Type classes](https://www.palantir.com/docs/foundry/object-link-types/metadata-typeclasses/). When I build an object table with a string column containing this sample image url ([Color_icon_orange.png](https://upload....
Has the hubble:icon Type Class been deprecated?
|palantir-foundry|foundry-workshop|
null
|c++|macos|sdl|sdl-2|
I have a container and this container have a row with a text and a button , the button here show a modal bottom sheet , and Inside it I want to make My segmented button so the user choose one of the categories , the probllem is in the segmented button , it is sticking to that first value and it is not updating to new...
I have js DataTable to display list of items. Each item has few properties and few images. I create js DataTable to display all info. Everything is working except the image. Usually image is accessible by link: @product.ProductImages.ImageUrl My js DataTable code: function loadDataTable() { ...
I have a project that contains both my API with its controllers and everything else, as well as identityserver4 running under the same localhost. Everything works great when I'm not using docker, but as soon as I use docker I keep getting the following error when calling a secured API route : System.InvalidOpera...
Problem with SSL Certificate when the .Net App calls itself in the docker container
|.net|docker-compose|ssl-certificate|identityserver4|
Thanks in advance for answer my question. Assume I have a table like t1. There are 3 columns in the table. t1.id t1.ins_dt base_id 10000 2024-03-27 00:00:00 1234/45678/000/00 10000 2024-03-27 06:30:00 1234/45678/001/00 10000 2024-03-27 09:30:00 1234/45678/002/00 I have another table li...
Whatever the data available in previous record it should add to the new record
|sql|oracle|oracle11g|oracle-sqldeveloper|oracle10g|
null
**First solution** Don't leave Gradle. Instead, try use a file collection. It should work! But not for me, se second solution dependencies { def webHostedJarFiles = ["http://url.to.jar", "http://url.to.second.jar"] .collect{fileName->new File(fileName)} ...
I have a javascript application in which I'm trying to handle a drag event but the drag event listener seems to listen for the mouse up event (dragend) as well as the drag event, and this is causing issues. The application is a playlist player. It loads a playlist and allows the user to listen to it with controls as sh...
Why does mouse up trigger drag event?
|javascript|html|mouseup|drag-event|
pd.get_dummies(pd.Categorical(Predictors_1['cylinders'],categories=list(reversed(list(Predictors_1.cylinders.value_counts().index)))), drop_first=True) //
Use CalenderView in Kotlin, and then use its built-in function addDecorator() implement it like..(JAVA) binding.calendarView.addDecorator(new DayViewDecorator() { @Override public boolean shouldDecorate(CalendarDay day) { return day.isBefore(CalendarDay.to...
Your ibm_db has conflicts. Maybe you cloned it from some repository and are trying to run it localy? So, from your app path: First download [clidriver][1] (To avoid this step on ibm_db install) and unzip it to the CLIDRIVERPATH (just any directory you would like) Then follow those (Remove ibm_db, config IBM_D...
1. thats the public declaration, the implementation is private and hidden. 2. it's because the setter isn't changing the value of that struct, the setter is just forwarding the call on to an internal object. 3. I'm not clear on what you're asking but it might help to mention the $ syntax is sugar for Binding(get: { }...
In order to achieve this you need to apply the middleware globally at `bootstrap/app.php` like this: ``` use Illuminate\Foundation\Application; use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; return Application::configure(basePath: dirname(__DIR__)) ...
I'm working on a Flutter app and I need to implement screen recording functionality. However, I'm facing challenges with recording the entire screen outside of my Flutter app or controlling a specific area for recording while ensuring that all features, including sound, are captured. Here's what I've tried so far: ...
How can I record the entire screen outside of my Flutter app or control a specific area for recording, including sound?
|flutter|package|screen|screen-recording|multiple-records|
null
This is the first time I use the flutter firebase. I have done all the necessary steps for the project and put everything in the right place. But I get this error every time I run the project. This is the link of my project : https://github.com/hmoodaps/chat_app > E/flutter (15196): [ERROR:flutter/runtime/dart_vm...
SegmentedButton is not updating its state
|flutter|dart|
null
You can run them in separate terminals doing this if __name__ == "__main__": client.run(TOKEN)
I have the following component which renders a list of properties, with each one clickable to an individual slug page with more details about the chosen property: app > for-sale > page.jsx ``` 'use client' import { ArticleCardFooter } from "@/components/ArticleCardFooter"; import { Container, Grid } from '@man...
Fetch call is not a function when navigating back from slug page in Nextjs
|next.js|nextjs-dynamic-routing|
I'm using wxWidgets on Windows with MinGW64 toolchain and CMake. I am confused about how to make my program DPI-awared. When using Visual Studio, "wx_dpi_aware.manifest" can simply solve the problem; However, I do not know how to use it for MinGW64 and CMake. I have asked ChatGPT and got these useless codes: ...
|javascript|reactjs|redux|
The issue here is that a `QColumnView` is actually composed of a series of `QListView` columns. So the column-view itself isn't much help when trying to handle most signals and events. One way to work-around this is to reimplement [createColumn](https://doc.qt.io/qt-6/qcolumnview.html#createColumn) and install an event...
Here is your modified javascript (i have made a comment of what i added) <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> let timeoutId = null; function btnAnimation(e) { const size = 1.2; const button = e; //We check if the animatio...
I get this exception after the project run with my flutter project
The list of hot corner actions in System Settings is not customizable. It’s an interesting enhancement request, though, if you feel like spending a little time with Feedback Assistant. That said, it’s possible to write your own app that watches for hot corners or other pointer gestures, and at least one already exi...
I have two identical c++ classes that are instantiated from within a lambda which is run in a separate thread. Below are the two classes: ```` class A : public C { std::thread thr; thrFunction(X &x) { while(atomic<bool>){ //long running process } } public: A(); int start(X...
vc++ thread constructor throwing compiler error c2672
|c++|multithreading|compiler-errors|
Inside my top level SystemVerilog module is an instance, (`rd_blk`), that has an interface port, (`sec_rd`). I need to temporarily connect it to combinational code, but I'm having difficulty coming up with an error free solution. Suggestions please. ``` interface sec_rd_if ( input wire clk ); logic sec...
**FULL ERROR:** > ./node_modules/@tanstack/react-query/build/modern/index.js Error: > ENOENT: no such file or directory, open > 'C:\Users\riodj\infoscan\node_modules\@tanstack\react-query\build\modern\index.js' **CONTEXT:** after installing and setting up trpc using npm install @trpc/server@next @trpc/c...
tanstack react-query ENOENT error when uninstalling v5 and installing v4
|react-query|tanstackreact-query|enoent|trpc|
First of all, notice that, while named the same, have different roles and come from different domains (1/1/2023 might never be applicable to department start_dates), so i suggest to call these datapoints distinctly to avoid confustion: emp_start_date, emp_end_date for employee and dept_start_date/dep_end_date for depar...
|python|python-3.x|docker|
Just to add a little detail to the accepted answer from @Fabiano: *Does FGM always find out a working adversarial image? i.e., Is it normal that FGM fails?* - No, FGSM does not necessarily always find a working adversarial image. Depending on the exact task and other factors, it may or may not succeed. FGSM is bas...
{"Voters":[{"Id":5947043,"DisplayName":"ADyson"},{"Id":157957,"DisplayName":"IMSoP"},{"Id":7644018,"DisplayName":"Paul T."}]}
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'prettier' imported from C:\Users\aryan\AppData\Local\npm-cache\_npx\86fd6f984ad48a35\node_modules\thirdweb\dist\esm\cli\commands\generate\generate.js at packageResolve (node:internal/modules/esm/resolve:853:9) at moduleResolve (node:internal/modules/esm/resol...
Are you looking for something like this? If yes, this type of problems generally has to do with reshaping the data. The format should be the long format and the data is in wide format. See [this post](https://stackoverflow.com/questions/2185252/reshaping-data-frame-from-wide-to-long-format) on how to reshape the dat...
I want to use multiple GPUs to do matrix multiplication, like `torch.mm(a, b)`, to reduce memory usage on a single GPU. Here is the code working on a single GPU: ```python import torch a = torch.randn(30000, 30000).cuda(1) b = torch.randn(30000, 30000).cuda(1) c = torch.mm(a, b) # during this process, th...
null
Here's an example of my problem: [![my_problem][1]][1] To find all elements for January (including `=0` values) I used the following formula which works: ```none =SUMPRODUCT((MONTH(Table1[DATE])=MONTH(1&P18))*(Table1[DATE]<>"")) ``` where `P18` = `"GENNAIO"` --> (JANUARY) How do I know the number of record...
I am writing a program in TI Code Composer Studio assembly-only empty project using the MSP-EXP430FR6989. The assembly-only empty project uses MSP430 Assembler Code Template for use with TI Code Composer Studio. Here is the project requirements: Use the MSP430 seven-segment daughter board to display and multiply tw...
Daughter-board multiplier
|msp430|code-composer|
null
|linux|module|embedded|kernel|
I have a SOAP controller (Java 11, spring-ws 3.1.3), and I need to implement non-blocking delay before responding. **SOAP Controller**: ```java @Endpoint public class SoapController { @PayloadRoot(namespace = "http://mysoapsite.ru/2020/webservice/SingleFormatService", localPart = "AuthData") @Res...
Use CalenderView in Kotlin, and then use its built-in function addDecorator() implement it like..(JAVA) binding.calendarView.addDecorator(new DayViewDecorator() { @Override public boolean shouldDecorate(CalendarDay day) { return day.isBefore(CalendarDay.to...
I have 2 different service, lets say `NavService` and `PageService`, each receives a DbContext injected in the constructor. One service is used in NavMenu's `OnInitializedAsync`, and the other in the current page's `OnInitializedAsync`. My problem is that I get an "A second operation was started on this context ...
{"Voters":[{"Id":2780711,"DisplayName":"icecub"},{"Id":3832970,"DisplayName":"Wiktor Stribiżew"},{"Id":839601,"DisplayName":"gnat"}]}
Use CalenderView in Kotlin, and then use its built-in function addDecorator() implement it like..(JAVA) binding.calendarView.addDecorator(new DayViewDecorator() { @Override public boolean shouldDecorate(CalendarDay day) { return day.isBefore(CalendarDay.to...
I'm trying build a model where you can add shows to your watchlist and review them. When you either add a show to your watchlist or review it, I'm creating a new show in the db if it doesn't already exists, otherwise i retrieve it and update it. My issue is that when i'm retrieving an existing show and inserting the n...
null
In case it is still helpful, I had the same issue and traced it to a bug in amplify related to a aws-sdk v2 => v3 breaking change. The open issue is here: https://github.com/aws-amplify/amplify-js/issues/13192 The basic problem is that in core/src/clients/middleware/retry/defaultRetryDecider.ts#L19 const ...
Thanks in advance for answer my question. Assume I have a table like t1. There are 3 columns in the table. t1.id t1.ins_dt base_id 10000 2024-03-27 00:00:00 1234/45678/000/00 10000 2024-03-27 06:30:00 1234/45678/001/00 10000 2024-03-27 09:30:00 1234/45678/002/00 I have another table like t2. ...
You can't use *parenthesis* to initialize a class member directly in its declaration, the syntax rules don't allow it. But, you use *curly braces* instead, eg: ``` class clsPerson { ... clsAddress Address {"", "", "", ""}; ... }; ``` I would suggest giving `clsAddress` a default constructor i...
In Python, trying to decrypt a file using gnupg. Using 'import gnupg'. (NOT python-gnupg). Getting error message - (gnupg:FAILURE status emitted from gpg process: decrypt 4294967295") AND its not decrypting the file. Generating 0 byte output file. gpg --version >> 2.2.27 Debug info/Hints - 1. After impor...
{"Voters":[{"Id":5053002,"DisplayName":"Jaromanda X"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":839601,"DisplayName":"gnat"}]}
I try to bake a normal Map but everything is not working. So I watched a tutorial and followed it and it still doesnt work at all. I simply created a plane with some deformation and a simple plane for the baking. I UV unrapped both, created a new image texture, selected it in the Shading Nodes, selected the High Po...
How do I bake a normal Map in Blender?
|blender|normals|shading|
null
On text files with many paragraphs, sentences or phrases are numbered.  I use regexp in perl to remove those numbers.  They are always followed by the first letter of the sentence/phrase **or** by a space.  But that also matches numbers legitimately part of the text.  If I could limit it to a string of one or two digit...