I am also facing the same issue on my website https://rbtpracticetest.com/ . It's running on an OpenLiteSpeed server and PHP 8.3. How can I fix the error Warning The optional module, intl, is not installed, or has been disabled.
To search in file list use Ctrl+Alt+F
From the developer options > Revoking the USB Authorizations will fix this issue.
Never mind, I have discovered that using sigsetjmp/siglongjmp rather than setjmp/longjmp makes this work.
I try to do it but could not get solution how to start in same port. example port 3000 and 3000/api !
As said in another post, yes, in reality at today it seems we can have that at least two different ways, despite it seems they work to user and not to groups, in the kind of:
either tg://resolve?domain=username&text=hello+there
or https://t.me/username?text=hello+again
that will open on the telegram desktop the chat to the given user with the text message compiled, but it still needs the manual entry of the send message bar by pressing enter button. Is there any way to escape the need for this, by passing some other specific token to the browser address or some settings on the browser or telegram desktop app?
Or alternatively there is a way to send message and confirm sending in telegram web by adding not only th euser/group but also the message text in the browser address bar?
I can't say I have experience implementing multiprocessing in Electron, but perhaps the solution I use in my Node.js projects might suit your needs — it supports dynamic imports.
Let me provide a simple example in TypeScript, which can easily be converted to JavaScript if needed.
npm i multiprocessor
// File: src/index.ts
import { Pool } from 'multiprocessor';
const poolSize = 4;
const pool = new Pool(poolSize);
const input = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const result = await pool.map(input, calcSinTask);
pool.close();
console.log(result);
// [ 0.8414, 0.9092, 0.1411, ... ]
async function calcSinTask(x: number): Promise<number> {
const dirName = __dirname.replace('/node_modules/multiprocessor/lib', '/src');
const { calcSin } = await import(`${dirName}/path/to/your/module`);
return calcSin(x);
}
// File: src/path/to/your/module.ts
export function calcSin(x: number): number {
let result = 0;
let sign = 1;
let power = x;
let factorial = 1;
for (let n = 0; n < 1000000; n++) {
if (n > 0) {
factorial *= (2 * n) * (2 * n + 1);
power *= x * x;
sign *= -1;
}
const delta = calcDelta(sign, power, factorial);
if (isNaN(result + delta)) {
return result
}
result += delta;
}
return result;
}
function calcDelta(sign: number, power: number, factorial: number): number {
return sign * (power / factorial);
}
You can clone and run this solution from my example repository.
see GraphQL it can imply a query/select function
During the initalisation step the solver tries to find a set of inital values such that all of the equations are valid, using the initial values that you have set as an inital guess. I imagine that your models initialisation step is taking a long time becuase your have not set inital values or the initial values you have set are not accurate.
If you are using OM Edit, setting the LOG_INIT_V simulation flag will show you the inital values that it calculated, setting those values as the inital values for the subsequent simulations (assuming its somewhat similar to the original one) might reduce the initialisation step duration.
Check your security settings / local network and make sure that whatever dev app you are using has access enabled.
Note: this is independent of the macOS firewall settings, and will still block traffic even if firewall is off.
I temporarily deactivated the global firewall and (in my case VScode) still wouldn’t connect to a machine on my local network, until I manually enabled local network access. Pinging Google etc was just peachy though, so it made for some baffling early investigations.
yes, is posible. Other way is adManager of Google, the correct way, is multiplatform
In AdManager you can monetize and manage ad units in Websites, Games, Videos and App's
Currently there is a way to do it with raw JavaScript by using fetch:
fetch("https://example.com/api/data", {
method: "GET",
credentials: "omit", // here you decide to send cookie or not. Other options: same-origin, include
})
The issue for me was very similar to the one mentioned by @Aidan Nesbitt - thanks by the way!
I was fetching data from MongoDB - the data had a field that was populated and not via the default _id
field but via a custom id
field so I don't know if that had any effect or not. When I was passing the data returned from MongoDB from a server component to a client component, it was giving this Maximum Call Stack Exceeded
error. When I was filtering out the populated field from the passed values, the component was rendering without an issue.
My fix was basically to JSON.stringify()
on the values in the server component and to JSON.parse()
on the passed string in the client component.
I am quite new to this myself and came across the exact same issue recently. With still not being 100% sure as I didn't get to try it myself I came across Blocking Functions.
It is under Authentication -> Settings -> Blocking Functions, which seems to give more power to the admin with regards to user authentication
You can find more information in through this link
Also, I had the same issue but I had slim jquery loaded on accident. It was fixed loaded the full version.
If you’re using Apple Silicon and the UTM provider from https://github.com/naveenrajm7, check this out: https://github.com/naveenrajm7/vagrant_utm/issues/11.
As already mentioned in a comment the solution described should work fine.
Are your sure you have set Batch Size = 1
in the lambda event source?
Your description perfectly matches with the default Batch Size = 10, where your lambda ignore the other 9 events.
BTW I strongly suggest you also to support multiple events in a single lambda, this will result in a low execution time overall and lower costs.
Updating the Live Share extension seems to have fix my tooltips.
I had the same problem. As the last row of the Load event, I inserted the following statement which prevents the form from closing: DialogResult = DialogResult.None
In reality at today it seems we can have a mix in at least two different ways, in the kind of:
either tg://resolve?domain=username&text=hello+there
or https://t.me/username?text=hello+again
that will open on the telegram desktop the chat to the given user with the text message compiled, but it still needs the manual entry of the send message bar by pressing enter button. Is there any way to escape the need for this, by passing some other specific token to the browser address or some settings on the browser or telegram desktop app?
After some research and experimentation, I found a solution and created a GitHub repository with detailed instructions and examples to help others set up and use GitHub Copilot for generating conventional commit messages with icons. You can view and clone the repository here.
$ python3 ## Run the Python interpreter Python 3.X.X (XXX, XXX XX XXXX, XX:XX:XX) [XXX] on XXX Type "help", "copyright", "credits" or "license" for more information.
a = 6 ## set a variable in this interpreter session a ## entering an expression prints its value 6 a + 2 8 a = 'hi' ## 'a' can hold a string just as well a 'hi' len(a) ## call the len() function on a string 2 a + len(a) ## try something that doesn't work Traceback (most recent call last): File "", line 1, in TypeError: can only concatenate str (not "int") to str a + str(len(a)) ## probably what you really wanted 'hi2' foo ## try something else that doesn't work Traceback (most recent call last): File "", line 1, in NameError: name 'foo' is not defined ^D ## type CTRL-d to exit (CTRL-z in Windows/DOS terminal)
A lot of ways to achieve this. One of:
=XLOOKUP("China",A6:A9,FILTER(B6:G9,(B1:G1="PG")*(B2:G2=2)),"Not found",0)
Annotate the file as follows:
class DataItem {
private String name;
@JacksonXmlProperty(isAttribute = true)
private Map params;
}
The solution "unfreezeInput" did not work for all cases in my context. I had a function to remove html entities that created a textarea dynamically, put the html encoded data into, and destroyed it after extracting the decoded value. This had an impact on chrome autocomplete that freezed all the fields it had filled, I took time to figure out it came from this particular function. I replaced the textarea created in this function by a div, and extracted the decoded value with .textContent property in the div.
Then it seems this bug disappeared forever.
So it seems Chrome has a bug, when new form fields are added dynamically while Chrome autocompletes.
Yes, it looks like there data coming from the topic, into connector, is not serialized (i.e., it has no magic byte). Use a free GUI tool like KafkIO to pull from the topic yourself and see how it works, to get a sense what the connector is seeing, it might give you a clue. You can choose to use a Schema Registry or not, etc.
In my case since it was a supported package, all I had to do was updating wrangler.toml
from
compatibility_date="2023-05-18"
to
compatibility_date="2024-09-23"
For anyone else going down this rabbit hole, completely removing Anaconda (miniconda3 in my case) from the environment fixed my exit hang problems.
I'm assuming I messed up when using conda.
Add ignore_errors
to your options:
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data),
'ignore_errors' => true,
),
);
I am having the same issue. I noticed that those pixels aren't missing but are overlapping due to being rounded
Had the same problem, none of the above did anything. Solved this by making a .svg that was going out of bounds fit inside the screen width.
Check the javadoc, both @MockBeans and @MockBean are moved to @MockitoBean.
I know it has been a while, but my solution has been more of the following. I am also assuming that you are doing this for RAG purpose, NOT for the sake of getting the right parsing. Instead of getting the exact parsing of the PDF, I get a rough parsing where I get all the texts from the table, and I just replace the table with some metadata like {table id: 'werwrwe', summary: "contains the values of collection date, barcode etc", page: 12}. Then during the retrieval, if the similarity search chooses this chunk, then using the table id, I can retrieve the page of the document as a picture. Basically I see table_id and the page, then I can go to the original document then get the raw table as the picture. This has been much better RAG process for me rather than trying to get the parsing absolutely correct.
Have you found any solution to the problem?
Nowadays you can just use the normal AuthenticationHeaderValue
:
_httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(token);
There is even a example in the docs
The epoch_ms
function takes an integral number of milliseconds and returns a TIMESTAMP
, but I think your data has 100ns accuracy?
select epoch_ms(133782998237203223 // 100_000);
-- 2012-05-24 03:26:22.372
The to_timestamp
function takes a DOUBLE
in seconds and returns a TIMESTAMP WITH TIME ZONE
:
select to_timestamp(133782998237203223 / 10_000_000);
-- 2012-05-23 20:26:22.372032-07
(displayed in America/Los_Angeles
)
Both values will be instants and not naĂŻve (local) timestamps.
If what you want is to show the graph data on ThingsBoard, it seems very simple to me:
Just insert the Device and make sure the telemetry is arriving correctly. After that, insert a graph in a Dashboard and point it to that specific Device.
In addition to the answer from user3362908. If your instance is down you may use following:
$ORACLE_HOME/bin/sqlplus -V
either you use default with a python function, or you use server_default with a SQL function it seems to me (https://docs.sqlalchemy.org/en/20/core/metadata.html#sqlalchemy.schema.Column.params.server_default)
So:
created_at = Column(DateTime(timezone=True), server_default=text('NOW()')), nullable=False)
This is a new regression from x265 master that assumes all Unix is using ELF binary which causes this build error on macOS.
I reported this already: https://bitbucket.org/multicoreware/x265_git/issues/980/source-common-x86-cpu-aasm-assumes-all
You can revert commit f5e4a648727ea86828df236eb44742fe3e3bf366 to workaround this for now if you want to build master.
I'm running Kali Linux on UTM o my Mac M2.
Simply running sudo apt install spice-vdagent
and restart of the machine fixed my issue.
Souce: https://docs.getutm.app/guest-support/linux/ (different architectures described there)
Also you have to enable Cliboard Sharing there: UTM_settings_screenshot
I was able to solve my problem by adding RestClient.Builder as a parameter of the bean created in the class RestClientConfig.
So for valid handling Trace ID by RestClient in Spring Boot 3 application the class RestClientConfig should be configured in following way:
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestClient;
import org.springframework.web.client.support.RestClientAdapter;
import org.springframework.web.service.invoker.HttpServiceProxyFactory;
import com.example.clients.BeClient;
@Configuration
public class RestClientConfig {
@Value("${api.url}")
private String apiUrl;
@Bean
public BeClient beClient(RestClient.Builder restClientBuilder) {
RestClient restClient = restClientBuilder
.baseUrl(apiUrl)
.build();
var restClientAdapter = RestClientAdapter.create(restClient);
var httpServiceProxyFactory = HttpServiceProxyFactory.builderFor(restClientAdapter).build();
return httpServiceProxyFactory.createClient(BeClient.class);
}
}
Working source code you can find here: https://github.com/wisniewskikr/chrisblog-it-cloud/tree/main/spring-cloud/observability/springcloud-springboot3-observability-grafana-stack-restclient
I found the issue—it wasn't the code itself. The project was using node-sass, which is no longer supported. To fix it, I uninstalled node-sass and installed sass instead. Here's how I did it:
Uninstall node-sass:
npm uninstall node-sass
install sass:
npm install sass
This resolved the issue for me. Make sure to update any configurations that reference node-sass if needed.
Another Workround:
I had a very similar problem, trying to set DataValidation to Chip from script so as to allow multiple selections from a dropdown list populated from script, which as people say is not (yet?) allowed. However you can set the DataValidation to 'chip' by hand in the sheet you are using and then set the list to 'Drop-down(from a range)' and then in your script update the data in the range pointed to rather tan the actual cell. In my case I just had another sheet with the actual data in it locked to users. Drop-down(from a range) only shows values from cells with data in so you can set the range to be the maximum that you will need.
I encountered the same issue starting today—everything was fine yesterday. Then I realized that this problem was resolved in this commit: https://github.com/PMassicotte/gtrendsR/commit/849fbf780768e69faa3b1dbd373dd55b38acdcbd. To fix it, install the development version instead of the CRAN version, and the issue should be resolved.
devtools::install_github("PMassicotte/gtrendsR")
You are trying to find element with id circle_in_svg
but you have only circle
id and svg-object
. So you need to change id for your object element to circle_in_svg
or change id to find to svg-object
Can anyone verify this approach is still valid? If someone has something to add, please do so, respectfully! Thanks
look this sample: https://support.google.com/adsense/answer/10762946?hl=en&ref_topic=9183242&sjid=8011425263000445431-NA#:~:text=Hiding%20unfilled%20ad-,units,-using%20CSS
CSS:
ins.adsbygoogle[data-ad-status="unfilled"] {
display: none !important;
}
If you have a Swagger/OpenAPI doc then you could find useful the tool like swagger-coverage-cli
Turns out all the div needed was a "position: absolute !important;" style.
Fill the values by '####' or unknown, then convert it Sometimes we can't convert before fill or drop the missing data if its a lot
To highlight focused tab one can clone konsole repo and add some code there.
src/widgets/TerminalHeaderBar.h, class TerminalHeaderBar
definition:
private:
QPalette m_palette = QPalette();
src/widgets/TerminalHeaderBar.cpp, TerminalHeaderBar::paintEvent()
implementation:
void TerminalHeaderBar::paintEvent(QPaintEvent *paintEvent)
{
if (m_terminalIsFocused) {
m_palette.setColor(QPalette::WindowText, QColor(200, 200, 50));
m_palette.setColor(QPalette::Window, QColor(50, 50, 0));
} else {
m_palette.setColor(QPalette::WindowText, QColor(200, 200, 200));
m_palette.setColor(QPalette::Window, QColor(46, 48, 43));
}
setPalette(m_palette);
Update the Kotlin version in your build.gradle (project level) to 1.9.0:
plugins {
id "org.jetbrains.kotlin.android" version "1.9.0" apply false
}
Sync your project and run ./gradlew clean build.
two-liner:
cumsum = ts.cumsum().ffill()
(pd.Series(np.where(ts.isna(), -cumsum, np.nan)).ffill().fillna(0) + cumsum).fillna(0)
Alpine linux container or bare installation, simple way as root:
apk add python3
apk add py3-setuptools
apk add py3-pip
You can try to use --update
or --no-cache
too.
I'm new to their API too, but searching around it seems like you actually want the POST version batch-get endpoint, from either the BIM360 API or the ACC API, not the Data Management API.
Xiaodong Liang posted an article about it here: https://aps.autodesk.com/blog/custom-attributes-apis-bim-360-document-are-now-public-beta.
He also has a related question/answer here: Not able to get custom attribute data from Autodesk BIM360 for data management API
After continuing to work on this Issue, I think one "problem" that I have had to date is to think of our modules too much as a compartment within our app_server.R that can be "paused" as a group and not as an elegant namespace solution that it should be.
Any ideas how I can use the currently displayed tabname ("assumptionsa","assumptionsb") to influence whether the input$sidebar_selected_ety_id will invalidate the session_tbl() within each module? How does shiny namespace reactives?
It seems to me that if you don't need any actual formatting then the concatenation operator would probably be fairly simple to do.
splash:evaljs('document.querySelectorAll("a[title*=further]")['..myVar..']')
Async fixtures in pytest need to be marked with @pytest_asyncio.fixture
so that they get awaited before passing to the test. The error message tells you that you're getting a coroutine passed into your test method rather than the results of the coroutine being executed.
on Kali Linux (also Debian based), the message; 'error: cannot communicate with server: Post "http://localhost/v2/snaps/snapd": dial unix /run/snapd.socket: connect: no such file or directory' Is solved with something like this;
└─$ sudo systemctl unmask snapd.service [sudo] password for cicada:
┌──(cicada㉿blackkali)-[~] └─$ sudo systemctl enable snapd.service Created symlink '/etc/systemd/system/multi-user.target.wants/snapd.service' → '/usr/lib/systemd/system/snapd.service'.
┌──(cicada㉿blackkali)-[~] └─$ sudo systemctl start snapd.service
┌──(cicada㉿blackkali)-[~] └─$ sudo snap install snap-store
Then you may see; 2025-01-20T02:18:17+07:00 INFO Waiting for automatic snapd restart... snap-store (2/stable) 0+git.7a3a49a6 from Canonicalâś“ installed WARNING: There is 1 new warning. See 'snap warnings'.
the publisher id start with: "ca-" you code no have it.
the correct is: ca-pub-xxxxxxxxxxxxxxxx
see: https://support.google.com/adsense/answer/9274516?hl=en&sjid=8011425263000445431-NA
First you should add !important
to your slider styles and then instead of top: 0;
you should write top: -59px !important;
(59px
is the size of the navbar
).
Here is the corrected functional code:
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: #8b5656;
}
.navbar {
--margin: 40px;
background-color: rgba(255, 255, 255, 0.5);
position: sticky;
top: 0;
width: calc(100vw - 2 * var(--margin));
z-index: 1000;
border-radius: 80px;
margin-left: var(--margin);
margin-right: var(--margin);
padding: 12px 24px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.carouselslide{
width: 100%;
height: 700px;
overflow: hidden;
position: relative;
top: -59px !important;
}
.carouselslide img {
filter: blur(8px);
filter:brightness(0.3);
}
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="/Projeto Final/styles.css">
<!-- Nav bar-->
<nav class="navbar navbar-expand-lg">
<a class="navbar-brand" href="#">
<img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fclipground.com%2Fimages%2Fstackoverflow-logo-9.png&f=1&nofb=1&ipt=0765153ba1b0a57a6befd023995864bfb1337b7daee2a4d8360747a2051096cc&ipo=images" alt="Logo" width="30" height="30" class="d-inline-block align-text-top img-fluid">
FlokkiFur </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-list-nested"></i>
</button>
<div class="navbar-collapse collapse justify-content-between align-items-center w-100" id="navbarSupportedContent">
<ul class="navbar-nav mx-auto text-md-center text-left">
<li class="nav-item">
<a class="nav-link" href="#top">HOME</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#cartoes">PORTFOLIO</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">ABOUT ME</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">CONTACT</a>
</li>
</ul>
<ul class="nav navbar-nav flex-row justify-content-md-center justify-content-start flex-nowrap">
<li class="nav-item"><a class="nav-link" href="..." target="_blank"><i class="bi bi-twitter"></i></a> </li>
<li class="nav-item"><a class="nav-link" href="..." target="_blank"><i class="bi bi-instagram"></i></a> </li>
<li class="nav-item"><a class="nav-link" href="..." target="_blank"><i class="bi bi-tiktok"></i></a> </li>
</ul>
</nav>
<!-- Bg carossel-->
<div id="fotosCarousel" class="carouselslide carousel-fade" data-bs-ride="carousel" data-bs-pause="false">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fpreview.redd.it%2Fzfohxnf8t3pa1.jpg%3Fwidth%3D1024%26format%3Dpjpg%26auto%3Dwebp%26v%3Denabled%26s%3D0f660e0a56476991ee3b97f2885d8c010fec5b97&f=1&nofb=1&ipt=abc443565a4307bf540effd4e35273c0e8a9c3242503f6956ce59029b3e53501&ipo=images" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="https://softauthor.com/wp-content/uploads/2021/08/CSS-Background-Image-Full-Screent-With-background-Image-1536x1355.png" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="https://wonderfulengineering.com/wp-content/uploads/2014/10/image-wallpaper-15.jpg" class="d-block w-100" alt="...">
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
I had similar issue and it was due to version of Spring
https://docs.spring.io/spring-ai/reference/getting-started.html -> Spring AI supports Spring Boot 3.2.x and 3.3.x
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.5</version>
<relativePath/>
</parent>
There are lists of supported css by gmail (I don't have a link but you can probably visit: https://globalverifyed.com
Find a file called Firebase.Editor (on my project is in Assets/Editor/Firebase.Editor.dll), click on it, and on the inspector uncheck "Validate References".
xterm has block select as of version 397 if compiled with --enable-block-select
. The default binding is:
Meta <Btn1Down>:select-start(block)
i use windows but old value = GOOS=linux then i change to GOOS=windows it work
Are you looking for the POST projects/:project_id/storage endpoint, which creates a storage location in the OSS where files can be uploaded to?
I'm guessing they may have retired the BIM360 documentation, this is the one I've been testing with: https://aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-storage-POST/.
I recall running into either the same or a similar error when I tried to use the root folder ID. Do you know if your folder ID is the root folder or a sub folder?
Got the same error , but i was on a server , simply had to generate the client "npx prisma generate"
Supwi primary school is the school that I did my grade one to grade seven
Would you like to check out a similar project where everything works correctly for all browsers? Hierarchical HTML Entitling.
You will find the documentation page and an HTML sample.
You are welcome to ask further questions.
You can try Doqlens https://doqlens.com/retreview.
I don't know of a way to return true or false. But usually you just want to use the string, and assert that it's a string literal (at least this is what I needed in some code). I developed a macro that returns the string value if it is a string literal, but breaks the compilation if it is not:
#define string_literal(s) ("" s "")
This is quite safe against accidental misuses. One can still break it (thanks to @chqrlie https://stackoverflow.com/users/4593267/chqrlie for showing the way to break it): string_literal(""[0] + p + *"")
, but that code looks suspicious anyway, so I wouldn't call it unsafe.
You can make it more robust, at the expense of some readability:
#define NELEMS(a) (sizeof(a) / sizeof((a)[0]))
#define string_literal(s) ("" s "" + 0 * NELEMS(s))
This will warn about non-arrays in some recent compilers. GCC would warn with -Wsizeof-pointer-div
. In C2y, there will be a new keyword that will make it a constraint violation, which will make it more robust. See https://thephd.dev/the-big-array-size-survey-for-c.
Actually, I only used this for calling strdupa(3) safely. Thus, I skipped the string_literal()
macro entirely, and wrote a wrapper macro around strdupa(3) that made sure that it was always called with a string literal as argument:
#define STRDUPA(s) strdupa("" s "")
I considered implementing it in the following way for more robustness, but for simplicity and readability reasons, I have stayed with the implementation above. Anyway, here it is:
#define STRDUPA(s) strndupa("" s "", NITEMS(s))
Replace Your Code in Model `save()` Function
if($this->upload->do_upload('img')){
// Get data about the file
$uploadData = $this->upload->data();
$file_name = $uploadData['file_name'];
$data['response'] = 'successfully uploaded '.$file_name;
}else{
$data['response'] = 'failed';
}
I was able to find the error myself. When importing, I added the parent folder “MyApp”. Now I have used the “myapp” folder within it. This solved the problem.
In Objective-C, where
[self.view.superview bringSubviewToFront: txtNotes];
I have updated the (really great) example provided by daniel-cruz to get it working with current reactflow version. See it here: https://codesandbox.io/p/sandbox/pensive-cohen-lv4hfx
There are also some other changes:
P.S. I am very new to react/web app development (just for 2 days now), it means some parts probably can be made much better.
Have you added env files to the production?
I had the same issue. Solved by connecting my network to a shieldvpn. It installed successfully.
Thank you for this answer. I had the same problem in the django installment. "python -m pip install django" this command is worked at my machine
The following code uses the MusicBrainz API to find all artist relations of Queen - Made in Heaven. It uses musicbrainz-api, a module I wrote, to ease communication with the MusicBrainz API.
async function findReleaseGroup(mbApi, artist, title) {
const query = `artist:"${artist}" AND release:"${title}"`;
console.log('Resolving release group: ' + query);
const result = await mbApi.search('release-group', {query});
return result.count > 0 ? result["release-groups"][0] : undefined;
}
async function findAllRelatedArtist(mbApi, mbidRelease) {
// Lookup metadata Queen: "Made In Heaven" release group
const mbidMadeInHeaven = '780e6a16-9384-307d-ae65-02e1d6313753';
const relInfoGrp = await mbApi.lookup('release-group', mbidMadeInHeaven, ['releases', '']);
let release = relInfoGrp.releases[0]; // Pick the first (some) release from the release-group
console.log(`Using Release MBID=${release.id}`);
release = await mbApi.lookup('release', release.id, ['artists', 'recordings']);
const seenRelations = new Set(); // Set to track unique relations
for(const media of release.media) {
for(const track of media.tracks) {
const recording = await mbApi.lookup('recording', track.recording.id, ['artists', 'artist-rels']);
for(const relation of recording.relations) {
const relationKey = `${relation.type}-${relation.artist.name}`; // Create a unique key
if (!seenRelations.has(relationKey)) {
seenRelations.add(relationKey); // Add the key to the set
console.log(`relation ${relation.type}: ${relation.artist.name}`); // Print unique relation
}
}
}
}
}
async function run() {
console.log('Loading musicbrainz-api...');
const {MusicBrainzApi} = await import('https://cdn.jsdelivr.net/npm/[email protected]/+esm');
const mbApi = new MusicBrainzApi({
appName: 'stackoverflow.com/questions/74498924',
appVersion: '0.1.0',
appContactInfo: 'Borewit',
});
const releaseGroup = await findReleaseGroup(mbApi, "Queen", "Made in Heaven");
console.log(`Using Release Group MBID=${releaseGroup.id}`);
await findAllRelatedArtist(mbApi, releaseGroup.id);
}
run().then(() => {
console.log('The End.');
}, err => {
console.error(err);
});
it is disabling the time slots but not according to what I want ,I wanted it to disable the time slots according to IST time zone but it was disabling according to UTC time , that was the problem I was facing but I got the answer to this , so I installed vercel in my vs code and deployed it to vercel through cli and I found the logs on the vercel project which i deployed through cli and the website was deployed on vercel only so I found that my server was in washington DC and when I was doing new Date() it was giving the local time zone of washington and not UTC time , as vercel and many other cloud platforms by default work in UTC only this thing I knew but it was not working and I had to explicitely mention .toIsoString() to get date in utc , also I did correction on the disabling dates logic ,earlier what I was doing was that I was creating a new Date by giving time and date to create a new Date so this was in utc and I thought it was in local time which was wrong on my side , I wanted some specific time of the selected date like 9:00 am, 10:00 am etc of ist and I was comparing it with current ist date ,if curr date time is greater than the time slots date and time like 9:00 or 10:00 etc then it would disable it but the mistake which I was making was that I was giving date and time to new Date () and thought it was local date and time but it was utc date and time and I was comparing utc time with curr Date because of which It was providing disabling according to utc time ,so what I did was first got the local date and specific time (9:00,10:00 etc) through datefns library I converted it into utc time using and then again converted that utc time to local time and then compared currDate with the formed date and if the currDate is greater than input date time then it will get disabled so now the logic is working correctly .
let {date}=req.params;
console.log(date);
const services = await Service.find({});
const orders = await Order.find({date:date});
let bookedTime = [];
if(orders.length){
bookedTime =orders.map((ord) => {
return ord.time;
});
}
const allTime = ["09:00","10:00","11:00","12:00","14:00","15:00","16:00","17:00","19:00","20:00"];
let inputDateTime = [];
const utcDate = new Date().toISOString(); // Current UTC time
console.log("new Date() .to isostring : ",utcDate);
const timeZone = 'Asia/Kolkata'
// Convert to IST (UTC + 5:30)
const istDate = dateFnsTz.toZonedTime(utcDate,timeZone);
console.log("backend ist date : ",istDate);
let currDate = istDate.getTime();
for(let j=0;j<allTime.length;j++) {
console.log(allTime[j]);
let inputDateTimeString = `${date} ${allTime[j]}:00`;
// console.log(dateFnsTz);
// Convert to UTC
const utcDateTime = dateFnsTz.fromZonedTime(inputDateTimeString, timeZone);
console.log("inputDate utc : ",utcDateTime);
inputDateIST=dateFnsTz.toZonedTime(utcDateTime,timeZone);
console.log( "input Date ist : ",inputDateIST);
inputDateTime[j] = inputDateIST.getTime();
}
console.log('currDate in backend:',currDate);
console.log('inputDateTime in backend:', inputDateTime);
res.render("orders/newTwo.ejs",{services,bookedTime,date,allTime,inputDateTime,currDate});
Note: the major reason behind this confusion , which I think was that when we run new date() in local environment and do console.log(date)then it prints date in utc and not localtime but internally it stores local time ,it is because of Node js which is running the javascript in our system it by default prints utc date even if the date stored is in localtime and on server side the new Date () by default gives utc date for many cloud platforms like vercel, it does it knowingly to standardise the server side configuration so that it is not dependent on server location, basically to standardise the process it uses utc by default on server side .
okay im stupid i did a rookie mistake and called load_data before _metier_map is init so it was just
class FleetManager:
def __init__(self, json_path='component/default.json'):
self.current_fleet_index = 0
self.__metier_map = {
"Pilote": Pilote,
"Technicien": Technicien,
"Armurier": Armurier,
"Marchand": Marchand,
"Entretien": Entretien
}
self.party = self.load_data(json_path)
instead of :
class FleetManager:
def __init__(self, json_path='component/default.json'):
self.party = self.load_data(json_path)
self.current_fleet_index = 0
self.__metier_map = {
"Pilote": Pilote,
"Technicien": Technicien,
"Armurier": Armurier,
"Marchand": Marchand,
"Entretien": Entretien
}
To set up your domain, you’ll need to use an A Record for the root domain because GoDaddy doesn’t allow CNAMEs for the root (@). In your GoDaddy DNS settings, add an A Record with the name @ and point it to Railway's IP address, which you can find in their settings or documentation. This connects your root domain (myapp.com) directly to Railway.
For www.myapp.com, you’ll use a CNAME since subdomains can have CNAMEs. Add a CNAME record with www as the name and myapp.com as the value. This makes www.myapp.com point to the same place as the root domain.
Or another viable solution is using PartiQL
dotnet watch run --project <path-to-your-project>
)Thanks to advices from all, I was able to create following code:
package taskbar_test;
import com.sun.glass.ui.Window;
import javafx.application.Application;
import javafx.stage.Stage;
import taskbar_test.gen.CLSID;
import taskbar_test.gen.ITaskbarList3;
import taskbar_test.gen.ITaskbarList3Vtbl;
import taskbar_test.gen.ShObjIdl_core_h;
import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
import java.lang.foreign.ValueLayout;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class FxWinTaskbar extends Application {
public static final String GUID_FORMAT = "{%s}";
// CLSID of ITaskbarList3
public static final String CLSID_CONST = "56FDF344-FD6D-11d0-958A-006097C9A090";
// IID of ITaskbarList3
public static final String IID_CONST = "EA1AFB91-9E28-4B86-90E9-9E9F8A5EEFAF";
@Override
public void start(Stage stage) throws Exception {
var button = new javafx.scene.control.Button("Click Me");
button.setOnAction(e -> handleClick());
var root = new javafx.scene.layout.StackPane(button);
var scene = new javafx.scene.Scene(root, 300, 200);
stage.setTitle("JavaFX Stage with Button");
stage.setScene(scene);
stage.show();
}
void handleClick() {
long rawHandle = Window.getWindows().getFirst().getRawHandle();
Executors.newSingleThreadExecutor().submit(() -> {
try (var arena = Arena.ofConfined()) {
// https://learn.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-clsidfromstring#remarks
// The CLSID format is {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.
var clsidString = arena.allocateFrom(GUID_FORMAT.formatted(CLSID_CONST), StandardCharsets.UTF_16LE);
var iidString = arena.allocateFrom(GUID_FORMAT.formatted(IID_CONST), StandardCharsets.UTF_16LE);
var clsid = arena.allocate(CLSID.layout());
var iid = arena.allocate(CLSID.layout());
var taskbarPtr = arena.allocate(ShObjIdl_core_h.C_POINTER);
MemorySegment windowHandle = arena.allocate(ValueLayout.ADDRESS, rawHandle);
int hr = ShObjIdl_core_h.CoInitializeEx(MemorySegment.NULL, ShObjIdl_core_h.COINIT_MULTITHREADED());
if (hr != ShObjIdl_core_h.S_OK()) {
throw new RuntimeException("CoInitialize failed with error code: " + hr);
}
hr = ShObjIdl_core_h.CLSIDFromString(clsidString, clsid);
if (hr != ShObjIdl_core_h.S_OK()) {
throw new RuntimeException("CLSIDFromString failed with error code: " + hr);
}
hr = ShObjIdl_core_h.IIDFromString(iidString, iid);
if (hr != ShObjIdl_core_h.S_OK()) {
throw new RuntimeException("IIDFromString failed with error code: " + hr);
}
hr = ShObjIdl_core_h.CoCreateInstance(clsid, MemorySegment.NULL, ShObjIdl_core_h.CLSCTX_ALL(), iid, taskbarPtr);
if (hr != ShObjIdl_core_h.S_OK()) {
if (hr == ShObjIdl_core_h.REGDB_E_CLASSNOTREG()) {
System.out.println("COM class is not registered!");
}
throw new RuntimeException("CoCreateInstance failed with error code: " + hr);
}
var taskbarAddress = taskbarPtr.get(ValueLayout.ADDRESS, 0);
var taskbarInstance = ITaskbarList3.reinterpret(taskbarAddress, arena, memorySegment -> {
System.out.println("Some cleanup...");
});
ITaskbarList3Vtbl.HrInit.Function functionHrInit = _x0 -> {
System.out.println("HrInit called");
return ShObjIdl_core_h.S_OK();
};
MemorySegment functionHrInitPtr = ITaskbarList3Vtbl.HrInit.allocate(functionHrInit, arena);
var taskbarVtbl = ITaskbarList3.lpVtbl(taskbarInstance);
hr = ITaskbarList3Vtbl.HrInit.invoke(functionHrInitPtr, taskbarVtbl);
if (hr != ShObjIdl_core_h.S_OK()) {
throw new RuntimeException("HrInit failed with error code: " + hr);
}
ITaskbarList3Vtbl.SetProgressState.Function functionSetProgressState = (_x0, _x1, _x3) -> {
System.out.println("SetProgressState called");
return ShObjIdl_core_h.S_OK();
};
MemorySegment functionSetProgressStatePtr = ITaskbarList3Vtbl.SetProgressState.allocate(functionSetProgressState, arena);
ITaskbarList3Vtbl.SetProgressState.invoke(functionSetProgressStatePtr, taskbarVtbl, windowHandle, ShObjIdl_core_h.TBPF_NORMAL());
ITaskbarList3Vtbl.SetProgressValue.Function functionSetProgressValue = (_x0, _x1, _x2, _x3) -> {
System.out.println("SetProgressValue called");
return ShObjIdl_core_h.S_OK();
};
MemorySegment functionSetProgressValuePtr = ITaskbarList3Vtbl.SetProgressValue.allocate(functionSetProgressValue, arena);
ITaskbarList3Vtbl.SetProgressValue.invoke(functionSetProgressValuePtr, taskbarVtbl, windowHandle, 50, 100);
ITaskbarList3Vtbl.Release.Function functionRelease = _x0 -> {
System.out.println("Release called");
return ShObjIdl_core_h.S_OK();
};
MemorySegment functionReleasePtr = ITaskbarList3Vtbl.Release.allocate(functionRelease, arena);
hr = ITaskbarList3Vtbl.Release.invoke(functionReleasePtr, taskbarVtbl);
if (hr != ShObjIdl_core_h.S_OK()) {
throw new RuntimeException("Release failed with error code: " + hr);
}
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
ShObjIdl_core_h.CoUninitialize();
}
});
}
public static void main(String[] args) {
launch(args);
}
}
This code runs without any errors, but unfortunately it does not set any progress on a taskbar window. Does anyone have any advices on how to fix it?
It does support remote uploading. I was trying to do this, but with koltin for Android app, I was having problems because of the resolution of the video. It has to have an Aspect Ratio
9 x 16
So make sure that the video that you are trying to upload meets these requirements.
https://developers.facebook.com/docs/video-api/guides/reels-publishing/
To clean a VHD file inflected by computer virus, one might convert the VHD to VDI using clonehd.
In my case, Xcode recovered the files so there were two file references.
In project navigator (CMD+1), search the file name appearing in the build error.
Android use the adaptive-icon.png
file for the app icon.
The path to this file is defined in app.json in android.adaptiveIcon.foregroundImage
Once you updated the file, you must do npx expo prebuild
to apply the change made in app.json.
Using this stylesheet for QLineEdit achieves the purpose:
QLineEdit::disabled{
background-color:#eeeeee;
}
import mimetypes
file_path = '/mnt/data/stock-footage-shiny-particles-sparks-rotating-magic-circle-fire-portal-spinning-fireworks-waving-sparklers-in.webm' file_type, _ = mimetypes.guess_type(file_path)
file_type
This solution worked for me:
cd "$(pwd)"
any code example you may share with us on the above conclusion? I have almost the same problem and trying to figure out how it may work. Thanks!
Now PHP-8.2.9 opendir() and readdir() work OK.
I opened localhost Win10 Pro IIS my sites. But all my changes for access to "DataDir" did not give results. It was insufficient "Authenticated Users" in Permission Dialog under Security tab for "DataDir" on the site.
I renamed "DataDir_P" (in Win10) and created "DataDir" as new with default Win10 settings. The Data Files copyed from "DataDir_P".
Then I made restart all sites (by IIS Win10) on the localhost. I can read now list of files in "DataDir" with PHP.
you can wrap your stopPropagation in a function. then add/remove.
function stopProp(event){
event.stopPropagation(); // or stopImmediatePropagation();
}
yourTarget.addEventListener("click", stopProp);
yourTarget.removeEventListener("click", stopProp);
So here is my work-around. Before I download to a csv file, I add a column, and following the save, I make the column invisible. If I save again the same data it does not add another column, probably because the column is the same name.
Solution is not ideal but unless someone can come up with something cleaner, it works! Code for download change is below;
document.getElementById("download-csv").addEventListener("click", function(){
tableCues.addColumn({title:"id", field:"id"},true);
tableCues.download("csv", "data.csv");
tableCues.hideColumn("id");
});
Looks like .rsample()
is doing the trick here, which is keeping the computational graph alive...