Actually I found a solution and it worked. I have used interserver communication path but , may be that was wrong path. So , i just commented out that path in my config file. Now clickhouse automatically settled it's interserver communication path. And my replication work fine now.
Bro facing same issue
please tell if you find solution
Have you checked that all the packages (in pubspec.yaml) you are using are compatible with Android and iOS?
If you're like me the problem might be as simple as you're new to jest and are calling the function in the wrong spot....
Ex: It should be
expect(sum(1, 2)).toBe(3)
Not
expect(sum(1, 2).toBe(3))
```sh
composer require tymon/jwt-auth
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
php artisan jwt:secret
```
Such a simple fix! Scratching my head... why does the prefilled disappear?
Thanks!!
upvote is not working... for me
With this converter tool, you can Convert Less to CSS instantly without installing any software.Enjoy 100% client-side processing, so your code stays secure and private. Upload less files, load CSS from a URL, or simply paste your Less code. And finally Download the converted CSS or copy it with just one click.
You have to indicate the specific mailbox you want to search in via "Account". In your get mail activity add the email account and ensure all capitalization are correct.
Thanks to @3CxEZiVlQ for pointing me in the direction of a solution. I needed to add the folder that contained link.exe to my path. After that, it was able to build fine.
@salvador, thank you very much!! took me almost 2 days to figure this out. i was working in a docker container with vscode and remote containers extension when running the cdk synth command. i knew it had something to do with docker in docker (dind) but never found a good solution.
you had the right answer in my case
solved it by adding a helper function to create middleware
type InferInput<TProcess> = TProcess extends (ctx: Context<infer I, any>) => any
? I
: never
type InferOutput<TProcess> = TProcess extends (
ctx: Context<any, any>,
) => infer O
? O
: never
export function defineMiddleware<
TProcess extends (ctx: any) => any,
TEvents extends Record<string, (...args: any[]) => void> = {},
>(mw: {
name: string
deps?: (keyof InferInput<TProcess> & string)[]
provides: keyof InferOutput<TProcess> & string
process: TProcess
rollback?: (
ctx: Context<InferInput<TProcess> & InferOutput<TProcess>, TEvents>,
) => void | Promise<void>
}): MiddleWare<InferInput<TProcess>, InferOutput<TProcess>, TEvents> {
return mw as MiddleWare<
InferInput<TProcess>,
InferOutput<TProcess>,
TEvents
>
}
If you want a wider dropdown, you can also increase your padding in order to push the text below or to the right of the box.
<ComboBox Name="BlankBox"
Height="21"
Margin="3,2"
Padding="0"/>
<ComboBox Name="BlankBox"
Height="21"
Margin="3,2"
Padding="5"/>
(text is offset from the top-left and partially obscured by the bottom padding of the box)
<ComboBox Name="BlankBox"
Height="21"
Margin="3,2"
Padding="20"/>
FileInfo fi = new FileInfo(somefile){Attributes = FileAttributes.Hidden};
I was implicitly a test user because my Facebook account was automatically added as a test user. Adding the other account as a test user resolved their problem. So now I think I need to request advanced access on instagram_basic through app verification. It's hard to get guidance from Meta, though I asked for it in my verification request.
FWIW, in spring2025 still, I noticed this same problem, went in search of an answer, land here. I didn't change my script to add sys.exit(). I ran it, quick run, saw no Python tasks in task manager. I hit Refresh in the Task Scheduler Actions and status goes back to the expected Ready.
So, a bug, still.
import speech_recognition as sr
# Crear el reconocedor
recognizer = sr.Recognizer()
# Usar el micrófono
with sr.Microphone() as source:
print("Di algo...")
recognizer.adjust_for_ambient_noise(source) # Ajustar al ruido ambiental
audio = recognizer.listen(source) # Escuchar la entrada de voz
# Intentar reconocer el audio
try:
texto = recognizer.recognize_google(audio, language="es-ES") # Convertir audio a texto
print("Has dicho:", texto)
except sr.UnknownValueError:
print("No se pudo entender el audio")
except sr.RequestError:
print("Error con el servicio de reconocimiento")
it's possible to have only the price, not the name product
thanks
Is this correct ??
Switch(
[Dif Tarea] >= -5, "Verde",
[Dif Tarea] < -10, "Rojo",
[Dif Tarea] < -5 AND [Dif Tarea] >= -10, "Amarillo"
)
Help!!
The goal of this formula is to categorize the difference in task performance (represented by [Dif Tarea]) into three distinct categories, each represented by a color:
"GREEN" : This indicates that the task is performing well or is on track. "YELLOW" : This indicates that the task is at risk or needs attention. "RED" : This indicates that the task is significantly behind or in trouble.
use cloneType
val aluop = Input(ALUType.AluOP.ADD.cloneType())
I think that many to many attribute/entity is expecting a Foreign Key to Project model, and that's what generating your error. Perhaps you may need to rethink your models a little. For example, a project will always have an owner and contributors, so you may add these attributes to Project model instead of Account, and that many to many field would be added in Project as well (a project has single owner and many contributors).
Then, if you want to get all project a single user is participating you could use "get_related" methods to pull that QuerySet.
Ctrl-u
write / paste formula
Cmd-Shift-Enter
works for me on Excel 16.95 (25030928)
Ctrl-Shift-Enter has no effect.
Also, all the populated cells don't paint properly until you scroll away & back
I had same issue with flutter_sound. Checked pubspec.lock and found that it was on an old version 9.6.0 so I updated it in pubspec.yaml to flutter_sound: 9.25.9 latest version. Then I did flutter pub upgrade . Also you may need to bump minSdk to 24 in android/app/build.gradle with newer plugin versions.
Update for Ionic 8:
ion-toolbar {
--background: transparent;
}
A python library implemented by python3, for listening to Toast message notifications on windows.
WinToastListener-Readme
Mlir vs TVM table of comparison
Even though TVM and MLIR are frameworks designed for the optimized and lower high-level computation representation to efficient machine code, the design philosophy and the purpose are completely different and they operate on the other level of the stack.
Below is their key differences
| Feature | TVM | MLIR |
|---|---|---|
| Primary Goal | Optimized deep learning model deployment | Infrastructure for building reusable compiler frameworks |
| Scope | End-to-end deep learning compilation (from model to hardware) | General-purpose intermediate representation (IR) for compilers |
| IR Type | Uses Relay (high-level) and TIR (low-level) | Multi-level IR with dialects for different abstraction levels |
| Target Audience | Primarily for ML engineers and practitioners | Compiler developers working on new frontends or backends |
| Optimization Focus | Tensor optimizations, auto-tuning, scheduling | Multi-level representation, extensibility, lowering passes |
| Hardware Support | CPU, GPU, FPGA, and custom accelerators (via AutoTVM & TensorIR) | Acts as an intermediate layer for various compiler backends (e.g., LLVM, TVM, XLA, IREE) |
| Flexibility | Designed specifically for ML workloads | Can be used for ML but also supports general compiler use cases |
| Adoption | Used by AI frameworks for optimized model execution | Used in LLVM, TensorFlow, IREE, and other compiler projects |
TVM -> Dealing with the deployment of the deep learning model and requirement is that you need efficient execution on various hardware targes with auto tuning and scheduling optimization
MLIR -> When you are dealing with the building a compiler or required a flexible multi level IR infra to transform and lower computation
| 💡 Tip |
|---|
| TVM can be considered as end-to-end deep learning compiler stack who main aim is to focus on optimizing and deploying ML models efficiently across various hardware backends. |
| MLIR (Multi-Level Intermediate Representation) is a compiler framework whose main aim is to build reusable and extensible compiler infrastructures. |
| Overall both TVM and MLIR have different goal thats the reason they complement each other rather than competing. |
we're seeing this but for user_pseudo_id (i.e. multiple traffic_source.source and traffic_source.medium where this should only reflect the initial traffic orogins for that particalar user_pseudo_id. anyone else getting this issue in BigQuery?
The other answer is not up to date with latest version of woocommerce (03/2025)
It is now this :
UPDATE `mod13_wc_orders` SET `currency` = 'EUR' WHERE `mod13_wc_orders`.`currency` = 'USD';
I've got far enough and replaced characters but I still have an error I simply don't understand, there should not be a invalid character anymore
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden: 'C:\\Users\\merta\\Music\\music\\music.2\\1000x COOLER + W1NNER (prod. by Young Kira) - TJ_beastboy.mp3' -> 'C:\\Users\\merta\\Music\\music\\music.2\\mitMeta\\1000x COOLER _ W1NNER (prod. by Young Kira) - TJ_beastboy.mp3'
replacements = str.maketrans({"/": "_", "|": "_", '"': "_", "'": "_", "?" : "_", "<" : "_", ">" : "_", "[":"_", "]":"_", "*":"_",\
"%":"_", "\\":"_", ":": "_", "`":"_", "!":"_", "@":"_","+":"_","=":"_"})
newname = newname.translate(replacements)
From windows machine you can count using Powershell -
PS1>gsutil ls gs://bucket-name/** |measure-Object
The errors you're getting are due to the auth settings of your app. You can't sign URLs with the access token only (default way your app uses). Thus you can either:
Please read the guide you attached carefully starting from the Authentication settings section. You will find all the answers here.
When going to Django admin, there's AttributeError
Exception Value:
you need a private key to sign credentials.the credentials you are currently using <class 'google.auth.compute_engine.credentials.Credentials'> just contains a token. see https://googleapis.dev/python/google-api-core/latest/auth.html#setting-up-a-service-account for more details.
Your guide says:
If your app handles signed (expiring) urls, then read through the options in the Settings for Signed Urls in the following section
From the documentation, follow this link and update the row with these
mainAxisAlignment: MainAxisAlignment.center, // Center the row contents and a SizedBox for some space
so it should look like this then
Row(
mainAxisAlignment: MainAxisAlignment.center, // center contents
children: <Widget>[
Text(label),
const SizedBox(width: 8), // some spacing between text and switch
Switch(
value: value,
onChanged: (bool newValue) {
onChanged(newValue);
},
),
],
),
Apart from duplicate or near duplicate points, I found that large coordinate values can also lead to this warning. Try centering the coordinates in conjunction with dropping duplicate and near duplicate values. This might solve your problem.
Thanks all for contributing to my understanding the rules of how dotnet restore works
I found out that I could find the dependencies to specific versions of packages by examining the Project.assets.json file and doing so in a json editor it became clear what was causing the issue.
Microsoft.EntityFrameworkCore.Design - Version="9.0.3"
has a dependency to
Microsoft.CodeAnalysis.Workspaces.MSBuild - Version="4.8.0"
that has a dependency to
This error means that at some point we're using a ensure that a value is non-null with ! when it's actually null.
But it doesn't seem to come from the code you're giving us.
Could you use a breakpoint with the debugger to see the exact line?
Perfect solution !!
Until version 21c this is the only way.
Thanks a lot !
def Lshift(arr,n):
a=Lshift[n:]+Lshift[:n]
return a
arr=[1,2,3,4,5,6,7]
n=int(input("enter a number by which you want to seperate:"))
x=Lshift(arr,n)
print("original list :",arr)
print("after shifting list :",x)
Encountered this error on a process i was working on. Kill all process before running your code. THus kill excel and any other open application, in order to clear up CPU.
Thanks. I'm having the same problem and this post was helpful. But, I have an additional issue. When I try to install Snowsql, both the cmd prompt and terminal stop accepting input at the password prompt. I type, but nothing happens. Any ideas on address that? Thanks!
I followed all of this, and it worked once I realized all this changes require to open a new terminal so the new config on .aws/credentials apply to the current terminal
I had a double configuration issue on .aws/credentials file, cleaned up and open a new terminal and it worked fine
If someone is using Reactjs or Nextjs. you can easily fix this safari bug with this one.
useEffect(() => {
const timeout = setTimeout(() => {
document.body.style.transform = 'translateZ(0)';
}, 10);
return () => clearTimeout(timeout);
}, []);
You can use a stub file for the migration file creation and then run 'artisan migrate'.
Here is a package that makes stub customization easy: https://laravel-news.com/laravel-stub
I will not judge if letting the user trigger a table creation is a good practice or not... it is not.
I had a similar problem. For me the trouble was that nginx only logged when the connection was closed. Setting the HTTP request header Connection to closed solved the problem for me. This cannot be done for fetch-requests from a browser and thus doesn't solve OP's problem, I just wanted to comment in case might help somebody else.
The initial code is valid, but you selected the wrong logger. To get the traceback on the error, you would need to modify the "uvicorn.error" logger.
Like so:
import logging
log = logging.getLogger("uvicorn.error")
log.setLevel(logging.DEBUG)
Other available default loggers are "uvicorn" and "uvicorn.access" , as seen in @TheClockTwsiter's answer. This way you don't need to copy/modify the entire logging configuration. It will also preserve any implicit behavior of the uvicorn logging configuration, if it is ever updated by the dev team.
if your component class is in this path: The livewire class (app/Livewire/Productos.php)
The problem might be in the namespace declaration inside of the Products.php file.
You have it declared wrong with: App\Http\Livewire. It should be: App\Livewire
I really didn't find in the official codesys Help a detailed descriptive definition for each possible combination type and the expected response, but I found this note here:
"Conversions from a "larger" type to a "smaller" type are also implicitly possible (for example, from INT to BYTE or from DINT to WORD)."
Would that be enough?
Despite this, there are several notes distributed in the codesys help explaining specific situations about value conversions, such as notes about floating points and possible problems between different Target Systems, like here:
"The rounding logic for borderline cases depends on the target system or the FPU (Floating Point Unit) of the target system. For example, a value of -1.5 can be converted differently on different controllers."
Another situation, as example, is about DATA and TIME conversion, explained in the help for the ADD operator.
Finally, what I recommend as good practice is, when in doubt, use explicit conversion.
I was running into the same issue and did some more digging myself. Appears to be an issue with when this deprecation happens.
https://github.com/php/php-src/issues/17422
As an example I've put two 8.4 deprecations together and set error reporting to 0. The implicit null deprecation still outputs an error but the unserialize deprecation does not. Example code.
For us this means php 8.4.5 (current version) is not yet production ready as we don't have control of every package to fix what is only a deprecation and extra output to stdout ruins json output.
Recommendation: stay with php 8.3 until this is fixed.
It seems that this behavior (that won't show the duplicate rows) is by design on Power BI.
I also do not found an effective solution to achieve your requirement except maybe for add a external field such as index and then make the new index colum not visible
Just to add more what Morag Hughson anserwed. The issue got resolved by modifying the Topic to have propterites Non-persistent message delivery and Persistent message delivery set to value To all available subscribers. These are properties in General section of a topic.
private static int main()
{
var randomInt = GLib.Random.int_range(int.MIN, int.MAX);
print(randomInt.to_string());
return 0;
}
Let me know if I am wrong about this, but shouldn't the right hand side of the 2nd constraint in the dual problem be 1 and not -1?
Generally, this scenario is not possible - If the primal is feasible and bounded, the dual should also be feasible and bounded.
Thanks to Sona I solved the issue. In case somebody is facing the same problem and has to debug, here it is my full code, copyng Sona and other posts.
import requests
from requests.auth import HTTPBasicAuth
import logging
import contextlib
from http.client import HTTPConnection
#https://stackoverflow.com/questions/16337511/log-all-requests-from-the-python-requests-module
# FOR DEBUGGING
def debug_requests_on():
'''Switches on logging of the requests module.'''
HTTPConnection.debuglevel = 1
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.DEBUG)
requests_log.propagate = True
def debug_requests_off():
'''Switches off logging of the requests module, might be some side-effects'''
HTTPConnection.debuglevel = 0
root_logger = logging.getLogger()
root_logger.setLevel(logging.WARNING)
root_logger.handlers = []
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.WARNING)
requests_log.propagate = False
@contextlib.contextmanager
def debug_requests():
'''Use with 'with'!'''
debug_requests_on()
yield
debug_requests_off()
debug_requests_on()
#from Sona
files = {'flusso': ('lista.csv', open('here the file', 'rb'), 'text/plain')}
body, content_type = requests.models.RequestEncodingMixin._encode_files(files, {})
data = body
headers = {
"Content-Type": content_type,
'Content-Disposition': 'form-data; name="flusso"',
'Content-Disposition': 'form-data; filename="lista.csv"',
'Accept-Encoding': 'gzip,deflate',
'User-Agent': '',
'MIME-Version': '1.0',
'Connection' : 'keep-alive',
}
r = requests.post(
url,
data=data,
headers=headers,
auth=HTTPBasicAuth('here the user', 'here the password')
)
if r.ok:
print("Login: Success!")
print(r.text)
print(r.status_code)
print(r)
else:
raise Exception("Errore. ", r.status_code)
I don't know if I'll ever be good enough to understand the real reason for this, but I did find a solution to my problem.
As I write this, I realise that I'm also using MimeKit v4.8.0 while v4.11.0 is available. Not yet tested on v4.11.0
Essentially the problem seems to occur when:
Email stream is read into a new MimeMessage
WriteTo is called on that MimeMessage to write to a new stream / byte array
A new MimeMessage is created from this new stream / byte array
The solution (in my case at least) was to store the original byte array only, and not to store or reuse the output of the MimeMessage.WriteTo() method.
But again, I only hit this problem on a Linux box (Windows seemed fine), and the ONLY difference I could find (on a byte-for-byte basis) between the mails that worked and didn't work was the line endings (\r\n worked; \n did not work).
The thing was that causing all of those weird equals signs was some sort of off-by-one issue when handling the line breaks and/or line lengths.
For example, given the below 2-line snip of "quote-printable" section of the message (have added the \r\n characters for clarity):
<div lang=3D"EN-US" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:b=\r\n
reak-word">
this SHOULD be extracted / translate to:
<div lang=3D"EN-US" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:break-word">
but INSTEAD was getting extracted / translated to:
<div lang=3D"EN-US" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:b=eak-word">
In other words, it was keeping the "=" at the end of each line, and dropping the first character from the subsequent line. This obvious broke the HTML structure, and if it was actual content that was spanning the line break, you'd see characters being "replaced" by "=" signs.
For good measure, some commented code that illustrates the issue I was seeing:
// Gets the message stream from Microsoft Graph API
var mimeContentStream = await _Client.Users[_Username].Messages[uid].Content.GetAsync();
// Loads the message stream into a MimeMessage object
// write this mimeMessage to disk / view in email client, and I get the correct body
var mimeMessage = await MimeKit.MimeMessage.LoadAsync(mimeContentStream);
// writes the MimeMessage object to a byte array
byte[] mimeMessageArr;
using (var ms = new MemoryStream())
{
mimeMessage.WriteTo(ms);
mimeMessageArr = ms.ToArray();
}
// Loads the byte array into a new MimeMessage object
MimeMessage mimeMessageAgain;
using (var ms = new MemoryStream(mimeMessageArr))
{
mimeMessageAgain = await MimeKit.MimeMessage.LoadAsync(ms);
}
// write mimeMessageAgain to disk / view in email client, and I get lots of EQUALS signs interspersed with the (mis-formatted) body
I don't think the fact that I was retrieving this from a Microsoft Graph API call makes the difference. I have no idea why Linux/Windows would make a difference. All I know is that after 2 days I can finally sleep.
was you able to find a solution for this case?
I also see some similar errors on virtual machines when trying to open terminal. But I am doing the same steps locally and no issues for terminal..
Try
GET /cars?is_impounded=null
instead of
GET /cars?is_impounded=None
Container queries aid this issue in some way. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries
Wanting to do something similar I stumbled upon this article. A bit misleading title, if you ask me. A div.dropdown is not a dropdown component.
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.