As a workaround (not a fix) we currently are excluding Edge from the CSP tests that need to interact with these external scripts in a certain way.
So we have the following:
All browsers except Edge + CSP + basic interactions with external scripts = Yes. Edge browser + CSP + basic interactions with external scripts = Yes. All browsers except Edge + CSP + complex interactions with external scripts = Yes. Edge browser + CSP + complex interactions with external scripts = No.
So we are covering CSP on all browsers including Edge, and we're doing basic interactions with the external scripts on all browsers including Edge. But for the CSP and complex interactions with those scripts, we do all browsers except Edge.
We're getting the coverage we need to ensure our complex interactions are good with those scripts because Edge is mostly just Chrome anyway, and we're getting all the CSP checks we need. So we know our code is good - and that's really what we're here to test.
We just have a combination of Next + CSP + Edge + External scripts outside our control when we're interacting with them in a complex way that is failing. It's just a test setup failure.
Any solution is really going to be some kind of command/parameter that forces the CSP to ignore the errors, and by skipping that rare combination in the test suite we're doing that already.
Because EC2 machine and block volume bothe are independent AWS resources. Hence it's not necessary to destroy EC2 instance when you are changing block volume storage.
Use Backslash_symbol, Backslash_symbol and so on.
Create a custom rule and check any array with the desired constraints. https://codeigniter4.github.io/userguide/libraries/validation.html#creating-a-rule-class
Sample class:
class IdRules
{
/**
* Use as 'required|valid_ids[100,intval,string]'
*/
public function valid_ids($value = null, string $params, array $data = [], ?string $error = null): bool
{
$rules = explode(',', $params);
if (! is_array($value)) {
$error = 'Not array';
return false;
}
if (count($value) > $rules[0]) {
$error = 'The array is too large';
return false;
}
foreach ($value as $k => $v) {
// validation `ids` and return `bool`
if (gettype($k) === $rules[1]) {}
if (gettype($v) === $rules[2]) {}
}
return true;
}
}
This is probably due to the attribute value containing quote characters. The presence of a quote character in an attribute value breaks attribute filtering:
apache commons...
StringUtils.substringBeforeLast(principalName, "@")
DBSchema supports ScyllaDB, allowing you to easily connect and visualize your data. Here’s a link to the setup guide:
https://www.scylladb.com/2024/07/31/how-to-visualize-scylladb-tables-and-run-queries-with-dbschema/
I am facing the same issue , but less secure apps is deprecated so what do I use??
just got the same issue. Thanks for the post.
Do you have any simpler alternatives that dont require setting up a lambda?
To answer your first question: While yes, you can run Truffle languages without the Graal compiler, performance is going to be abysmal, as Truffle heavily relies on dedicated optimizations provided by Graal.
Consequently, you can also run TRegex as a regular Java library without Graal, but performance is probably going to be worse than java.util.Regex if you do that.
If there is any demand for it, I can put together a drop-in replacement for java.util.regex containing TRegex as a standalone maven library, but to really get any benefit out of it, I'd highly recommend using it in conjunction with Graal.
in your terminal paste this command
npm -D postcss postcss-cli autoprefixer
Check the manual of the reader, chapter 6.2.3.3. Transparent Exchange Command. You have to wrap mifare read commands (e.g. block 0: 0x30, 0x00) into APDUs with Data Object '95h Transceive – Transmit and Receive'. After read out of all blocks with NDEF data you can create the URL to be openend.
I found an answer.
MRNbarcodeText.dispatchEvent(new Event('change'));
I didn't know I had to let my razor page know that information had changed on the page. This isn't the case in MVC.
This should be an issue of androidx.compose.ui. Same issue was reported, see here. From the release notes of androidx.compose.ui, this issue was fixed in version 1.7.0-alpha03, see Version 1.7.0-alpha03
Skip to main content
Stack Overflow
Products
OverflowAI
Search…
Umer Masood's user avatar
Umer Masood
1, 1 reputation
●22 bronze badges
Home
New
Questions
Tags
Saves
Users
Companies
Labs
Discussions
Collectives
Communities for your favorite technologies. Explore all Collectives
Teams
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Looking for your Teams?
carousel using jQuery
Asked 11 years ago
Modified 11 years ago
Viewed 18k times
Report this ad
4
I know there are plugins available out there, but I'm trying to make one of myself but before that I'm trying to understand the concept of making it as an infinite/circular carousel. Here is my jsfiddle so far.. http://jsfiddle.net/hbk35/KPKyz/3/
HTML:
<div id="carousel_wrapper">
<ul>
<li>
<div>0</div>
</li>
<li>
<div>1</div>
</li>
<li>
<div>2</div>
</li>
<li>
<div>3</div>
</li>
<li>
<div>4</div>
</li>
<li>
<div>5</div>
</li>
<li>
<div>6</div>
</li>
<li>
<div>7</div>
</li>
</ul>
</div>
<br>
<div id="buttons">
<button id="left">left</button>
<button id="right">right</button>
</div>
JS:
var container = $("#carousel_wrapper");
var runner = container.find('ul');
var liWidth = runner.find('li:first').outerWidth();
var itemsPerPage = 3;
var noofitems = runner.find('li').length;
runner.width(noofitems * liWidth);
container.width(itemsPerPage*liWidth);
$('#right').on('click',function(){
runner.animate({scrollLeft: -liWidth},1000);
});
$('#left').on('click',function(){
runner.animate({scrollLeft: liWidth},1000);
});
CSS:
div#carousel_wrapper{
overflow:hidden;
position:relative;
}
ul {
padding:0px;
margin:0px;
}
ul li {
list-style:none;
float:left;
}
ul li div {
border:1px solid white;
width:50px;
height:50px;
background-color:gray;
}
I do not want to use clone and detach method. Is there any other way to do that? Please anyone would like to guide me where I'm making mistake. I'm newbie to stack overflow and javascript/jquery also..trying to learn on my own. Forgive me I'm trying since to put my code onto the question, couldn't get neat and separate like others.
Thanks!!
javascriptjquerycsscarousel
Share
Edit
Follow
edited Feb 27, 2014 at 19:31
asked Feb 27, 2014 at 19:22
harshes53's user avatar
harshes53
42911 gold badge77 silver badges1717 bronze badges
2
We need a reinventing-the-wheel tag on SO –
Dryden Long
CommentedFeb 27, 2014 at 19:24
The code in the fiddle doesn't match the code in your question. –
j08691
CommentedFeb 27, 2014 at 19:27
@j08691 my apologies. the fiddle is updated. thanks. –
harshes53
CommentedFeb 27, 2014 at 19:32
Are you looking to implement the carousel from jquery framework or any other framework –
Someone
CommentedFeb 27, 2014 at 19:50
@Someone using jQuery framework. actually I'm trying to make plugin of it. and to make it circular/infinite. –
harshes53
CommentedFeb 27, 2014 at 19:58
Show 2 more comments
2 Answers
Sorted by:
Highest score (default)
3
Here you go an infinite. Could be done with less code for sure. http://jsfiddle.net/artuc/rGLsG/3/
HTML:
<a href="javascript:void(0);" class="btnPrevious">Previous</a>
<a href="javascript:void(0);" class="btnNext">Next</a>
<div class="carousel">
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
<li>10</li>
<li>11</li>
<li>12</li>
<li>13</li>
<li>14</li>
</ul>
</div>
CSS:
.carousel{
padding-top: 20px;
width: 357px;
overflow: hidden;
height: 50px;
position: relative;
}.carousel ul{
position: relative;
list-style: none;
list-style-type: none;
margin: 0;
height: 50px;
padding: 0;
}.carousel ul li{
position: absolute;
height: 25px;
width: 50px;
float: left;
margin-right: 1px;
background: #f2f2f2;
text-align: center;
padding-top: 25px;
}
JS:
$(function(){
var carousel = $('.carousel ul');
var carouselChild = carousel.find('li');
var clickCount = 0;
var canClick = true;
itemWidth = carousel.find('li:first').width()+1; //Including margin
//Set Carousel width so it won't wrap
carousel.width(itemWidth*carouselChild.length);
//Place the child elements to their original locations.
refreshChildPosition();
//Set the event handlers for buttons.
$('.btnNext').click(function(){
if(canClick){
canClick = false;
clickCount++;
//Animate the slider to left as item width
carousel.stop(false, true).animate({
left : '-='+itemWidth
},300, function(){
//Find the first item and append it as the last item.
lastItem = carousel.find('li:first');
lastItem.remove().appendTo(carousel);
lastItem.css('left', ((carouselChild.length-1)*(itemWidth))+(clickCount*itemWidth));
canClick = true;
});
}
});
$('.btnPrevious').click(function(){
if(canClick){
canClick = false;
clickCount--;
//Find the first item and append it as the last item.
lastItem = carousel.find('li:last');
lastItem.remove().prependTo(carousel);
lastItem.css('left', itemWidth*clickCount);
//Animate the slider to right as item width
carousel.finish(true).animate({
left: '+='+itemWidth
},300, function(){
canClick = true;
});
}
});
function refreshChildPosition(){
carouselChild.each(function(){
$(this).css('left', itemWidth*carouselChild.index($(this)));
});
}
});
Share
Edit
Follow
edited Feb 27, 2014 at 21:09
answered Feb 27, 2014 at 20:30
artuc's user avatar
artuc
9131111 silver badges2020 bronze badges
There was a bug when you fast click. Added finish() method to JS fiddle: jsfiddle.net/artuc/rGLsG/2 –
artuc
CommentedFeb 27, 2014 at 20:38
works like a charm! awesome this is what i was looking for... thanks!! but theres a small issue with it.. if you keep pressing next button, you will find an space between 1&2 li elements. –
harshes53
CommentedFeb 27, 2014 at 20:55
1
Yep, neither animate nor finish seems to work if you click really fast. I implemented a dirty solution to it. Please see the updated fiddle: jsfiddle.net/artuc/rGLsG/3 also removed one useless function. –
artuc
CommentedFeb 27, 2014 at 21:07
yeah i see the problem with your updated fiddle. if u click left continuously and fast, u will see the first element not there + some random space in between. else previous button works awesome!! thanks though! –
harshes53
CommentedFeb 27, 2014 at 21:52
i think if we can fix the random space issue! –
harshes53
CommentedFeb 27, 2014 at 21:56
Show 1 more comment
Report this ad
3
Here you go: http://jsfiddle.net/KPKyz/5/
JS
var container = $("#carousel_wrapper");
var runner = container.find('ul');
var liWidth = runner.find('li:first').outerWidth();
var itemsPerPage = 3;
var noofitems = runner.find('li').length;
runner.width(noofitems * liWidth);
container.width(itemsPerPage*liWidth);
$('#right').click(function() {
$( runner ).animate({ "left": "-=51px" }, "slow" );
});
$('#left').click(function() {
$( runner ).animate({ "left": "+=51px" }, "slow" );
});
CSS
div#carousel_wrapper{
overflow:hidden;
position:relative;
width:500px;
height: 100px;
}
ul {
padding:0px;
margin:0px;
position: absolute;
top:50px;
left: 0px;
width:300px;
height: 50px;
overflow: hidden;
}
ul li {
list-style:none;
float:left;
}
ul li div {
border:1px solid white;
width:50px;
height:50px;
background-color:gray;
}
Share
Edit
Follow
answered Feb 27, 2014 at 19:53
Ani's user avatar
Ani
4,52344 gold badges2828 silver badges3232 bronze badges
Thanks, was looking for something like that without additinoal plugins –
user133408
CommentedFeb 27, 2014 at 19:58
1
Oh..I thought you were OP :P ...My bad –
Ani
CommentedFeb 27, 2014 at 19:59
@Ani thats awesome. two more question. why i cannot use liWidth if I'm not aware of the width? how can i make it circular/infinite?? appreciate it. –
harshes53
CommentedFeb 27, 2014 at 20:02
1
Oh...I didn't knew you want circular...hold on –
Ani
CommentedFeb 27, 2014 at 20:04
Add a comment
Your Answer
Reminder: Answers generated by AI tools are not allowed due to Stack Overflow's artificial intelligence policy
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
Please be sure to answer the question. Provide details and share your research!
But avoid …
Asking for help, clarification, or responding to other answers.
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
javascriptjquerycsscarousel
See similar questions with these tags.
The Overflow Blog
Can climate tech startups address the current crisis?
What we learned at TDX 2025
Featured on Meta
Community Asks Sprint Announcement - March 2025
Meta Stack Exchange site maintenance scheduled starting Monday, March 17,...
Policy: Generative AI (e.g., ChatGPT) is banned
Stacks Editor development and testing
Is it better to redirect users who attempt to perform actions they can't yet...
Hot Meta Posts
14
What is the role of this new bottom notice on questions, below the answer box?
Report this ad
Report this ad
Linked
0
Scrolling/carousel with interval
-1
jQuery carousel - disable next/previous link when last item on the list is reached
Related
0
jQuery carousel
0
Circular Carousel (jQuery)
0
Make a carousel with divs
0
Carousel Jquery/Javascript
4
Trying to create a carousel effect with jQuery
0
how to make a jquery carousel
3
Make a carousel using JavaScript
0
Please help me with this carousel
0
Using JQuery to carousel through divs
0
How can i make this carousel working with JS and CSS?
Hot Network Questions
Has the Trump administration explained how they're going to get people to the Moon/Mars if they're reducing the size of NASA?
Building an 8080 based computer
PTIJ: Why did Mordechai insist on Esther ploughing (החרש תחרישי) at such a crucial moment?
Does this average exist?
Is the US debt "crisis" fake?
Is Oz a real place?
With what to replace uBlock Origin now after Google Chrome nerfed it?
What arguments can a developer make to management that he could be Product Owner for his Scrum team?
Is crypto sniping illegal?
Did Trump campaign against gay people?
Do any Tribes actively involve kinfolk in the fight for Gaia?
Why are the download sizes so much bigger than they actually are?
How can visa officials know I ‘visa shopped’
Converting EU motors 230V 30A for U.S. use
How do I start a tie from a grace note to another note in Lilypond?
Am I better off concocting my own chain wax?
How to Reorder Piecewise Function Compositions
What is the swap.img in Disk Analyzer
Did Asimov ever comment on whether the name of this Foundation character was a deliberate clue?
How would a society with no wood reliably heat itself?
"Naïve category theory", or, pedagogy and how to Introduce natural transformations?
Why Do We Take the Derivative of the Basis Vector When Calcuating the Acceleration in Polar Coordinates?
The arrows are not aligning
How to mount a headboard intended for bed to a wall instead?
Question feed
Stack Overflow
Questions
Help
Chat
Products
Teams
Advertising
Talent
Company
About
Press
Work Here
Legal
Privacy Policy
Terms of Service
Contact Us
Cookie Settings
Cookie Policy
Stack Exchange Network
Technology
Culture & recreation
Life & arts
Science
Professional
Business
API
Data
Blog
Facebook
Twitter
LinkedIn
Instagram
Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2025.3.14.23870
People forgot to mention lokalise ota sdk, that's what this question was asking for, but technically I don't like the solution.
C2DM (Cloud to Device Messaging) is outdated and has been replaced by Firebase Cloud Messaging (FCM). While FCM is excellent for sending push notifications to Android devices (e.g., alerting users of new messages when the app is in the background), it’s not ideal for real-time chat. FCM introduces potential delays, as it relies on Google’s infrastructure to deliver messages, which may not meet the instant delivery needs of a chat app.
Instead of managing your own WebSocket server or relying on FCM, I recommend using HPKV’s real-time pub/sub feature. HPKV is a key-value store that offers real-time key monitoring through a managed WebSocket-based pub/sub system. This approach simplifies your architecture by providing instant updates without the overhead of running your own server or message broker (like RabbitMQ or Kafka)
For more context, check out this article which demonstrates a similar approach with NextJS. While it’s web-based, the principles apply to Android with some adjustments.
Just right click on the top most bar of your vs code (area in red circle), and select "Command Center".
I want to save the data locally on my watch no matter what. It seems like I should be using Jetpack Datastore here
Yes, but see this note:
If you need to support large or complex datasets, partial updates, or referential integrity, consider using Room instead of DataStore. DataStore is ideal for small, simple datasets and does not support partial updates or referential integrity.
it makes sense to have a standalone app
Yes, that's the general recommendation, and it doesn't look like in your case, the phone is needed to increase/decrease counters:
We recommend that Wear OS apps work independently of a phone so users can complete tasks on a watch without access to an Android phone
Should I be using Datastore on the watch and then use something like Wearable Data Layer API to sync the data between mobile and watch, whenever they are connected?
Or does it make more sense to use a cloud storage, like AWS, to upload the data to the cloud and synchronize the devices independently of each other?
Yes, Wear Data Layer API will take care of "synchronize the devices independently of each other whenever they are connected" for you:
Data is transferred in one of the following ways:
- Directly, when there is an established Bluetooth connection between the Wear OS device and another device.
- Over an available network, such as LTE or Wi-Fi, using a network node on Google's servers as an intermediary.
More resources on this:
if someone has some guidance on that as well, I would appreciate that
You're using the wrong EventArgs class. You need TappedEventArgs
private void OnFrameClick(object sender, TappedEventArgs e)
{
if(e.Parameter is Shipment shipment)
{
//TODO
}
}
It seems that it's no longer possible in Meta Quest v74. They've blocked access to the accounts, but they still appear when running adb shell dumpsys accounts
.
In my case, just Close Project and Open Project.
I have same issue today. After windows update, process that I use several years stops working.
In my case solution was:
delete certificates folder C:\Users\{your user name}\.office-addin-dev-certs\
download latest addin-dev-certs now is '2.0.3' I use to have '1.7.8' before
use PowerShell as admin
update npm i office-addin-dev-certs
install them for 30 days (or what time you want) and I use for anyone here npx office-addin-dev-certs install --days 30 --machine
test them npx office-addin-dev-certs verify
and then start addin localy as common npx office-addin-debugging start manifest.local.xml desktop --app word
Hope it helps someone
I have just fixed it. Instead "Digest Auth" you should configure it in web UI like "digest/basic".
A new browser extension for Google Chrome and Firefox has been released. More details about the extension can be found in the blog post: JetBrains Xdebug Helper – Official Release.
The relevant documentation has also been updated: Browser Debugging Extensions in PhpStorm. Give them a try!
i have the same issue, someone managed to fix it?
Super late to this thread but want to put an answer in for anyone who comes in later.
You can now use AdminUserGlobalSignOut via the Cognito API to revoke all active identity tokens for a specified user.
if(object == sharedObject.data()) return true; // If Equal
if 'options' in self.__dict__:
del self.options
If you don't want to get errors if cache not set
No need for any tokens nor api version:
curl --write-out "%{http_code}\n" -o /dev/null -sL http://localhost:4440/
200
200 response means it is up and running.
This work for me:
1. Uninstall current "VS Build Tool" and install "VS Community 2022" with below modules:
MSVC v142 - VS 2019 C++ x64/x86 Spectre-mitigated libs (Latest)
C++ ATL for latest v142 build tools with Spectre Mitigations (x86 & x64)
C++ MFC for latest v142 build tools with Spectre Mitigations (x86 & x64)
2. Reboot the computer
3. Re run "yarn" in vscode folder
As an addition to the previous answers:
Since C# 12, collection expressions can also be used. This simplifies the conversion to:
List<ProfitMargin> profitMargin = [.. await conn.QueryAsync<ProfitMargin>(sqlQuery, new { QuoteId = QuoteIds.ToArray()})]
there is new lib named ChartForgeTk it's intercative and modern
pip install ChartForgeTK
Don't yet have enough reps to leave this as a comment.
Can you attach your cloudbuild.yaml and a screenshot (with enough detail) of your error to your question. I'd need some more insight into the components of your current setup to properly assist.
That said, basically the issues looks to be coming from the wrong project ID. I'd probably start by tracking that down.
I am facing a similar issue while trying to deploy a Hyperledger Fabric blockchain network for my final year project.
You mentioned that switching to WSL2 helped you resolve the problem. Could you please share the detailed steps you followed to:
1. Set up WSL2 and Ubuntu.
2. Install Hyperledger Fabric.
3. Deploy the network and run the sample chaincode successfully.
I would really appreciate your guidance, as I have been struggling to resolve this issue. Thank you in advance!
They have root key key at their api docs at the top of the page "Download the Attestation Report Root CA Certificate here"
https://api.portal.trustedservices.intel.com/content/documentation.html
i have the same problem as you . If you did find the solution, can you share it with us ?
i followed that same documentation, still can't able too integrate mappls with react native. please help me if knw more
function session_regenerate_id(bool $delete_old_session = false): bool {}
This is how the function is created, so just call the function without passing params
session_regenerate_id();
or
session_regenerate_id(false);
And here is the OpenSCAD version, credit to user3717023 for the answer:
/* [Hidden] Constants */
point_color="lime";
golden_ratio = (sqrt(5)+1)/2; //1.618
/* [Dimensions] */
boundary_diameter = 120;
point_diameter = 4;
/* [Spiral] */
point_count = 450;
alpha=0;
golden_angle_coeff = 1.0;//0.99995;// e.g. 0.9995;
boundary_radius = boundary_diameter/2;
points_radius = point_diameter/2;
golden_angle = (360 - (360 / golden_ratio)) * golden_angle_coeff; //aka 137.5;
function radius(k,n,b) = (k > n-b) ? 1 : sqrt(k-1/2)/sqrt(n-(b+1)/2);
module sunflower( point_count, outer_radius, angle_stride, alpha)
{
boundary_points = round(alpha * sqrt(point_count));
for (k = [1:point_count]) {
r = radius(k, point_count, boundary_points) * outer_radius;
theta = k * angle_stride;
rotate([0,0,theta]) translate([r,0,0]) children();
}
}
union() {
cylinder(d=boundary_radius*2, h=3, $fn=50);
sunflower(point_count, boundary_radius-points_radius, golden_angle, alpha)
color(point_color) cylinder(r=points_radius, h=3.5);
}
I tried the dummy code with NVDA V2024.4.2.35031 and Chrome V134.0.6998.89 and everything worked, it seems your problem is due to a browser or screen reader issue. As you stated in the comment's the problem was due to the browser being outdated.
Blockchain needs to be a trust-less network where you can rely on storing value transfers safely. Leading zeroes on every block are achieved by iterating a nonce value, that ensures immutability because there is no other way to get the right hashes without re-doing all proof of work to find it. You cannot rely on a regular database because on a decentralized peer to peer network, someone would be able to alter some data on its own benefit breaking the trustless system
Looking at the documentation, CDK construct for SNS Text Messaging doesn't exist nor do CloudFormation template for it.
CDKTF has it because, as far as I know, TF doesn't use CloudFormation but uses AWS API instead.
If you look at https://github.com/markilott/aws-cdk-configure-sns/blob/main/lib/sns-config-stack.ts#L108-L123, it's using AwsCustomResource. That's what you can do as well, create your own CustomResource.
I guess I'll just do a backup and restore then.
I don´t know what is contained in your HPV_subtypes
object, but if it is the tibble that can be created from the code below, then you´re passing a vector to the d
argument in graph_from_data_frame
. Instead you need to pass a dataframe with two columns (the first two in your dataframe), usually named from and to, which specify the association between your components in the dataframe. The remaining columns are regarded as edge attributes, if the vertices
argument is NULL
, which is the default. Have a look at the example from the ?graph_from_data_frame
help page.
What do you want to achieve with this code? is it just for visualization, or do you want to use this graph for computation purposes?
Try to Debugging with Developer Tools:
Wow thank you very much @Topaco for such a detailed answer - I tried it and it worked perfectly.
To answer the key derivation part of my own question, here's a faster performing version of the same key derivation. (Testing both the one you suggested Topaco (with the modifications you suggested) and this one, this was about 3x faster (I guess because it uses OpenSSL's deprecated MD5 functions which I read somewhere are faster performing than the new EVP functions).
char keyandiv[144];
unsigned char key[128];
unsigned char iv[16];
unsigned char digest[16];
int countingsize;
MD5_CTX ctx;
while (countingsize < 144 ) {
MD5_Init(&ctx5);
if (countingsize > 0) {
MD5_Update(&ctx, digest, sizeof(digest));
}
MD5_Update(&ctx, password, sizeof(password));
MD5_Update(&ctx, (unsigned char*)salt, sizeof(salt));
MD5_Final(digest, &ctx5);
for (int j = 1; j < 10000; j++) {
MD5_Init(&ctx);
MD5_Update(&ctx, digest, sizeof(digest));
MD5_Final(digest, &ctx);
}
memcpy(keyandiv + countingsize, digest, sizeof(digest));
countingsize += sizeof(digest);
}
strncpy((char*) &key, keyandiv, 128);
for(int i5=128; i5<144; i5++){
iv[i5-128] = keyandiv[i5];
}
Any resolution? I have the same issue. For me I can't docker pull anything also, e.g. docker pull postgres.
Did you find solution? I have the same problem.
You may use multitail
utility
multitail -l "command1" -l "command2"
It spits screen and show output in different views
It's back to normal now for me, I rolled back to a previous commit with the Firebase App Hosting interface, it worked, and triggered a new rollout from my branch, it worked as well.
Generic HTTP(S)/JSON Connector and https://botium.atlassian.net/wiki/spaces/BOTIUM/pages/38502401/Writing+own+connector this both pages do not exist
I recently encountered a requirement to encrypt and decrypt messages in my project. After some research, I found a way to achieve this using @metamask/eth-sig-util. Below is the approach I used ( this is only available for Metamask as only Metamask is allowing encryption/decryption until now ).
Encryption
To encrypt the message, I used the encrypt function from @metamask/eth-sig-util:
import { encrypt } from "@metamask/eth-sig-util";
const encrypted = encrypt({
publicKey: encryptionPublicKey,
data: inputMessage, // The message to encrypt
version: "x25519-xsalsa20-poly1305",
});
const encryptedString =
"0x" + Buffer.from(JSON.stringify(encrypted)).toString("hex");
Decryption
To decrypt the encrypted message, I used eth_decrypt provided by MetaMask:
const decrypted = await window.ethereum.request({
method: "eth_decrypt",
params: [encryptedData, address],
});
This approach worked seamlessly in my project. Hope this helps someone facing a similar issue! 🚀
Let me know if you have any questions.
CloudFront still expects CachedMethods
when using ForwardedValues
. Although the AWS SDK v2 marks it as deprecated, u must explicitly set it when ForwardedValues
is defined.I think u should modify your newBehavior
struct by adding the CachedMethods
field under ForwardedValues
I was facing the same issue and based on trial an error I found out that updating the deploymentMethod to "zipDeploy" worked.
For some reason using "runFromPackage" or even "auto" both slots points to the same deployed package.
After trying :
find /var/www/html -type d -exec chmod 755 {} \;
to give permissions for folders
find /var/www/html -type f -exec chmod 644 {} \;
to give permissions for files
What did it for me was this command :
sudo chown -R www-data:www-data /var/www/html
The problem is still there (Xcode 16.2, MacOS 15.3.2). As far as I can tell, it occurs when the same custom font is both distributed in the catalyst app and also installed on Mac. The app runs on under Mac Catalyst from Xcode, but the generated app will not open on Mac. A workaround is to disable the custom font on Mac in Font Book (or remove it)
I have reported as FB16864964
https://www.npmjs.com/package/react-to-print React-to-print will work for it install and follow guide, happy coding!
Download the latest protobuf version from https://github.com/protocolbuffers/protobuf/releases
search for runtime_version.py within the download
copy that file into the folder given by the error message (...Lib\site-packages\google\protobuf)
I think it could be due to accumulated stale connections. My suggestions are:
1, Adjusting the maximum pool size would also help.
2, Closing established connections when your app shutsdown so they can be returned back to the pool. Check if you forgot that.
3, As the answer above says, adjusting the settings for connection timeout, and socket timeout and maxidletime might also fix the issue.
You can find the docs here, check it out.
the result is great! if you are using amd cpus, try it!
You can also want to use a function with two arguments: name and item. In this case mapply() is your friend:
score <- list(name1 = 1, name2 = 2)
res <- mapply(names(score), score, FUN=function(nm, it) it*nchar(nm))
SELECT top 1 CONCAT(P.FNAME, ' ', P.SNAME, ' ', COUNT(E.EPI_NO)) AS Info FROM EPISODES E
JOIN PRESENTERS P ON E.PRES_ID = P.PRES_ID
GROUP BY P.PRES_ID, P.FNAME, P.SNAME
ORDER BY COUNT(E.EPI_NO) DESC
This gives the fname and lname of the Presenter who has done the max number of episodes.
@Ruikai Feng, you are absolutely right! I cannot believe I have used such a naive, faulty approach :-(. I have added a simple Microsoft.Playwright test to verify the erroneous behavior. After that, I have refactored the CustomAuthenticationStateProvider
to Implement the IAuthenticationStateProvider
directly and use HttpContext
to obtain the custom request header:
public class CustomAuthenticationHandler : IAuthenticationHandler
{
public const string SchemeName = "CustomAuthenticationScheme";
private const string UserNameHeaderName = "X-Claim-UserName";
private HttpContext? _httpContext;
public CustomAuthenticationHandler()
{
}
public Task<AuthenticateResult> AuthenticateAsync()
{
if (this._httpContext is null)
{
return Task.FromResult(AuthenticateResult.Fail("No HttpContext"));
}
if (!this._httpContext.Request.Headers.TryGetValue(UserNameHeaderName, out var userName) || (userName.Count == 0))
{
return Task.FromResult(AuthenticateResult.Fail("No user name found in the request headers."));
}
return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(CreateClaimsPrincipal(userName.ToString()), SchemeName)));
}
// Code omitted for clarity
public Task InitializeAsync(AuthenticationScheme scheme, HttpContext context)
{
this._httpContext = context;
return Task.CompletedTask;
}
private ClaimsPrincipal CreateClaimsPrincipal(string userName = "DEFAULT")
{
var claims = new[] { new Claim(ClaimTypes.Name, userName) };
var identity = new ClaimsIdentity(claims, SchemeName);
return new ClaimsPrincipal(identity);
}
}
Register the provider with a custom scheme in the DI container:
// Add our custom authentication scheme and handler for request headers-based authentication..
builder.Services.AddAuthentication(options =>
{
options.AddScheme<CustomAuthenticationHandler>(
name: CustomAuthenticationHandler.SchemeName,
displayName: CustomAuthenticationHandler.SchemeName);
});
I hope that this is finally the correct way to do the authentication based on trusted request headers. I would really like to hear your opinion.
You can achieve this in VS Code by updating the settings:
Go to Settings and set "window.titleBarStyle"
to "native"
.
I found a good explanation of why those messages are failing. Hope it helps.
Explanation
The issue arises because HashRouter uses # for routing, while Spotify authentication response also appends the access token after #, causing a conflict. When Spotify redirects back, the token gets mixed with the routing, making it difficult to extract. A workaround is to manually parse the URL fragment in JavaScript using window.location.href.split("#")1 to extract the token separately. Alternatively, consider using BrowserRouter and deploying your app on Vercel or Netlify, which support proper SPA routing. If you're interested in Spotify-related solutions, including accessing Spotify Premium features, you might find Spotifine.com helpful. It provides insights and downloads for enhancing your Spotify experience.
delete android studio pls worst IDE ever
I had a similar issue. I can select add docker-compose but I get the error "An error occured while sending request".
I had updated Microsoft.VisualStudio.Azure.Containers.Tools.Targets
to newst version. I think it might be because I upgraded to .NET 9
strong password create
Download Simontok VPN https://si-montok.pro/
You could just use https://mvnpm.org/ (free) and just put the dependency you want in the pom!
So the only way you can a create a secure string that can be used on multiple machines is to use a key when you create the password.
On the first machine run the following to make the secure string
$Key = (3,4,2,3,56,34,254,192,1,1,2,23,42,54,33,233,1,34,2,7,6,5,35,43)
read-host -assecurestring | convertfrom-securestring -key $Key | out-file C:\Scripts\test\securestring_movable.txt
type in the password at the prompt
then copy the secure string file onto a another machine and run
$Key = (3,4,2,3,56,34,254,192,1,1,2,23,42,54,33,233,1,34,2,7,6,5,35,43)
$password = cat C:\Scripts\test\securestring_movable.txt | ConvertTo-SecureString -Key $Key
In my use case only the secure string file lives on the remote machine. I then use Zoho's Desktop Central or Heimdal to run the script remotely. That way the key and the secure string are not on the same machine.
Stakater Reloader supports this now: https://github.com/stakater/Reloader/pull/808
How about selecting the right url dynamically within your application. Sample say.
export const getApiUrl = () => {
if (typeof window === 'undefined') {
// Server
return process.env.SERVER_PYTHON_API;
} else {
// Client
return process.env.NEXT_PUBLIC_PYTHON_API;
}
};
Then when making API calls, use the function to get the correct URL. Sample like
const fetchData = async () => {
const apiUrl = getApiUrl();
const response = await fetch(`${apiUrl}/your-endpoint`);
const data = await response.json();
return data;
};
With this you can work with both URL's. And update docker compose env with both url
environment:
- NEXT_PUBLIC_PYTHON_API=http://localhost:8000
- SERVER_PYTHON_API=http://server:8000
I got the answer.
In the bpy code at last I am doing:
const finalCode = `${userCode}\n\nfor obj in bpy.context.scene.objects:\n obj.select_set(True)\nbpy.ops.wm.usd_export(filepath="/workspace/${outputName}", export_textures=True, export_materials=True, export_animation=True)`
this exports in Universal Scene Description(USD) and save in a file(/workspace/outputName). Since ${tempDir}:/workspace, which is why the file is stored in ${tempDir}/${outputName}
I could give the output to user now.
Solved!
In graph2vec using networkx, the label and feature should be numerical for the purpose of training. You did not use the right structure so it won't find the graphs
G.add_node(0, label = 1, feature=0.5)
G.add_node(1, label = 2, feature=1.2)
G.add_node(2, label = 3, feature=0.8)
You can try the CANoe DLT Add-On to parse DLT messages: https://www.vector.com/int/en/download/canoe-add-on-for-autosar-diagnostic-log-and-trace-dlt-2-7-2/
Here is a lib that provide a @Transactional annotation for nestjs and drizzle (and others ORM) : https://papooch.github.io/nestjs-cls/plugins/available-plugins/transactional/drizzle-orm-adapter
Hey I was also having the same video/issue
The auth
is being exported from @clerk/nextjs/server
Updated doc on auth()and it is asynchronous function
use this while importing it
import { auth } from "@clerk/nextjs/server"
and
const page = async () => {
const { userId } = await auth(); ...
}
Use command line arg ”--user-data-dir“ to run chrome as many physically separated instances as you want.
e.g.
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir=d:\chrome-profile\test
Initialize error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:5:95
"whatsapp-web.js": version updated from "1.23.0" to "1.26.0", It solved my problem.
Late answer but I had the problem now and solved it now with none of the proposed solutions.
Though I agree with @axiac about conditionally using a trait depending on its existence, I had a similar problem of conditional use of traits (based on other conditions).
class_alias()
is your friend here.
You need to do the setting to remove that behavior first, that you can find at
Settings > Tools > Actions on Save
Uncheck the Reformat code , you can pick some file types to apply this or not.
I had a similar issue on PhpStorm 2023.3.8
Turned out that I've marked the directory as excluded. When I removed the exclusion the option to run the file as PHP was visible again.
I have the same problem as you, have you solved it?
After hours of debugging, I came across this comment in github, which solves my problem. I hope those who face this issue can also look into this comment, which will be helpful, thank you! https://github.com/facebook/react/issues/11538#issuecomment-390386520
Remove all the dlls from your app and install the following:
Install-Package Spire.XLSfor.NETStandard
Install-Package SkiaSharp.NativeAssets.Linux.NoDependencies -Version 2.80.0
For more details, you can refer to this forum post.
I created a library for generating presigned URLs for S3 objects: aws-simple-sign.
It works well with Cognitect's aws-api
library, as it can reuse the same client (credentials).
Additionally, it supports Babashka, where the AWS Java SDK isn't available.
Tested with both AWS and MinIO, but it should work with any S3-compatible provider.
Sorry, bro, I'm sorry I can't answer your question, but I actually want to ask you one, if that's OK. I'm finishing my studies in computer science and my thesis involves integrating BPEL orchestration with blockchain and smart-contracts. I'm having an enormous difficulty in being able to run BPEL somewhere. No modern IDE supports it natively any more and above all, I can't even configure Apache ODE on Tomcat, as it requires too old a version of Java. I read that you are using BPEL, could you tell me how you did it? How do I create a BPEL development environment?
Laravel does not provide a direct money column type.
I think using decimal is the better option, but if u really need the money type then use raw SQL
I recently encountered an issue with Podman Desktop on my Apple Silicon MacBook, where the application failed to initialize properly. After some troubleshooting, I found a solution that might help others facing the same problem.
When launching Podman Desktop, the console displayed an error message indicating that the initialization failed. The specific error was related to permission issues, and the application did not start correctly.
Solution Steps
Open Terminal
Launch the Terminal application on your MacBook.
Run Podman Desktop with Elevated Permissions
Execute the following command to start Podman Desktop with sudo
privileges:
sudo /Applications/Podman\ Desktop.app/Contents/MacOS/Podman\ Desktop
This command allows the application to initialize with the necessary permissions.
Allow Initialization to Complete
Keep the Terminal window open and let Podman Desktop complete its initialization process. This step is crucial as it ensures that all required directories and configurations are set up correctly.
Exit and Restart Podman Desktop
Once the initialization is complete, close the Terminal window and exit Podman Desktop. Then, restart the application normally (either from the Applications folder or via Spotlight).
If you use Quasar, there is openURL function:
import { openURL } from 'quasar'
openURL(
'http://...',
undefined,
{
target: '_blank'
}
)
Docs:
I also developed an application that listens to SMS. I did a lot of research but I couldn't solve this with Flutter. And I did it with Kotlin. If the application is going to be open all the time, you need to get permission from the user to ignore battery optimization. Don't forget to get permission for SMS too. (These may be sensitive permissions) If you want to review it, you can look here ->> https://github.com/dcicek/read_sms
to sort files by last modification time you can try :
find . -type f -printf "\n%TF-%TT %p" | sort
to sort by reverse order and to remove the prefix you can try :
find . -type f -printf "\n%TF-%TT %p" | sort -r | cut -d " " -f 2
I'm using Python 3.13 and ran into the same problem. I found out about the library pytubefix
, which basically is a working version of pytube
. I stumbled upon it randomly while checking out this github repository.
Try installing it using pythom -m pip install pytubefix
, import it in your program and it should work just fine.
Using the @Embedded annotation will make it more troublesome to upgrade the database, and you should also pay attention to where it is referenced.
This happens because of the cross-domain, I also faced this problem in my project, and I couldn't resolve it so I served my front-end from the back-end. And deployed as a single domain now it will work.
I solved this issue by adding '%M2_HOME%\bin' as a system variable. Refer How to fix maven error in jenkins on windows: ‘mvn’ is not recognized as an internal or external command
I guess this issue is resolved in the first comment. Putting it here in steps.
Set GOPATH and GOROOT paths in your environment (system variables)
GOPATH will be %USERPROFILES%\go , GOROOT is C:\Program Files\go
Add Path values for these two by appending the \bin folder.
GOROOT is the place of Go installation files
GOPATH is the Workspace for your projects and dependencies. This is where go stores all installed artifacts/dependency like maven .m2 repo in local. Contains your Go source code (src/), compiled binaries (bin/), dependencies (pkg/).
Apply the same analogy for mac. Restart the ide, it should work.
I had the same problem so I find your post.I don't know if you still need help,I found the problem.
The situation is that google make the Service Account to be a real google account,so it makes the progress becomes other account try to add file to your google account.Then I create a folder and set folder's sharing to anyone can edit. And I can finally add file.
Hope this can help you! sorry English is not my native language,my typing could look wierd :(