Add .hero { padding: 0 !important; } on mobile devices to remove extra space at the top and bottom. Change height: auto - height: 100% on hero img so that the image still fills the entire screen.
Probably triggerLineEvent: true
is what you want, see example
JJFYFB JF FJF VFJF VFJF FBF FJF FJF FJFJF FBF FBF JGF VXUF DYFJF EJE VEHGEH DBD VFH FJF BFUF VFJFUBB FKF FH VB F FBJF F BFHF FBJFBFBF YFYFJBBFJ VFJF BFJ FJF FBFBBFJF FBF FBJFBFJBFJR FBFBFJYF FHF FHF FBF VFBF FHFBYF FJ FJF FJGDOWNVSJEVHD FHF BFJFBFKF FBF FJFBFJFBF FBFVFJFBFJF FHFBJFBF FHFBFJF
LibreOffice Draw allows you to display and change the resolution of an embedded image in a PDF.
Open the document, right click on the image, select Compress.
Here is an example of a "tiny" image on an invoice template consuming 1.2MB
Display PDF embedded image resolution
After changing the resolution, the image is now just 20K
In PowerShell, function arguments are separated by spaces, not commas, and you don't enclose them in parentheses unless you're passing an array or an expression that evaluates to multiple arguments.
Correct way to call the function
foo "hello" "something"
you could try using height: 100% instead of auto for the media queries
.hero img {
object-fit: cover;
height: 100%;
...
close
nodelalloc
mount -t ext4 -o remount,nodelalloc /${dev} /${mnt};
head
is now implemented in Matlab
he file is in shared or co-edited mode or the file is in .xlsx format. Save as .xlsm (macro-enabled workbook).
padding: 0 !important; /* Remove the padding that created space / height: 100%; / The image still covers the screen */ The padding: 60px 0; left space below. The height: auto; of the image prevents it from expanding to full screen.
It looks like your email message isn't formatted correctly.
`Please click the following link to verify your new email address:\n\n{####}`
'order' is a reserved word in Postgresql; see https://www.postgresql.org/docs/current/sql-keywords-appendix.html
Try enclosing it in double-quotes; or changing the table name (which will always cause trouble).
For Intellij IDEA 2024.1.1(Ultimate Edition):
Go to Intellij IDEA -> Settings -> Appearance & Behavior -> System Settings
Under Project, click on "Ask" in the "Open Project in" options.
Apply
throttled-py is a Python rate limiting library with multiple algorithms (Fixed Window, Sliding Window, Token Bucket, Leaky Bucket & GCRA) and storage backends (Redis, In-Memory).
If you want to throttle the same Key at different locations in your program, make sure that Throttled receives the same MemoryStore and uses a consistent Quota
.
The following example uses memory as the storage backend and throttles the same Key on ping and pong:
from throttled import Throttled, rate_limiter, store
mem_store = store.MemoryStore()
@Throttled(key="ping-pong", quota=rate_limiter.per_min(1), store=mem_store)
def ping() -> str: return "ping"
@Throttled(key="ping-pong", quota=rate_limiter.per_min(1), store=mem_store)
def pong() -> str: return "pong"
ping() # Success
pong() # Raises LimitedError
Or use redis as storage backend:
from throttled import RateLimiterType, Throttled, rate_limiter, store
@Throttled(
key="/api/products",
using=RateLimiterType.TOKEN_BUCKET.value,
quota=rate_limiter.per_min(1),
store=store.RedisStore(server="redis://127.0.0.1:6379/0", options={"PASSWORD": ""}),
)
def products() -> list:
return [{"name": "iPhone"}, {"name": "MacBook"}]
products() # Success
products() # Raises LimitedError
Is this what your looking for?
throttled-py can help you achieve fixed rate calls:
You can specify a timeout
to enable wait-and-retry behavior. The rate limiter will wait according to the retry_after
value in RateLimitState and retry automatically.
from throttled import RateLimiterType, Throttled, rate_limiter, utils
throttle = Throttled(
using=RateLimiterType.TOKEN_BUCKET.value,
quota=rate_limiter.per_sec(1_000, burst=1_000),
# ⏳ Set timeout=1 to enable wait-and-retry (max wait 1 second)
timeout=1,
)
def call_api() -> bool:
# ⬆️⏳ Function-level timeout overrides global timeout
result = throttle.limit("/ping", cost=1, timeout=1)
return result.limited
if __name__ == "__main__":
# 👇 The actual QPS is close to the preset quota (1_000 req/s):
# ✅ Total: 10000, 🕒 Latency: 14.7883 ms/op, 🚀Throughput: 1078 req/s (--)
# ❌ Denied: 54 requests
benchmark: utils.Benchmark = utils.Benchmark()
denied_num: int = sum(benchmark.concurrent(call_api, 10_000, workers=16))
print(f"❌ Denied: {denied_num} requests")
npx expo start --tunnel
I used this to solved above issue, (Provide a public URL accessible from anywhere)
Just for the sake of Mac community, this code works perfectly in My Mac M2 with Apple Silicon https://huggingface.co/docs/diffusers/en/optimization/mps
This can be solved using throttled-py.
from datetime import timedelta
from throttled import Throttled, rate_limiter, RateLimiterType
quota = rate_limiter.per_duration(timedelta(minutes=5), limit=5)
# Supports multiple algorithms, use Token Bucket by default.
@Throttled(key="StashNotes", quota=quota)
def StashNotes():
return "StashNotes"
If the limit is exceeded, a LimitedError is thrown: throttled.exceptions.LimitedError: Rate limit exceeded: remaining=0, reset_after=300, retry_after=60.
.
Hola amigos estoy tratando de implementar sqliteassethelper en android studio kotlin pero no me permite. me sale unexpected tokens cuando escribo la implementacion. les agradezco su aporte. esta es la instruccion que le doy:
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'
If you set up a UserForm to appear immediately after a System Modal MsgBox, click on OK or the top right corner X. The MsgBox will force focus to the App where the macro is running. I have had to do this on a 30 minute loop for a macro to suggest an optional 5 minute break.
You should be able to concatenate the image like this:
text='positive <img src="green_check_mark">'
The problem for me was that I had a ".git" folder inside my context folder. Which couldn't be copied to the container on the build.
So what I had to do was create a .dockerignore file in the context folder and add the '.git' folder to it.
In my case there was an additional instance of the cl
MSVC compiler command stuck running in the background, killing the process fixed the issue
It has been fixed in com.android.tools:desugar_jdk_libs:2.1.5
https://github.com/google/desugar_jdk_libs/blob/master/CHANGELOG.md#version-215-2025-02-14
I had this same issue. It turns out that each shape has many subshapes associated with it and you need to change all the attributes of those as well. Easiest way to work it out is to record a macro while you manually make the change and then use that as the basis for your code. You will likely find that you need about 20-40 lines of code (depending on what you are changing) to make it work.
Tim G, in the comments, points out that there is an easier data structure now that can be used for the sunburst plot.
https://github.com/JohnCoene/echarts4r/issues/207#issuecomment-718524703
df <- data.frame(parents = c("","earth", "earth", "mars", "mars", "land", "land", "ocean", "ocean", "fish", "fish", "Everything", "Everything", "Everything"),
labels = c("Everything", "land", "ocean", "valley", "crater", "forest", "river", "kelp", "fish", "shark", "tuna", "venus","earth", "mars"),
value = c(0, 30, 40, 10, 10, 20, 10, 20, 20, 8, 12, 10, 70, 20))
# create a tree object
universe <- data.tree::FromDataFrameNetwork(df)
# use it in echarts4r
universe %>%
e_charts() %>%
e_sunburst()
you're not able to send apk directly in whatsapp if you using macOS because of security matters
I have this same problem, the front where go in localhost its wrong to vercel, i search and i found they have a case-sensitive, how my fonts its named as 'GOTHIC.TTF' its wrong to vercel. So, to fix this, lets change to 'gothic.ttf'. Here works sucessfully, try and say to me!
Ok, it is not quite an answer to the question but a work around that got me past the error.
My issue is that the Content Type was available in the Content type hub and I needed to sync from there.
string rootUrl = webURL.Substring(0, webURL.IndexOf("/", 8));
ClientContext clientContext2 = Task.Run(() => AuthManager.GetContextAsync(rootUrl).GetAwaiter().GetResult()).Result;
clientContext2.ExecutingWebRequest += delegate (object senderCC, WebRequestEventArgs eCC)
{
eCC.WebRequestExecutor.WebRequest.UserAgent = "NONISV|EncompaaS|OricaConnector/1.0";
};
var web2 = clientContext2.Site.RootWeb;
clientContext2.Load(web2, w => w.AvailableContentTypes);
clientContext2.ExecuteQuery();
var ctype = web2.AvailableContentTypes.First(c => c.Name == ContentType);
var sub = new Microsoft.SharePoint.Client.Taxonomy.ContentTypeSync.ContentTypeSubscriber(clientContext);
clientContext.Load(sub);
clientContext.ExecuteQuery();
sub.SyncContentTypesFromHubSite2(webURL, new List<string>() { ctype.Id.StringValue });
clientContext.ExecuteQuery();
list.AddContentTypeToListByName(ContentType);
Is this an error above?:
dy(2) = 1/dy(1); % tau
Seems like it should be
dy(2) = 1/y(1);
I have a Module with OnTimer macros for a System Modal MsgBox to pop up every 30 mins to suggest I start a 5 Mins break. This gives way for a UserForm
I had to abandon the On Timer as it woud not trigger all the time, when App focus was not in Word where the 'Macro M reminder to Move WFH'.
I would like this solution as OnTimer uses virtually no CPU and battery charge when compared to a Timer with Do While DoEvents Loop, via monitoring Task Manager.
Struggled to find any solutions for a few weeks, before reverting back to a timer.
I simply run update for node in my laravel homestead. I follow the download npm code at https://nodejs.org/en/download. Now its running
You should not use a Kerberos ticket on two different machine at least with Microsoft Kerberos. Doing so is a pass the ticket attack. Likely your EDR will light up if you succeed at this. If it doesn't you should be concerned.
Each of these options has advantages and disadvantages, and also implications that aren't necessarily good or bad - they are just stuff you have to deal with. There is no option which is "best" in an absolute sense - options only have varying levels of suitability for a given problem.
Check to see if you have any guidance (e.g. architecture, internal standards or policies) that helps give direction.
If your architecture does not provide an answer on this then keep in mind that when you do make a decision you should record it as a pattern (noting when the pattern is applicable, when and why yo sue it, etc).
try and identify what "good" looks like, by drawing up a list of things that you think are important for any solution to be "good" (successful). Then score each option against that list. Things to consider when drawing up your list:
(In no particular order): performance, security, maintainability, testability.
Specific scenarios e.g. what happens if you want (or are forced to) to change the backend file storage technology? What happens if the API GW changes? What sorts of client will be requesting the files, and what happens if a new client type is needed?
Olá, importei o Macromed Flash Factory Object e Shockwave Flash Object na Toolbox do Visual Studio Community 2022. Já tenho o Adobe Flash Player instalado no Windows 10. O problema é que o controle fica desabilitado na caixa de ferramentas e não consigo adicioná-lo no formulário. Já tentei mudar a estrutura do projeto par x86 e importar novamente o Flash.ocx mas ainda assim não funciona. Antes disso executei o regsvr32 Flash.ocx de dentro da pasta do Adobe Flash Player onde fica o arquivo, mas o controle continua desabilitado. Alguma sugestão de solução?
2025
It worked after leaving the path in the order as show in the image:
Environment Variables
Updating Android Studio to Narwhal preview version solved this problem.
Okay, I finally figured out how to disable "automatic scaling", once I discovered that this term existed...
If I call DrawImage() with two additional arguments (image width and height), then it does not auto-scale, and I get the required image copies...
graphics.DrawImage(clone, xdest, ydest, dx, dy);
Step 1: Update your next.config.ts to this file
import type { NextConfig } from 'next'; const nextConfig: NextConfig = { productionBrowserSourceMaps: false, output: 'standalone', }; export default nextConfig;
Step 2: install this package npm install --save-dev rimraf
Step 3: replace you build script in package json "build": "next build && rimraf .next/cache",
Make sure to have the <IsTestProject>true</IsTestProject> between the <PropertyGroup></PropertyGroup> tags in .csproj of the test project. This atleast helped for my Test Explorer to finally run the XUnit tests.
The most likely issue is that react-awesome-reveal is trying to access browser APIs during server-side rendering. I think by ensuring these components only render on the client side, you should be able to get your animations working.
Try these steps
try use this command :flutter config --jdk-dir "your jdk path"
which tells Flutter where to find the Java Development Kit (JDK) by manually setting the JDK path it means you don't need to put the link on JAVA_HOME
To filter for all records with only South codes only:
SELECT product_id, f.*
FROM table AS a
INNER JOIN LATERAL FLATTEN (input => a.location_codes) AS f
WHERE f.Key = 'South'
To filter for the record which has the value of 'south3':
SELECT product_id, f1.value::varchar AS location_code
FROM table AS a
INNER JOIN LATERAL FLATTEN (input => a.location_codes) AS f
INNER JOIN LATERAL FLATTEN (input =>f.value) AS f1
WHERE f.Key = 'South'
AND f1.value::varchar = 'south3'
const canvas = document.createElement('canvas'); canvas.width = 600; canvas.height = 400; document.body.appendChild(canvas); const ctx = canvas.getContext('2d');
let circle = { x: 50, y: 200, radius: 20, dx: 2 };
function drawCircle() { ctx.clearRect(0, 0, canvas.width, canvas.height); ctx.beginPath(); ctx.arc(circle.x, circle.y, circle.radius, 0, Math.PI * 2); ctx.fillStyle = 'red'; ctx.fill(); ctx.closePath();
circle.x += circle.dx; if (circle.x + circle.radius > canvas.width || circle.x - circle.radius < 0) { circle.dx *= -1; } }
function animate() { drawCircle(); requestAnimationFrame(animate); }
animate();
I'm faced with a similar problem. In my case the reason was the use of styled-components >= 6
. Since version 6 the automatic addition of prefixes has been disabled. You need to explicitly specify that they are needed using enableVendorPrefixes
in StyleSheetManager
.
get-command -CommandType Application | ? {$_.Name -like '7z.exe'}
get-command
gets all known commands; the -like
operator filters out what is needed , in this case '7z.exe'.
7z.exe is a Application (not a Powershell Cmdlet), thus the switch -CommandType Application
. It may or may not have an entry in the registry.
Without the -Commandtype switch, you would get a clunky error (which you also manage with a try/catch block, that would be clunky)
Cheers, Sudhi
5 years later. You could also create a fake URL and set the window.location to that in JavaScript, then check your onBeforeBrowse notification handler for that URL, cancel the browse, then show your form.
You cannot create a webview in a headless test environment. A webview in Visual Studio Code relies on the graphical user interface to render its contents, and headless environments lack the necessary GUI support to display the webview.
I'm not sure if this works, but it seems Heroku Registry does not support contained, as it's mentioned on this link. Disable it from Docker Desktop as shown in the image
After extensive troubleshooting, the solution that ultimately worked for me was switching to Python 3.10 or 3.9. To implement this fix, ensure your workspace is configured to use Python 3.10 as the interpreter (this can typically be adjusted through your IDE/editor settings). Updating the interpreter version should resolve compatibility issues and allow your code to run properly.
You have to use wlr-layer-shell
to tell the compositor where to place the taskbar it works in hyprland, sway but I don't about DE's like gnome which uses mutter and doesn’t support it directly you would use gtk-layer-shell.
Approach 2 - abstract them out as a port.
I managed to do that by creating a a new component for each entry https://codepen.io/azmvth/pen/PwwQWvj
const app = Vue.createApp({
data() {
return {
log: []
}
},
methods: {
add() {
const self = this
const n = window.btoa(String(Date.now()))
self.log.push(n)
const a = {
data() {
return {
started: 0,
passed: 0
}
},
created() {
const _self = this
_self.started = Date.now()
setInterval(()=>{
_self.passed = Math.floor((Date.now()-_self.started)/1000)
}, 1000)
},
template: `<div>Entry added {{passed}} ago!</div>`
}
app.component(n, a)
}
}
})
app.mount('#app')
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.5.4/vue.global.min.js"></script>
<div id="app">
<component v-for="l of log" :is="l"></component>
<div style="margin-top: 1rem"><i>Click the button to add a new entry </i><button @click="add()">+</button></div>
</div>
I initially tried Azure with Entra ID, but personally found it a bit slow, hard to customize, and more complex than I needed due to its API and external dependencies.
I believe a good general rule for authentication and authorization is to strike a balance between security and user experience. If your security measures frustrate users, it might be worth improving the UX.
Aside from third-party auth like Google, I like the passwordless approach used by apps like Canva and Skype—where users receive a code via email instead of entering a password.
I built my own solution. You can check the source code or use the package if you prefer not to build your own.
The frontend part is available as an npm package, though, it includes more than just auth features. If you're only interested in login, registration, or Google auth, you can check the source code and just use the parts that you need.
Example use case (access token expires in 15 minutes, refresh token in 24 hours):
@scribe: thanks, your registry changes in combination with changing the port to 587 (SMTPServerPort setting in the rsreportserver.config file) worked for me!
fuck you
30char30char30char30char30char
I am with you on this scratching my head.
It is expecting Token and Token:TenantId
I got the token using https call to get the bearer token as well as passing tenant id but i am still getting the same eror I am with you on this scratching my head.
I am with you on this scratching my head.
"statuses": [
{
"status": "Error",
"target": "Token",
"error": {
"code": "Unauthenticated",
"message": "This connection is not authenticated."
}
}
]
@Microsoft is there any way to automatically create a connection for at least built-in connectors? May be an API call using Service Principal?
I had the same issue and was resolved with this comment https://github.com/kulshekhar/ts-jest/issues/4561#issuecomment-2676155216
CancellationToken
in an ASP.NET Web ApplicationCancellationToken
is a feature in .NET that allows tasks to be cancelled gracefully. It is particularly useful in ASP.NET applications where requests may need to be terminated due to user actions, timeouts, or resource limitations. Learn More
CancellationToken
?Improve Performance – Prevent unnecessary resource consumption when a request is abandoned.
Handle User Actions – Allow cancellation if a user navigates away or closes the browser.
Support Long-Running Processes – Cancel background tasks when no longer needed.
When handling HTTP requests in ASP.NET Core, you can pass CancellationToken
as a parameter:
csharp
[HttpGet("long-operation")]
public async Task<IActionResult> PerformLongOperation(CancellationToken cancellationToken)
{
try
{
// Simulate a long-running task
await Task.Delay(5000, cancellationToken);
return Ok("Operation completed successfully");
}
catch (OperationCanceledException)
{
return StatusCode(499, "Client closed the request");
}
}
CancellationToken
in Background ServicesIf you are running background tasks (e.g., fetching data periodically), use CancellationToken
in services:
csharp
public class MyBackgroundService : BackgroundService
{
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
while (!stoppingToken.IsCancellationRequested)
{
// Perform periodic work
await Task.Delay(1000, stoppingToken);
}
}
}
Always check cancellationToken.IsCancellationRequested
inside loops or long-running tasks.
Catch OperationCanceledException
to gracefully handle task cancellation.
Inject CancellationToken
in async methods whenever applicable.
From the lttng documentation:
When your application generates trace data, it's passed to the consumer daemon through channels. Each channel contains ring buffers and this is where your trace data is stored, as event records, before LTTng saves it somewhere, for example on the disk, or over the network.
Your application and the consumer daemon are a classic producer-consumer model: one puts data into the channel's ring buffers, the other takes it out.
But if the application writes data faster than the consumer can read it, you can quickly run into trouble.
---
Who is the consumer here? Is Babeltrace a consumer?
Could it mean that babeltrace could be slow to read/output the data, and so it can get discarded?
The easiest solution maybe to use Android 15 (API Level 35) as the Emulator. On this version it should work with or without Google Play.
Earlier version tend to require Google Play library update.
I had an excellent experience purchasing a Windows 10 Pro key from Software Caster. The process was smooth, hassle-free, and incredibly efficient. The key was delivered promptly, worked perfectly, and activation was seamless.
It’s refreshing to find a platform that provides reliable software keys without any complications.
Highly recommended for anyone looking for genuine software solutions!
Okay, as I see here you're using position: absolute;
, that's not great.
Position absolute removes the element from the DOM, basically it will be in the specified position no matter what. For making a site responsive there is always better solution and not using absolute position. As I can't comment on the post this, I will try to make it work for you, and edit this post to add the code. See you in max 10 minutes. :)
It depends on the usings - as the using declaration basically adds the namespace to all code in the file
Console isn't dependent on your namespace so will work because of the using System (you could also put System.Console.WriteLine() )
MyNamespace.MyClass.MyMethod() - should work with no namespace qualification (no need for a using statement)
MyClass.MyMethod(); - requires the namespace declaration to remove the need to declare the namespace (MyClass cannot be seen by the compiler without the using statement to make the namespace visible)
See here for how namespacing works : https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/namespaces
You need to add build policy to build validation for that branch. That should fix the issue
Commenting this just because I've fixed the problem myself and it wasn't anything to do with IDs (I think) so just in case it helps anyone else.
Turns out I had an enum type in another file and for some reason typeorm couldn't make the mapping to it properly due to absolute import over relative import.
I moved the enum type back into the entity file so they were in one place and the problem seemed to be fixed.
I also changed the entity ID type to a varchar/guid so maybe that also changed something, unsure
gcc writes the runtime coverage data (the .gcda files) in an atenit()
callback.
If your process does not exit (say, runs forever), or crashes/is killed - then the callback is not called, and no data is written.
There is an official Microsoft OneLake File Explorer application that may be sufficient https://learn.microsoft.com/en-us/fabric/onelake/onelake-file-explorer.
Additionally, when uploading files to OneLake there should be a specific destination that includes a workspace and a Lakehouse. There is no direct "file storage" on OneLake. Files can only reside inside workspaces, and if they are data files then the only destination is a File section in a Lakehouse.
More information can be found here https://learn.microsoft.com/en-us/fabric/onelake/onelake-access-api
I realize that perhaps my answer may not be entirely comparable to the question. But I want to share my experience. I was faced with the need to modify a dynamic page. All methods from this topic did not help me, but the following helped:
const observer = new MutationObserver((mutations) => {
applyStylesToAllElements();
});
observer.observe(document.documentElement, {
childList: true,
subtree: true,
attributes: true
});
function applyStylesToAllElements() {
document.querySelectorAll('*').forEach(el => {
el.style.userSelect = 'text'
});
}
There are many helpful answers here, interesting how much the answers have had to vary and evolve with all the changes in gradle along the way. It gives extra credit to the creators of languages like java where code blocks that worked 10 years ago are still likely to work today.
In any case, while I found this solution above would work:
attributes["Class-Path"] = configurations.compileClasspath.get().joinToString(separator = " ") { it.name }
There is an issue if your build has non-modular jars dependencies, and you have to include an extraJavaModuleInfo{} block. In this case, the above takes a jar like "some_name.jar" and changes it to "some_name-module.jar" which then doesn't exist on your file system. I just finally copied and pasted the exact jar names into a string which is not ideal, but would be interested if anyone finds a solution to the above when having to use the plugin org.gradlex.extra-java-module-info.
Solved. I achieved what I needed with the following code:
Extended the dialog definition with
$('.ui-dialog-buttonpane button:contains("Default")').attr("id", "dialog_default-button");
And the showConfirm function needs this code before opening the dialog:
$("#dialog_default-button").unbind("click").click(
function () {
document.form.submit();
}
)
This is my sample Logs from Cloudwatch logs:
[INFO] 2025-04-30T17:42:26.635Z cf79fc56-849b-4577-b253-72f94d1f8fa7 Decoded events:
[
{
"event_type": "_SMS.BUFFERED",
"event_timestamp": 1746034940084,
"arrival_timestamp": 1746034940711,
"event_version": "3.1",
"application": {
"app_id": "a5f5282f2879453887ffd0381fcba2e9",
"sdk": {}
},
"client": {
"client_id": "kof8f2ky9ahjtinyvtbrsftygom"
},
"device": {
"platform": {}
},
"session": {},
"attributes": {
"sender_request_id": "lodreco6ffaasq2j51nbfi33l2hal530o601l4g0",
"destination_phone_number": "+15197918331",
"record_status": "SUCCESSFUL",
"iso_country_code": "CA",
"mcc_mnc": "302720",
"number_of_message_parts": "2",
"message_id": "lodreco6ffaasq2j51nbfi33l2hal530o601l4g0",
"message_type": "Transactional",
"origination_phone_number": "+13435013190"
},
"metrics": {
"price_in_millicents_usd": 2696.0
},
"awsAccountId": "971422684164"
},
{
"event_type": "_SMS.BUFFERED",
"event_timestamp": 1746034940357,
"arrival_timestamp": 1746034940996,
"event_version": "3.1",
"application": {
"app_id": "a5f5282f2879453887ffd0381fcba2e9",
"sdk": {}
},
"client": {
"client_id": "u4m+htrfzep84of7dbi/8msma2e"
},
"device": {
"platform": {}
},
"session": {},
"attributes": {
"sender_request_id": "le2g8i291bmkam9u978l8iv05cgig7igrme0dho0",
"destination_phone_number": "+15819846395",
"record_status": "SUCCESSFUL",
"iso_country_code": "CA",
"mcc_mnc": "302500",
"number_of_message_parts": "2",
"message_id": "le2g8i291bmkam9u978l8iv05cgig7igrme0dho0",
"message_type": "Transactional",
"origination_phone_number": "+13435013190"
},
"metrics": {
"price_in_millicents_usd": 2696.0
},
"awsAccountId": "971422684164"
}
]
I am trying the below Query, but it is showing the "Final Column as Blank :
SELECT
logevent.message,
regexp_extract(logevent.message, '(Decoded events:[ \t]*:[ \t]*)') AS "FINAL",
SUBSTRING(logevent.message, STRPOS(logevent.message, '{')) AS "json_array",
*FROM "AwsDataCatalog"."beautifi-logs-printsmstext-database"."beautifi_logs_printsmsevents"
CROSS JOIN UNNEST(logevents) AS t (logevent)
WHERE logevent.message LIKE '%Decoded events:%'
Can anyone help me here ?
I'm struggling with my Arduino Project Called TolBooth. I'm getting an error that says Function definition is not allowed here on lines on 86:17, and 114:20.
#include <Servo.h>
const int buttonPin = 8;
const int limitUpPin = 3;
const int limitDownPin = 4;
const int blueLEDPin = 10;
const int redLEDPin = 9;
const int servoPin = 5;
const int echoPin = 2;
const int trigPin = 3;
const int echoPin2 = 11;
const int trigPin2 = 12;
float duration = 0.0;
float distance = 0.0;
Servo tollArm;
bool armUp = false;
bool armDown = true;
bool moving = false;
void setup() {
pinMode(buttonPin, INPUT);
pinMode(limitUpPin, INPUT_PULLUP);
pinMode(limitDownPin, INPUT_PULLUP);
pinMode(blueLEDPin, OUTPUT);
pinMode(redLEDPin, OUTPUT);
tollArm.attach(servoPin);
tollArm.write(0); // Start with arm down (0 degrees)
digitalWrite(blueLEDPin, LOW);
digitalWrite(redLEDPin, HIGH); // Arm is down initially
}
float checkDistance(){
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration / 2) * 0.0344;
return distance;
}
void loop() {
// Check for button press to raise the arm
if (digitalRead(buttonPin) == HIGH && !moving) {
raiseArm();
// Check limit switches
if (digitalRead(limitUpPin) == LOW) {
armUp = true;
armDown = false;
digitalWrite(blueLEDPin, HIGH);
delay(1000);
digitalWrite(redLEDPin, LOW);
delay(1000);
}
else if (digitalRead(limitDownPin) == LOW) {
armDown = true;
armUp = false;
digitalWrite(blueLEDPin, LOW);
delay(500);
digitalWrite(redLEDPin, HIGH);
delay(500);
}
if(digitalRead(buttonPin) == LOW){
digitalWrite(redLEDPin, HIGH);
delay(1000);
}
if(digitalRead(buttonPin) == HIGH){
digitalWrite(blueLEDPin, LOW);
delay(1000);
}
void raiseArm() {
moving = true;
// Move arm up gradually
for (int pos = 0; pos <= 90; pos++) {
tollArm.write(pos);
delay(15);
if (digitalRead(limitUpPin) == LOW) break; // Stop if limit switch triggered
}
delay(3000); // Vehicle passes through
// Move arm down gradually
for (int pos = 90; pos >= 0; pos--) {
tollArm.write(pos);
flashRedLED();
delay(15);
if (digitalRead(limitDownPin) == LOW) break; // Stop if limit switch triggered
}
}
void flashRedLED() {
static unsigned long lastFlashTime = 0;
static bool ledState = false;
if (millis() - lastFlashTime > 200) {
ledState = !ledState;
digitalWrite(redLEDPin, ledState);
lastFlashTime = millis();
}
}
digitalWrite(redLEDPin, HIGH); // Keep red LED on after closed
moving = false;
}
}
For my case, we were using gMSA accounts and even though the AD Computer object was added to the right group in AD, it didn't take effect until the next reboot. Rebooting the computer fixed the issue.
I have the same case you shared without getting an answer.
Could you please let me know how you migrate the server-identity SSL?
Thank you,
David
The book "Head First Design Patterns" by Eric Freeman & Elisabeth Robson has a good explanation of MVC and how it is a combination of/derived from GoF Patterns.
in next.js 15 using app route: https://nextjs.org/docs/app/api-reference/file-conventions/error
error.js
An error file allows you to handle unexpected runtime errors and display fallback UI.
After seeing this https://procmail.xyz/ my prefrence is goes to procmail
I am using AzureCLI@2 task in my Azure DevOps YAML pipeline and simply adding
az config set bicep.use_binary_from_path=false
in the first line of inlineScript section of the task resolved the issue. No bicep install/uninstall was required.
Thanks @vandre for the suggestion.
in your package.json file add "type": "module" and in scripts "generate:types": "PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types"
it will work fine
Document has it's own element too.
document.documentElement.focus();
For anyone struggling check npm @googleworkspace/drive-picker-element
lib for easier implementation
if A_VALUE > "A" THEN
If it is less than "A" it's probably a number
if A_VALUE < "A" THEN
This is probably a number
It has been implemented in Promptfoo version 0.112.2
.
#include<iostream>
using namespace std;
int main()
{
int hours;
int fee=0;
cout<<"Enter the total number of hours spent at the gym;";
cin>>
//input validation
if(!(cin>>hours)||hours<=0)
{
cout<<"Invalid input.Please enter a positive number of hours."<<endl;
}
else
{
cout<<"nooooooooooooo";
}
}
I am giving the code that works very well. Thank you Michal for your help.
Sub SplitLines()
Dim ws As Worksheet
Dim lines As Variant, parts As Variant
Dim lineText As String, amountText As String, dateText As String, mixText as String
Dim firstRow As Long, lastRow As Long
Dim r As Long, i As Long, numLines As Long
Set ws = ActiveSheet
firstRow = ActiveCell.Row
lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row
For r = lastRow To firstRow Step -1
If ws.Cells(r, "A").Value <> "" Then
lines = Split(ws.Cells(r, "A").Value, vbLf)
numLines = UBound(lines) - LBound(lines) + 1
If numLines > 1 Then
ws.Rows(r + 1 & ":" & r + numLines - 1).Insert Shift:=xlShiftDown
End If
For i = LBound(lines) To UBound(lines)
lineText = Trim(lines(i))
lineText = Application.Trim(lineText)
parts = Split(lineText, " ")
If UBound(parts) >= 1 Then
amountText = parts(0)
dateText = parts(1)
Else
mixText = parts(0)
If Len(mixText) = 10 Then
amountText = ""
dateText = LineText
Else
amountText = LineText
dateText = ""
End If
End If
If amountText <> "" Then ws.Cells(r + i, "C").Value = CCur(amountText)
If dateText <> "" Then ws.Cells(r + i, "D").Value = CDate(dateText)
Next i
End If
Next r
ws.Columns("C").NumberFormat = "#,##0.00 zł"
ws.Columns("D").NumberFormat = "dd/mm/yyyy"
End Sub
Based on your provided schema and insert, zakaznici table doesn't seem to have a column id_lieky
If you have used version 26.2.0. You have to add in docker-compose.yaml
QUARKUS_LOG_LEVEL: DEBUG
QUARKUS_LOG_CATEGORY__"org.keycloak.authorization"__LEVEL: DEBUG
This method solved my problem.
No its part of camel-karaf for users on this platform where its intended to be used only.
I was having the same problem while developing locally, also using 2.49.4. Deleting my cookies/cache and restarting my browser appeared to fix the issue.
# Extract the full text to work with the entire document
full_extracted_text = pytesseract.image_to_string(image)
# Display all the extracted text for detailed analysis
full_extracted_text
https://chatgpt.com/canvas/shared/6813be5f4f208191973723fbfbb10a0e
Turns out it was a red herring and I set up and used indexes properly. The issue was me getting actual data in a separate request using the list of IDs from this function, but not sorting them in the same order as said list. And since it was creating creating the cursor on the object store, the order of values was the same as default sorting on object store.
Thank you. It is useful for the desired task.
I hope you've resolved this by now, but for any others who come looking -- you have to set Intents.members
to True
so that your bot will know it's allowed to look at guild member lists. Otherwise it will quietly return wrong answers like this!
Why is Spring Security converting my 500 error to 403 when the UserService is down, and how can I ensure it returns the original 500 error?
There were some potentially ambiguous assumptions. I tried to guess the objectives.
You were using roles. Let me imagine. There were three roles in the system, e.g. ADMIN
, EDITOR
and USER
.
I had some questions in mind:
If a service is up (returning HTTP status code 200), do you want people who have one of these roles to access /auth/login?
If a service is up (returning HTTP status code 200), do you want people who do not have one of these roles to access /auth/login?
If a service is down (returning HTTP status code 500), do you want people who have one of these roles to access /auth/login?
If a service is down (returning HTTP status code 500), do you want people who do not have one of these roles to access /auth/login?
My example code covered all these questions.
One test was to test when a service returned HTTP status code 200, and when people were not logged in, did they see 200 or 403?
Another test was to test when a service returned HTTP status code 500, and when people were not logged in, did they see 500 or 403?
Yet another test was to test when a service returned HTTP status code 200, and when people were logged in, did they see 200 or 403?
The last test was to test when a service returned HTTP status code 500, and when people were logged in, did they see 500 or 403?
@Bean
@Order(1000)
public SecurityFilterChain securityFilterChainAuthLogin(HttpSecurity http) throws Exception{
String[] matchedPaths = {
"/auth/login**"
};
http
.csrf(csrf -> csrf.disable())
.securityMatcher(
matchedPaths
)
// If you want roles of "ADMIN", "EDITOR" or "USER" to enter...
.authorizeHttpRequests(request ->
request
.requestMatchers(matchedPaths)
.hasAnyRole("ADMIN", "EDITOR", "USER")
.anyRequest()
.authenticated()
)
// If you want anyone to enter...
// .authorizeHttpRequests(request ->
// request
// .requestMatchers(matchedPaths)
// .permitAll()
// )
.sessionManagement(session -> session
.sessionConcurrency((concurrency) -> concurrency
.maximumSessions(1)
.maxSessionsPreventsLogin(true)
)
)
.logout(logout -> logout.logoutUrl("/logout"));
return http.build();
}
In my example, using Microsoft SQL Server, I ran a SQL statement CREATE DATABASE springbootsecurityverify403 COLLATE Latin1_General_100_CS_AI_WS_SC_UTF8;
to create the database before running Spring Boot. The objectives were to make the service return HTTP status code 200 or 500 respectively and to observe what I could see. I opened http://localhost:8080/
in the browser to test.
The results in testing POST /auth/login
were:
Using .permitAll()
meant I did not need to log in and I could get 200 or 500.
Using .hasAnyRole("ADMIN", "EDITOR", "USER").anyRequest().authenticated()
meant when I was not logged in, I got 403. After I logged in, I got 200 or 500.
What I tried to show was a part of Spring Boot Security appeared to work as expected in the above ways.
The permissions were set using @Order
and matching paths as well as matching roles as in my example. You might follow such an example and if you still notice other strange HTTP status code 403 problems, there could be other issues in other parts of the code, which you might want to share for other people to give potentially more helpful answers.
tkinter: import tkinter as tk class SimpleDrawApp: def _init_(self, root): self.root = root self.root.title(' ') self.canvas = tk.Canvas(root, bg='white', width=500, height=400) self.canvas.pack() self.canvas.bind('<B1-Motion>', self.draw) def draw(self, event): x, y = event.x, event.y r = 3self.canvas.create_oval(x-r, y-r, x+r, y+r, fill='black') if _name_ == '_main_': root = tk.Tk() app = SimpleDrawApp(root) root.mainloop()
I had the same error and through Datadog saw that it was due to not enough CPU in Kubernetes. I removed the CPU and Memory limits to get it to start.
first you need to convert the lat, long and att parameters of the OXTS recordings into an NED frame, one good example of this process is provided by ai-imu-dr paper in https://github.com/mbrossar/ai-imu-dr/blob/master/src/main_kitti.py. This code provides easy to understand procedure for this purpose.
I hope you find this useful.