instruction
stringlengths
0
30k
I restructured my project and experience problems when it comes to the link of my .css-file - I am using xampp/Apache - The .htaccess file is in ".../htdocs/project" including "RewriteCond %{DOCUMENT_ROOT}/public/$1 -f" - My Head partial is in ".../htdocs/project/views/partials/head.part.view.php" and includes the...
This can be done using IPython and [vim-ipython-cell][1]. This plugin allows Jupyter Notebook style execution using a custom defined ipython shell. I have been working with this since a while and I can recommend. It builds on a more basic vim plugin [vim-slime][2], which technically can also do what you want. ...
I have been able to use react and material-ui in the browser without nodejs. Example: ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Title</...
TS2339: Property 'token' does not exist on type 'Response'
|angular|typescript|types|rxjs|angular17|
Using `edges = set()` makes your result unordered. Theres no direct way to use ordered set in python execpt using `ordered_set` package or you can try (not so clean way) to create an ordered set from a dictionary keys. def get_edges_set(lines): edges = {} for line in lines[1:]: edge = l...
When using Poetry to create a new project with `poetry create`, it consistently defaults to Python 3.10, despite having Python 3.12 installed on my Ubuntu system. Although I managed to configure Python's global version to 3.12, this adjustment occurred after installing Poetry. Consequently, Poetry persists in using Pyt...
I wrote about this topic before [here](https://www.developermindset.com/why-sleep-in-rust-breaks-async-thread/) and [here](https://stackoverflow.com/questions/78231269/how-to-listen-to-backend-value-change-in-tauri-leptos-app/78233559#78233559) You want to use [Mutex](https://doc.rust-lang.org/std/sync/struct.Mutex....
I've built a physical server running Ubuntu that I want to use to host websites and games from my home network. I have a domain registered on namecheap, configured with a DDNS address record to point to my home network, and routing through cloudflare. Ports 80 and 22 are forwarded by my router and enabled on the server...
so I recently installed browserify into my application, and I'm getting this error in the Chrome Dev console: ``` bundle.js:10677 Uncaught TypeError: Unable to determine current node version at versionIncluded (bundle.js:10677:9) at isCore (bundle.js:10694:28) at 71../core.json (bundle.js:15883:21) ...
I am using node-gyp to build a Cpp project. In my binding.gyp file I under sources I have something like this: "sources": [ "./somepath/*.cpp" ] This used to work without issue with VS2019 but with VS2022 I am getting the error in the title. If I type the file names individually it works but under o...
Command line error D8036 - not allowed with multiple source files with node-gyp and VS2022
|c++|visual-studio|node-gyp|
I'm trying to get animations working within their respective divs so that the user scrolling into a div is what triggers it. At the same time, I need to keep a single page type of feel where each div doesn't have it's own visibly scrollable area. The problem with this is that I can't seem to detect scroll events per ea...
there is some white space in my nav bar. i don't know if i should add padding and make it 0px. i copied the code from another website and made some edits but their navbar goes across the whole page. i was also wondering if there's any way i can show what the nav bar covers or if i can create a space between the nav...
how to remove the white space in my navbar?
I have the same issue. Selling in Sweden so I am using SEK as currency and when the order surpasses 500 its free, as it should. When over 1000 it's back to standard shipping again. Running Betheme. WooCommerce-version: 8.7.0 Solved: Based on your question with different currency in the 100's instead of 1000's, I set...
If anyone is dealing with this use-case in the SwiftUI era, I have found that adding ``` <key>LSUIPresentationMode</key><real>3</real> ``` in the Info.plist will disable the menu and dock for a fullscreen application. I found this in the documentation archive with the following value description. > All hidden...
WireMock's snapshot recordings are empty after a successful call
|java|wiremock|
I want to create a div thatits height starts low and progressively it gets higher. Something like this. [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/fYrzo.jpg
Here is a working, readable & aesthetic solution for your problem: public class TestListener extends ListenerAdapter { private final ScheduledExecutorService scheduler; private final Set<LocalTime> targetTimes; private final ZoneId zoneId = ZoneId.of("Your_Region_ID"); // Replace...
|c#|unity-game-engine|firebase-authentication|
i am new to unity programming.i am reading the mastering unity scripting by alan thorn...now i am studing evenr driven programming...i really confused about these codes? public delegate void OnEvent(EVENT_TYPE Event_Type, Component Sender, object Param = null); what is the meaning of object param=null,whats that...
writing event_management in unity
|c#|unity-game-engine|events|game-development|event-driven|
null
This is for sure a great learning, here's what I did and found and resolved this issue: 1. It boils down to the issue that my newly launched GPU instance cannot join the ECS cluster (both are launched by the above yaml CloudFormation template); 2. Do some first checks: vpc, subnet, security groups to see if anyth...
{"Voters":[{"Id":3001761,"DisplayName":"jonrsharpe"},{"Id":11082165,"DisplayName":"Brian61354270"},{"Id":476,"DisplayName":"deceze"}]}
I have a GitHub account and my friend invites me as a collaborator to his project. And now I want to rub the code base locally in my personal computer. Help me with following; - Do I need to clone his repo into my personal computer and do changes and then commit. or - Do I need to fork the repo, then clone ...
Based on your investigation, I suspect your DB version is older than you think. You could try adding the `ServerVersion.AutoDetect(connectionString)` to your EF core MySql configuration. See if that influences EF core to write SQL that in understandable to your DB version? It would look something like this when you are...
I've just installed C compilers and everything looks normal, however, when I try to run a code it takes too long. A simple ''hello word'' is taking 12 seconds. An online compiler is doing the same thing in just 2 seconds. I don't know what may be happening is this normal? Or am I doing something wrong? The only exte...
I need to identify the common prefix among a set of strings. I'm looking for the most efficient method, that avoids character-by-character comparisons. For example, consider the following set of strings: /home/texai/www/app/application/cron/logCron.log /home/texai/www/app/application/jobs/logCron.log ...
null
I need to identify the common prefix among a set of strings. I'm looking for the most efficient method, avoiding character-by-character comparisons. For example, consider the following set of strings: /home/texai/www/app/application/cron/logCron.log /home/texai/www/app/application/jobs/logCron.log /...
*Not the exact same example as the OP's so might not be valid to the specific question.* *I might not have fully understood the question as it seems more complicated case than my simple use with colors.* *But for my use case this solution worked.* *Apologies if it does not solve the OP's specific use case.* ...
How to connect to ssh server with domain name
|linux|nginx|ssh|hosting|
null
If you don't know how to build the `*.jar`, maybe just load it from Maven Central instead: // implementation fileTree(dir: '../../../spring-cloud-netflix/spring-cloud-starter-netflix-eureka-server/target/', include: '*.jar') implementation "org.springframework.cloud:spring-cloud-netflix-eureka-server:4.1.1...
I added some layers to pretrained MobileNet model and trained it. Then **saved** model with ``` model.save('model.keras') ``` Also tried this just in case: ``` keras.saving.save_model(model, 'model.keras') ``` But when i **load** the model I get the **error**: ``` keras.models.load_model('model.keras') ...
I'm using pandas and Selenium to pass information from an Excel Sheet to a Google form. What I am looking for is the code to click on the Google forms selection box if the text on the column "TF" is "YES". If it's "NO", simply ignore the selection box. elemento_tf = chrome.find_element(By.XPATH,"//*[@id='i35']"...
Since you know how to `pivot_wider` around a column, we only need to construct something like a list whose entries are the subsets of the data around the relevant dates. The relevant dates are those who are verified and have 59 preceding values inside `df`. They can be obtained by the following. In my example I used...
I have a nextjs as frontend and nestjs as backend MVP project. I'm hosting this project locally just for presentation for about an hour then im going to shut it down. I have configure my asus router to forward any request to my local IP and its working because my friend can open it from Vietnam to California. The pr...
Hosting nextjs with nodejs as a backend locally
|hosting|router|self-hosting|
In my flet code I ask the user to select a format, and the I want to show in the popMenuButton content the item selected, but I actually don't have an idea of how, actually this doesn't crash but didn't work either. tempType = "" #METHODS ON CLICK def onButtonClickNumber(e): tempType = "Número" ...
How do you modify a PopMenuButton content when a popMenuItem is clicked in flet?
|python|flutter|flet|
null
I have an `input_array` of shape `(m, n, 2)` and a dictionary `mapping` (`Dict[Tuple[int, int], float]`). I like to create a new `(m, n)` `output_array` by replacing the inner most arrays in the `input_array` based on the `mapping` dictionary. **Example:** ``` input_array = np.array([[[1, 2], [3, 7]], [[1, 2], [4,...
Bound for product of matrices
|math|matrix|linear-algebra|eigenvalue|
{"Voters":[{"Id":523612,"DisplayName":"Karl Knechtel"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":17562044,"DisplayName":"Sunderam Dubey"}]}
{"OriginalQuestionIds":[6270774],"Voters":[{"Id":71141,"DisplayName":"Etienne de Martel","BindingReason":{"GoldTagBadge":"c#"}}]}
{"Voters":[{"Id":7758804,"DisplayName":"Trenton McKinney"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":17562044,"DisplayName":"Sunderam Dubey"}]}
{"Voters":[{"Id":22180364,"DisplayName":"Jan"},{"Id":2530121,"DisplayName":"L Tyrone"},{"Id":17562044,"DisplayName":"Sunderam Dubey"}]}
{"Voters":[{"Id":5792244,"DisplayName":"Dave2e"},{"Id":22180364,"DisplayName":"Jan"},{"Id":17562044,"DisplayName":"Sunderam Dubey"}]}
{"Voters":[{"Id":10008173,"DisplayName":"David Maze"},{"Id":466862,"DisplayName":"Mark Rotteveel"},{"Id":17562044,"DisplayName":"Sunderam Dubey"}],"SiteSpecificCloseReasonIds":[13]}
To send the languageCode based on user selection in your app to Firebase Remote Config: - Store the user's language choice in local storage, like SharedPreferences. - Retrieve this language setting and apply it to your Firebase Remote Config request before fetching configurations. E.G val u...
Hey guys I need some help, I can't get the execution right... I have two queries that get me the results I need to get the right percentage. 1st query: Select Date, AgeGroup,SUM(NumberOfFans) From FansPerGenderAge WHERE date = (SELECT max(date) from FansPerGenderAge) GROUP BY AgeGroup; Results: 2018-10-16...
Fans By AgeGroup in Percentage SQLITE
|sql|sqlite|group-by|percentage|
null
I am new to CSS and I need your help on my project. I am firstly so sorry for my english because english is not my first language. My problem here that no matter what I do the Home button doesnt come to the middle of the screen. Can you please help me with that . Here is my code . By the way I am working with bootstrap...
I need the home button to appear on the middle
|html|css|
null
UPDATED: This post will ANSWER the question and provide a HELPER FUNCTION for toFixed() since toFixed() is still broken, years later, in all major browsers. The problem is verified to be the number 5. toFixed() doesn't round up when it sees the number 5 in the folowing position you want to round. This HELPER FUNC...
For a customer, I have developed a Power App solution. In the PowerApp a Power Automate flow is called via `MyFlow.Run()`. The users in the customer tenant get the following message when the flow is triggered: > "Principal with id \<principal-id\> does not have ReadAccess right(s) for record with id \<record-id\> of...
null
In Rust, I'm able to downcast a trait object to a concrete type using .as_any().downcast_ref(). That works ok, but it returns a &ref, not the owned object itself. How can I get ownership of a downcast object? **Update:** In response to the comments, here is what I was trying to do: trait Foo { ...
First, update your dependencies. If the issue persists and you are very sure your code has no issues, then run `./gradlew clean` This command deletes the build directory, then run again your project. I hope this helps
I have some .gz files and they contain data on some timeseries. Naturally, I would like to do some timeseries analysis on this. I tried this: ``` import gzip f=gzip.open('data.csv.gz','r') file_content=f.read() print(file_content) ``` But it was loading for 20mins and I manually stopped it. My question i...
I'm trying to use OpensearchVectorClient() function in llama-index but I've run into a problem while calling OpenSearch: "object tuple can't be used in 'await' expression". Here my code: import boto3 from opensearchpy import RequestsHttpConnection, AWSV4SignerAuth from opensearchpy import RequestsHttp...
I added some layers to pretrained MobileNet model and trained it. Then **saved** model with ``` model.save('model.keras') ``` Also tried this just in case: ``` keras.saving.save_model(model, 'model.keras') ``` But when i **load** the model I get the **error**: ``` keras.models.load_model('model.keras') ...
I'm trying to make a calculator in shiny where the user can edit one column and the data table will update the calculations in the other columns that uses the user input within the DT, the user input in the side panel, and/or the other calculated values in the other columns. Here is what I have so far. I want the ...
Replace sub-sub-arrays in a (m, n, 2)-shaped 3D numpy array using a dictionary as map
|python|numpy|
null
[image for reference](https://i.stack.imgur.com/5hcGP.jpg) what am trying to recreate are those three colored boxes containing texts( Education projects, Health programs and food assistance) i created three divs with a div-container with h2 tags to contain the texts
I am findind it dificult to create a box containing text
|html|text|flexbox|
null
**First some comments:** - Using `adb shell "some_command | cut"` is using cut on the phone but the phone doesn't necessarily have it so I suggest using `adb shell "some_command" | cut` to use cut on the pc; - On Windows you could simply get BusyBox to have all commands available without installation (just download f...
Just add `body { margin: 0; }` or `margin: 0` to the existing CSS rule for `body` to remove the default margin of `body` in most browsers. <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-css --> body { font-family: Archivo, sans-serif; font-weight: 50...
I noticed that http/RESTfulservices that receive and return JSON are called 'Web Api/Web Service' in many articles/book/documentation etc. But isn't the Web (World Wide Web) about websites, html and web browsers? For example, a mobile application is not related to the web. So why are http/RESTful services that...
Why do we call all http/RESTful services 'Web Api/Web Service'?
|api|rest|http|web-services|web|
null
Thanks for sharing. Looks like your com.prod.product.ProductApplication class is under product package hence springboot is not able to scan your controller class. Please can you move com.prod.product.ProductApplication to com.prod.ProductApplication and then build and restart. I hope this will fix the issue.
Selectively colouring axis text can be done more idiomatically using `labels` in `scale_y_continuous` paired with `ggtext::element_markdown()`. `scale_y_continuous` takes a parameter `labels` which can be a function. This function maps a break value to the text that is displayed on the plot. Use the `ggtext` pack...
I am developing an application in Springboot, using Mysql5, spring-data-jpa , Java8... The problem is that I cannot deploy it, due to "required bean 'entityManagerFactory' not found" problem. I don't know where is the error and tried many solutions but it doesn't work. This is my `SecurityConfig` class: packa...
Downgrading python from python==3.12.1 to python==3.11.8 should resolve this issue. Also, avoid importing everything from pyspark.sql, you only need : from pyspark.sql.session import SparkSession
The difference is, when you do var date = new Date(); Then date has the value of the current day (at the time of my posting it's the 2024-03-30). When you now do date.setMonth(month); with `month === 1` it will try to set the month to February, but as there is no Feb 30th, with the `Date`'s internal...
<!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> function haveOne() { document.querySelector(".spiderSetEverest").scrollIntoView(); var synth = new Tone.Synth().toMaster(); synth.triggerAttackRelease('a3', '2n') } function ha...
Here is another method, using a custom function named `fnDecimalDuration` **Custom Function Code**<br>*Paste into blank query and rename* ``` (durationString as text)=> let //split on space split = Text.Split(durationString," "), //convert values to numbers values = List.Transform(List.Alternate...
{"Voters":[{"Id":2872922,"DisplayName":"Ron Rosenfeld"}]}
How to update an editable data table when a column is edited and use it to perform successive calculations in Shiny
|r|shiny|dt|