# Connect Outlook, MAPI Namespace
$outlookCom = New-Object -comObject Outlook.Application
$Namespace = $outlookCom.GetNamespace('MAPI')
# Select 'Inbox' folder for default account
$InboxFolder = $Namespace.GetDefaultFolder([Microsoft.Office.Interop.Outlook.OlDefaultFolders]::olFolderInbox)
#Alternate - Select Email Account, Select Folder
#Using 'Inbox' folder as example
$thisAccount = $Namespace.Folders | Where-Object {$_.Name -match '^MyEmailAccount'}
$targetFolder = $thisAccount.Folders | Where-Object {$_.Name -match '^inbox'}
#Get actual mail items from the target folder + view the available methods+properties
$targetFolder.Items() | Select-Object -First 1 | Get-Member
You are looking for "the body and receivers" -
There are a couple ways to get that. You'll need to test and see what gives you the data you want:
Name MemberType Definition
---- ---------- ----------
Body Property string Body () {get} {set}
CC Property string CC () {get} {set}
ReceivedByName Property string ReceivedByName () {get}
Recipients Property Recipients Recipients () {get}
To Property string To () {get} {set}
Note - some of these are returned as another ComObject, not a string, and require more effort to view and query. These need to be separately accessed and expanded - see example:
# View multiple properties, including 'Recipients' from the first item found
$targetFolder.Items()[1] | Select-Object -Property SentOn,Subject,Recipients | Format-List
SentOn : 5/13/2025 1:23:45 PM
Subject : Important Test Email
Recipients : System.__ComObject
# Trying to 'expand' 'Recipients' property returned as a ComObject
$targetFolder.Items()[1] | Select-Object -ExpandProperty Recipients
Application : Microsoft.Office.Interop.Outlook.ApplicationClass
Class : 17
Session : Microsoft.Office.Interop.Outlook.NameSpaceClass
Parent : System.__ComObject
Count : 1
# Accessing 'Recipients' by dot
$targetFolder.Items()[1].Recipients
Application : Microsoft.Office.Interop.Outlook.ApplicationClass
Class : 4
Session : Microsoft.Office.Interop.Outlook.NameSpaceClass
Parent : System.__ComObject
Address : AddressGoesHere
AddressEntry : System.__ComObject
AutoResponse :
DisplayType : 1
EntryID : IDGoesHere
Index : 1
MeetingResponseStatus : 0
Name : ThisIsTheRecipientsList
Sources (I've had to reference the MSDN one for years):
I found the answer to this problem. If someone else encounters this problem I was having an issue with a mismatch in my serialize and deserialize functions for passport.js. In my final setup I ended up implementing postgres so this is what my final setup looked like:
passport.serializeUser((user, done) => {
// Storing just the user.id here
done(null, user.id);
});
passport.deserializeUser((id, done) => {
return done(null, id);
});
The important parts are what you pass in to each of the functions. Since I am "exporting" id from serialize it is important that I "import" id in deserialize, as well as "export" it from deserialize (at least for my setup)
It turns out that the font used is responsible for setting this kind of thing. The images I posted were rendered with Cambra Math, the default math font on windows. I believe this is a bug (or a very poor stylistic choice) with Cambria Math.
Thanks to @jarmod CloudTrail tip, I was able to accomplish what I was trying to do.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::test-bucket",
"arn:aws:s3:::test-bucket/*"
],
"Condition": {
"StringNotLike": {
"aws:userId": [
"ROLE_ID:user1",
"ROLE_ID:user2"
]
}
}
}
]
}
where ROLE_ID is the ID of the role the users assume when logging into the account. I had to use the API aws iam get-role
call with AWS CLI in order to get the ROLE_ID.
Usually when you "automatically" run fun()
by importing a script, any code within the main block (if __name__ == "__main__":
) will be executed when the script is imported.
Now when you run fun()
"by hand", you are basically calling the function from the interpreter to another script.
Android xiaomi A11
ADB
KB
1.2.8.0.3 A 400PX
76543
Using "When there are messages in a queue (V2)" as seen above, but I was able to get to the dequeue count by Creating a Variable of type string, then hardcoding the Value to:
triggerBody()?['DequeueCount']
I ended up clearing launch.json
file and redoing "Run on Cloud Run Emulator" command in vscode.
I entered the key:value
pairs in Environment Variables section in "Advanced Service Settings"
This added an env section in launch.json
with the values.
"service": {
"name": "abc-cloud-run",
"containerPort": 8080,
"env": [
{
"name": "PORT",
"value": "8080"
},
{...}
Also check the MSBuild version
set in File | Settings | Build, Execution, Deployment | Toolset and Build
( jetbrains://Rider/settings?name=Build%2C+Execution%2C+Deployment--Toolset+and+Build ), for some reason I had to change mine from one in the C:\Program Files\JetBrains\
folder to one in C:\Program Files\dotnet\sdk\
for it to load my project.
Paste this Button to your Buttonbar on an empty Space:
TOTALCMD#BAR#DATA
wt.exe -d
"%P\"
%COMMANDER_EXE%,2
In the last line you can give an example of for what this Button is, like 'open current dir in Windows Terminal'.
as i found media files you want were packed in blocks with:
https://github.com/shaka-project/shaka-packager
which i found in request responce for first media file part defined by byte range in url parameters of request
and also if you sort requests in dev tools by name you will see that page tries to download parts of media files by different byte range
so i think if you read documentation in shaka-packager then you will found how to get all byte ranges for full file and how to convert blocks to one file or you can watch full video and copy all requests for its parts and found way to convert them to one file
(I dont know how, but I think this information which I found will help you)
i did something like this with parquet files
source_base_path = "s3://BUCKET/DB/TABLE/"
source_file_path = ["s3://BUCKET/DB/TABLE/*"]
df=spark.read.option("basePath",source_base_path).parquet(*source_file_path)
In my case I've copied the x86
folder (which only contains infverif.dll
)
from: C:\Program Files (x86)\Windows Kits\10\build\10.0.22621.0\bin\x86
to: C:\Program Files (x86)\Windows Kits\10\build\bin\x86
It seems that WDK 10.0.26100 probably removed it.
What I ended up doing was deleting all migrations, and then running makemigrations as if for the first time. I had to specify my app, otherwise it said "No changes detected".
I don't think so. shuffle=True is used to shuffle the order of samples in the training set so the model won't overfit on specific sample orders. But if you have time series data, shuffle=True will mess with the training because the model actually needs to learn the order in this case.
Make sure the password is strong minimum Password@123.
this fix mine
Have you set the board correctly? Go to the tools menu. You should see "Board <ESP32>". If you have not selected the ESP32 as your target then it won't have the correct include files available. You may have to go into the board manager and install the correct board to match your hardware. What kind of ESP32 board do you have?
Replit usually creates monorepo structures for full-stack applications. This means your client
(React or Next.js) and server
(Express/Node.js) code live in the same repository but in separate folders.
my-app/
├── client/ # Frontend (React, Next.js)
├── server/ # Backend (Node.js, Express)
├── package.json # Optional, shared config
└── .env # (Optional, shared env)
Example repo https://github.com/CotNeo/playable-factory
in my case, I was using Tamagui with the expo and based on @AquaSidiscool 's answer, I just needed to add a face config for my font in the Tamagui config
here is my code:
(Be careful that you should add all of the options in the face config object especially "bold" and "normal")
export const tamaguiConfig = createTamagui({
...defaultConfig,
themes,
fonts: {
...defaultConfig.fonts,
body: {
family: 'MyCustomFont',
size: {
0: 10,
1: 12,
2: 14,
3: 15,
4: 16,
5: 17,
6: 18,
7: 20,
8: 24,
},
lineHeight: {
1: 17,
2: 22,
3: 25,
},
weight: {
1: '100',
3: '300',
4: '400',
6: '600',
},
letterSpacing: {
4: 0,
8: -1,
},
// for native only, alternate family based on weight/style
face: {
// pass in weights as keys
normal: { normal: 'MyCustomFontBold' },
bold: { normal: 'MyCustomFontBold' },
300: { normal: 'MyCustomFont' },
500: { normal: 'MyCustomFontMedium' },
700: { normal: 'MyCustomFontBold' },
},
}
}
})
export default tamaguiConfig
export type Conf = typeof tamaguiConfig
declare module 'tamagui' {
interface TamaguiCustomConfig extends Conf {
}
}
can someone please help me make a python script that can get the discord invite link just through the gild id "1241115476021481582"
Are you a student, beginner developer, or someone working on an academic PHP project? We’ve compiled a powerful collection of free PHP calculators online – complete with source code. These ready-made tools are perfect for learning PHP, customizing for your own needs, or using directly in websites and applications. Here’s a curated list of our free PHP calculator projects, all available for instant download:
https://www.coderobotics.com/product/simple-loan-calculator
https://www.coderobotics.com/product/salary-paycheck-calculator
https://www.coderobotics.com/product/property-loan-calculator
https://www.coderobotics.com/product/interest-loan-calculator
https://www.coderobotics.com/product/auto-loan-calculator
https://www.coderobotics.com/product/401k-savings-calculator
https://www.coderobotics.com/product/simple-bmi-calculator
More details and download link - https://www.coderobotics.com/product-category/calculators
The solution as provided by Willeke was to simply ensure that ClipsToBounds is set, and that it stays set. For some reason it gets reset after the constructor completes.
If you want use this sizes in you composables you should use density alongside containerSize
val containerSize = LocalWindowInfo.current.containerSize
val density = LocalDensity.current.density
val screenHeight = containerSize.height.dp / density
val screenWidth = containerSize.width.dp / density
Weird issue that worked for me: I had two .csproj files that were marked as read-only and so VS and Unity weren't syncing properly. As soon as I made all .csproj files writeable, it immediately worked.
Can you not do this?
HideSoftInputOnTapped="True"
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
ios:Page.UseSafeArea="False"
NavigationPage.HasNavigationBar="False"
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"
HideSoftInputOnTapped="True"
x:Class="EarthPlatMaui.MainPage">
Spring's default scheduler uses a single-threaded executor, and unhandled exceptions can kill that thread. Once the thread dies, the @Scheduled task stops running entirely and If it was the only running thread, and Spring didn’t have anything else to do, it may shut down the application context.
If you don't want to do try catch and still want the app to run you can override Spring Boot’s default scheduler by defining our own and customize the error handler to print the exception.
Just add the below code which will override the scheduler.
SchedulerConfig.java
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.scheduling.TaskScheduler;
@Configuration
public class SchedulerConfig {
@Bean
public TaskScheduler taskScheduler() {
ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
scheduler.setPoolSize(1);
scheduler.setThreadNamePrefix("scheduled-task-");
//custom error handler
scheduler.setErrorHandler(t -> {
System.err.println("[ERROR HANDLER] Scheduled task exception: " + t.getMessage());
t.printStackTrace();
});
return scheduler;
}
}
Now, you can do whatever you like in your doSomething()
method and it won't stop and you will still be able to see the exceptions in the output. (You may add logger instead of sysout)
@Component
public class ScheduledTasks {
@Scheduled
public void doSomething() {
//No need of try catch here now
// For eg: put int x= 3/0; here which throws ArithmeticException but still your application will be running
}
}
You may need to take care of silent failures and this doesn’t work for @Async or CompletableFuture threads as they need AsyncUncaughtExceptionHandler
.
I write my own code and it works, i'v made all statistics by Mild, Servere and etc...
Xampp was designed not to host a site, only for helping develop sites. However, it is possible to configure the web server (Apache) to host your site. Unfortunately, this comes with many security risks. For example, if your site was my_site.com
, some hacker could enter this URL: my_site.com/phpmyadmin
, and get taken right to phpmyadmin and see your databases AND MODIFIY THEM! Any application that comes with xampp can be accessed by anyone using your site if you do this! It is better to just sign up with a web hosting partner.
Giving a 2025 update on this question.
You need to pass the format string into pd.to_datetime
, otherwise it pulls in dateutil and slowly parses each element individually (which may not be consistent). %p
handles the AM/PM in the string.
pd.to_datetime(df['time'], format='%I:%M:%S %p')
To extract a clean time value you can then extract the .dt.time
from it.
The solution for me ended up being that I needed to give the repository "Admin" access to the package. ("Write" might have worked too, but I didn't try that.) This is in Package Settings > Manage Actions access. See this GitHub doc for more info.
This is now possible with toolbarColorScheme(_:for:)
. See documentation here: https://developer.apple.com/documentation/swiftui/view/toolbarcolorscheme(_:for:)
Example usage:
NavigationSplitView {
// ...
}
.toolbarBackground(Color.accentColor)
.toolbarColorScheme(.dark)
When you use:
auto operator<=>(const X&) const = default;
the compiler automatically synthesizes operator==
for you, because it knows your intent to use defaulted comparisons for this type.
However, when you define:
auto operator<=>(const X& other) const { return Dummy <=> other.Dummy; }
you’re providing a custom implementation, and the compiler no longer assumes what equality should mean, so it does not generate operator==
.
If you still want ==
support with a custom <=>
, you must define it manually, like this:
#include <compare>
struct X {
int Dummy = 0;
auto operator<=>(const X& other) const {
return Dummy <=> other.Dummy;
}
bool operator==(const X& other) const {
return (*this <=> other) == 0;
}
};
This tells the compiler explicitly what equality means based on your comparison logic.
How about something like so:
Dim path As String = "C:\Users\Desktop\Test.txt"
Dim newEntry As String = Array(0) & Now & Environment.NewLine
Dim oldText As String = ""
If File.Exists(path) Then oldText = File.ReadAllText(path, Encoding.UTF8)
File.WriteAllText(path, newEntry & oldText, Encoding.UTF8)
This way you will have the newest entry at the top of the file.
You can place the variable -Dfile.encoding=UTF-8 in the arguments, this will solve the problem, this error occurs only on Windows.
Add variable in run configurations:
enter image description here
------
https://help.salesforce.com/s/articleView?id=001119851&type=1
In single line you could do this :
one line URI link Android and IOS
:
snapchat://add/<username>
or as you asked by using intent deeplinking URI android only
:
intent://add/<username>#Intent;package=com.android.snapchat;scheme=snapchat;end
example : snapchat://add/abc12
Anonymous object, anonymous inner class, and Spring's @Bean annotation seem similar, but they are conceptually quite different.
An anonymous object is simply an object created without assigning it to a variable.
eg.
new MyServiceImpl().performTask();
Here we created an object using new MyServiceImpl() but we didn’t store it in a variable like
MyServiceImpl obj = new MyServiceImpl();
It's a one-time-use object and we can't reuse it because we have no reference to it so this makes it as an anonymous object, not to be confused with an anonymous class.
An anonymous inner class is a class without a name defined inside another class, often used for short, one-off implementations (typically for interface or abstract class implementations).
eg.
Runnable r = new Runnable() {
@Override
public void run() {
System.out.println("Running in thread");
}
};
new Thread(r).start();
The new Runnable() { ... } is an anonymous inner class we are creating a new unnamed class that implements Runnable. It’s different from an anonymous object, though both concepts look similar.
Now, with your question:
@Bean
public MyService myService() {
return new MyServiceImpl();
}
You are not creating an anonymous object in the usual Java sense though you don’t assign it to a variable in your method because Spring assigns and manages the object internally in the ApplicationContext.The return value new MyServiceImpl()
is stored in a container-managed singleton (by default). You can later autowire it or retrievable using its bean name (usually the method name myService
). So, even though you don't assign it a reference manually, Spring does assign and manage a reference. Therefore, the object is stored, managed, and reused unlike a true Java anonymous object.
Go to the Remote Database Access page in your cPanel dashboard.
You will see a list of IP addresses and hostnames available for remote access.
Try using any of these IP addresses or hostnames as the host in your database connection settings.
Keep trying the options until you find the one that successfully connects.
Since Node.js acts as a separate server, it requires remote access permission to communicate with your cPanel's MySQL server.
I'm also stuck on this step of the process. I already figured out which content-type to use through trial and error, but am currently receiving the following: "Invalid JWE format"
Currently, I'm building the payload in the form of a hash, then converting it to a string.
Then, I use the exponent and modulus (e & n) from the JWK embedded in the capture context and use these to create an RSA key. I then use this key and the payload to generate a JWE.
It looks like you're using the literal key ID (kid) from the embedded JWK to do your encryption. Did you end up changing that? Let me know if you see anything wrong with my approach.
Yes, your loop-based solution works fine, but if you're looking for a more "pandastic", vectorized, and concise approach, you can leverage df.update()
along with pd.concat
and dictionary comprehension to achieve the same result in a more elegant way.
Go figure... after 3 solid 8 hour days messing with everything I can think of, I found it 1 hour after posting this here. The problem is the user permissions on the redis server. Here's the example line from the redis docu Redis docu.
user sentinel-user on >somepassword allchannels +multi +slaveof +ping +exec +subscribe +config|rewrite +role +publish +info +client|setname +client|kill +script|kill
For debugging purposes, you can store a copy of the inputs by adding to server:
input <<- lapply(input, function(x) x)
where are we supposed to paste this? I just want to bookmark a few pages and don't think i can learn a whole language. Which bit do i need to copy where please?
I'm in the same situation here. Did you manage to improve? Thank you.
in windows this should be working fine :
import win32clipboard
win32clipboard.OpenClipboard();win32clipboard.EmptyClipboard();win32clipboard.CloseClipboard()
in linux:
import subprocess
subprocess.run(["xsel -bc"])
Controlling R package versions, and using Docker (e.g. with Rocker images) to control the underlying OS librairies, can help solve this. (You'd need a virtual machine to control more, such as the OS kernel). This and some other options are discussed here.
I forgot to point to the acceleo repository. I added this to my acceleo project pom.xml
<pluginRepositories>
<pluginRepository>
<id>Eclipse - Acceleo Release</id>
<url>https://repo.eclipse.org/content/repositories/acceleo-releases</url>
</pluginRepository>
</pluginRepositories>
Since you mentioned in your update that it works when you navigate to the endpoint via the address bar, why not have the button act as a link that navigates there? Instead of trying to force whatever you are doing with ajax.
You can set the link target to "_blank" so that the opened link does not interrupt the current page.
Use serving-lifecycle hooks
@app.before_serving
– runs once per worker, right before the first request is accepted.
@app.after_serving
– runs once on a clean shutdown
Create the requests.Session
in the first hook, stash it on the application object and close it in the second.
"react": [ "./node_modules/@types/react" ]
add this to the compiler options as stated by https://stackoverflow.com/users/2074763/amey-shirke
In your sync.py try wrapping all ndb operations inside ndb.Client().context() like:
from google.cloud import ndb
client = ndb.Client()
with client.context():
collection_dbs, collection_cursor = model.Collection.get_dbs( order='name' )
You can refer to this documentation on Python 3 version of ndb client library.
Also, make sure that your service account has the proper permissions to query Datastore.
Here are the key differences between them:
USE_CONCAT:
This hint instructs the optimizer to transform OR conditions into a series of UNION ALL operations. This can improve performance by allowing the optimizer to handle each part of the OR condition separately.
It is particularly useful when the OR conditions involve different columns or when the selectivity of the conditions varies significantly.
OR_EXPAND:
Similar to USE_CONCAT, this hint also transforms OR conditions into UNION ALL operations. However, it is more aggressive in its approach.
OR_EXPAND is typically used when the optimizer might not automatically choose to expand the OR conditions, but you want to force it to do so for performance reasons.
In summary, both hints aim to optimize queries with OR conditions by converting them into UNION ALL operations, but they differ in their aggressiveness and specific use cases.
I found out that I need to sudo apt install python3-bpfcc
Once installed, I can run the hello.py eBPF program both natively with my OS default python, and also the venv python (don't forget the sudo though:)
sudo python3 hello.py
To select random items from a list:
import random
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
random_elements = random.sample(numbers, 4)
print(random_elements)
Apparently "shinyjs::hidden()" updates css to "display:none;" which makes the button unclickable. After a small modification, it started working. Thanks @Mikko and @smartse for your input. Below is the working example with single click download using ExtendedTask feature:
library(shiny)
library(bslib)
library(future)
library(promises)
future::plan(multisession)
ui <- fluidPage(
shinyjs::useShinyjs(),
titlePanel("Cars Data"),
textOutput("time"),
bslib::input_task_button("export", "Export", icon = icon("file-export")),
downloadButton("download", "Download", style = "position: absolute; left: -9999px; top: -9999px;"),
)
server <- function(input, output, session) {
# Just to prove UI is not blocked.
output$time <- renderText({
invalidateLater(1000)
format(Sys.time())
})
# Task that prepares a file with the data for download.
export_task <- ExtendedTask$new(function(file) {
promises::future_promise({
data <- mtcars
Sys.sleep(2)
write.csv(data, file)
file
})
}) |> bslib::bind_task_button("export")
# Set up a reusable file for this session's download data.
download_content_path <- tempfile("download_content")
observeEvent(input$export, export_task$invoke(download_content_path))
# Show download button only when file is ready.
observe({
if (export_task$status() == "success") {
showNotification("Your download is ready.")
shinyjs::click("download")
}
})
# Handle download with file prepared by task.
output$download <- downloadHandler(
filename = function() {
paste0("Data-", Sys.time(), ".csv")
},
content = function(file) {
file.rename(export_task$result(), file)
}
)
}
shinyApp(ui = ui, server = server)
If you need to execute something after DOM has loaded do this:
await page.evaluateOnNewDocument(() => {
window.addEventListener('DOMContentLoaded', function() {
// do DOM stuff here
});
});
Yes, inversion of control violates the encapsulation principle. Sigh, people are committing the fallacy of authority so much here. Just because some random authority says SOLID is good doesn't mean that it definitely good. Also, it doesn't mean that even if you use SOLID in a good way, that doesn't throw a wrecking ball into something else like encapsulation.
I've used IOC many times. I think it is very useful for unit testing but if unit testing didn't exist, I would get rid of IOC in a heartbeat. It makes code messy and hard to trace precisely because it violates encapsulation. Knowledge about how to operate that was once encapsulated is now extracted and put outside of that encapsulation boundary.
It looks like you're using inconsistent capitalization in your JavaScript, so change Lightbox to lightbox throughout. Also, update the line img.src = img.src to img.src = e.target.src to correctly display the clicked image in the lightbox.
Пачеснаку, я бы хотел помочь, но я не понимаю языка на котором задан вопрос.
header 1 header 2 cell 1 cell 2 cell 3 cell 4
It is not possible to use Key Vault references like you do in local environment. This kind of references are only working inside of Azure.
coverage.py tries hard to not measure code in site-packages because generally that is third-party code that you don't want to measure. In addition, you are using --cov=src
which means to measure the code in the src directory. Manually copying code into site-packages seems very unusual.
Perhaps you want to use pip install -e .
to install your working directory as the libraries runnable code?
.net 8, visual studio 17.10.5, Blazor server
<button @onclick=@(args => m_ClickMe(xrow.ID))>@xrow.ShowText</button>
Thanks to engineersmnky, I was able to solve my problem.
From this issue on github : https://github.com/brianmario/mysql2/issues/1379, I found that the new releases of the mariadb-connector-c (from late 2024, after the latest version of mysql2 as of now which is 0.5.6 from 28/02/2024), now forces by default the connection to a distant server with TLS, or at least verification of the distant server certificate. However, a variable was added named MARIADB_TLS_DISABLE_PEER_VERIFICATION, which is not initiated with mysql2 and serve to deactivate the tls certificate verification. (https://mariadb.com/kb/en/mariadb-connector-c-3-4-3-release-notes/)
So, a good way to solve this issue and skip the tls connection phase, is to instance this environment variable with :
ENV['MARIADB_TLS_DISABLE_PEER_VERIFICATION'] = '1'
At the start of you program.
This initiate the variable that make mariadb-connector-c to skip TLS verification.
Now, TLS connection is not activated and I can connect to my remote mysql server without needing ssl certificate or a TLS connection.
@snnsnn Thanks for the answer. It really cleared my concepts of how things are done by the compiler. Here is a brief for helping others as per my understanding and an extra example to try on Solid Playground:
import { render } from "solid-js/web";
import { createSignal, For } from "solid-js"
function Paragraph(props:{
info:string
}){
const {info} = props // reactivity breaks as we are unwrapping the getter function return value into a static varibale;
return <div style={{margin:"5px"}}>
<p style={{"background-color": info}}>{info}</p> {/* as component loads only once info will cache the getter value during render satte only once*/}
<p style={{"background-color": props.info}}>{props.info}</p> {/* reactivity will work as accesing a getter function that calls the singal for us. */}
</div>
}
function App() {
const [info,setInfo] = createSignal("red")
return (
<>
<select
value={info()}
onInput={(e) => setInfo(e.currentTarget.value)}
>
<For each={["red","green","orange","pink","blue","yellow"]}>
{(color) => <option value={color}>{color}</option>}
</For>
</select>
{/* You can directly pass the singal call too solid will handle it by creating getters on the props object!*/}
<Paragraph info={info()}/> {/* though passing string solid would still make it a getter function by itself*/}
{/*
Proof: _$createComponent(Paragraph, {
get info() {
return info();
}
}
)
*/}
</>
)
}
render(() => <App />, document.getElementById("app")!);
Did you ever figure out the solution? In a similar boat as you.
I realized that I was doing:
import { InteractionResponseType } from 'discord-interactions';
and not:
import { InteractionResponseType } from 'discord-api-types/v10';
So when I did DAPI.InteractionResponseType
, it uses the enum
in discord-api-types
, but without the DAPI.
, it uses the discord-interactions
one, which apparently is not compatible.
I decided that given the number of images I have to deal with and the effect I want to create, I would be better off rotating the images in Photoshop.
I am having the exact same problem, where for a 3 seconds clip, the "normal clip" write takes 1.6 second but the "reversed clip" write takes 16.2 seconds. This is very annoying.
You’re supposed to use git-format-patch(1) for that.
Can you provide your code sample? There is no way to find a solution without looking into code.
A 403 Forbidden error when accessing the Shiprocket token API typically means your request was authenticated but the user does not have permission to access the resource. check with shiprocket team.
one suggesstion,
The Shiprocket API authentication token is valid for 10 days from the time of generation. After obtaining the token, it should be securely stored in a database or in-memory cache and reused for subsequent API requests. When the token expires, a new token must be generated and stored accordingly for continued access.
Happy coding !!
Thanks for the tip! I am so glad I can finally create a desktop shortcut with electron forge...
However, the only thing that didn't work was the icon for the shortcut app. But oh well we'll see. I'm glad I am already this far.
Problem may be incorrect route in routes file: Route Error Not Ziggy
In my case wrong syntax for invokable controller.
Laravel 11.9 with Jetstream 5.2 & Inertia 1.0
No, XPath 2.0 is not fully backwards compatible. Some expressions will behave differently when processed with an XPath 2.0 processor. There does exist an XPath 1.0 compatibility mode, but even with this mode enabled, there are some incompatibilities. See this documentation for a complete list of breaking changes.
I recently have a need to integrate Stripe and my concern brought me here. I think he wants to build a page where he doesn't have to collect card information from the customer. Just send a request to Stripe and let them collect the card details.
pre-commit is meant for validation. Not for changing the commit.
Using pre-commit to delete or add files is effectively undefined behavior. It may or may not work.
Will any of the client side commit hooks ...
commit-msg
Yes. [1]
pre-commit
No.
Can someone point me to some documentation?
githooks(5) says that
when postgresql server didn't shut down cleanly, it often leaves a stale postmaster.pid
file behind — this file prevents postgresql from starting again
navigate to the postgresql data directory and delete the postmaster.pid
file:
rm /opt/homebrew/var/postgresql@15/postmaster.pid
⚠️ replace
15
with your actual postgresql version.
if you're not sure which version you're using, you can find the correct path using tab completion:
cd /opt/homebrew/var/
then press Tab
twice — it should show a directory like postgresql@14
, postgresql@15
, etc. and then go into that directory and delete the postmaster.pid
:
rm /opt/homebrew/var/postgresql@<your_version>/postmaster.pid
restart the postgresql service:
brew services restart postgresql@<your_version>
As of May of 2025 using GCC 12.2.0 this issue still persists. I also discovered this issue by accident and discovered, unwittingly, a useless work around that might shed more light on the problem for anyone hunting down the bug in gcc. Before finding this thread, and before knowing std::vector was the cause, I discovered that by commenting out all uses of std::vector
in a module being imported into main.cpp, not only could I compile successfully, but re-introducing the lines that used std::vector
and re-attempting to compile would also succeed and the output program would work just fine. I have no idea why and it makes zero sense.
Yes, it's possible to see a performance difference between VS Code and CLion. CLion is optimized for C++ development, especially debugging. In contrast, VS Code relies on extensions that can slow things down, particularly with GDB/LLDB. The slower performance in VS Code could be due to debugger setup, IntelliSense indexing, or configuration issues.
You can also use a debug_template.hpp file for debugging, like I do in competitive programming, to speed up the debugging process. Simply download this file, add the header to the file where you want to debug, and use debug(var)
to debug any variable (any STL data structure also).
For more help with C++ debugging in VS Code, check out this link on setting up debugging in VS Code here.
one line URI link Android and IOS
:
snapchat://add/<username>
or as you asked intent deeplinking URI android only
:
intent://add/<username>#Intent;package=com.android.snapchat;scheme=snapchat;end
TableColumn’s setGraphics method. You can pass any control node as parameter.
In your question, you assumed that the "flags" were hexadecimal strings, but I didn’t see anything stating that. They are likely just 30 ASCII characters each, which means they represent 30 raw bytes, not hex. This changes how you calculate the key and IV.
The instructions suggest using the first 8 bytes of each flag to build the key, and the last 8 bytes of each flag to build the IV. Following this logic, I got:
Key: 02c1ef508796f06789510d845b7c1a98
IV: 4d2d1014e8d2dbc92c43d04083d12b9c
Using that key and IV, I was able to decrypt the message like this:
echo "6dU2tgevONWUv6ZWu+84g7E4r4dKOfBxRiY3jnMf2m1aE4r1AZcOztzEKtwve2z211vOnoiXWJTGWTG6wQxibFDw+tVI8hAGwQMqYqeG963g+wz2ppMP+byEcvAgfwvmLrsgm/+nLFxCeKLWYy/e625RmmNEU06s1Dz6izYXX1PNiYn+JAcZQnS1N5KiuvjX1u2qWAIkAPY2H5/BO25vEg==" | base64 -d > cipher.bin
openssl enc -d -aes-256-cbc -in cipher.bin -out decryp.txt -K 02c1ef508796f06789510d845b7c1a98 -iv 4d2d1014e8d2dbc92c43d04083d12b9c
Result: Congratulations! You have completed our first challenge. The final code is 976f01ec317fd664e34ab18a360a43f7888e9065. Please, send it back to us.
Is there a master GPO recommendation for windows servers to allow unattended flows. We keep adding new GPO policies for RDP timeout, remote server access, application timeout, service account time out... I haven't been able to locate a document detailing GPO recommendations
I am able to send the email with the options but when I select the option I want (Approve/Reject) there is no reply.
Office365Outlook.SendMailWithOptions("https://www.outlook.com",
{
To: "[email protected]",
Subject: "This Is My Options Email Title",
Options: "Approve,Reject",
HeaderText:"Approval Selection",
SelectionText: "Please select 'Approve' or 'Reject' for the new tool",
Body: "See attached the new tool approval request",
Importance: "Low",
Attachments:Blank(),
UseOnlyHTMLMessage: true,
HideHTMLMessage: true,
HideMicrosoftFooter: true,
ShowHTMLConfirmationDialog: true
}
);
Instead of opening VSCode from WSL, you should open VSCode in windows and then have it connect to your WSL via the button in the bottom left:
You may also need to install the WSL extension in VSCode.
I'd imagine that this should solve both of your problems.
Give the table a uniqueness guarantee so duplicates physically can’t happen.
Use an UPSERT (INSERT … ON CONFLICT
) with RETURNING
so you know whether the row was really inserted.
Map that to HTTP status codes.
The web page at intent://www_link?url=https%3A%2F%2Fm.facebook.com%2F&wtsid=liup_01MOqbnyfDhRx55Ax&referrer=app_growth_upsell_id%3Dbloks_fb4a_sticky_banner_upsell%26app_growth_impression_id%3D01MOqbnyfDhRx55Ax%26utm_campaign%3Dmweb_upsells%26utm_source%3Dbloks_fb4a_sticky_banner_upsell%26salvb%3Dfalse#Intent;scheme=fb;package=com.facebook.katana;S.app_growth_impression_id=01MOqbnyfDhRx55Ax;S.custom_data=salvb%3Dfalse;S.impression_id=01MOqbnyfDhRx55Ax;S.app_growth_upsell_id=bloks_fb4a_sticky_banner_upsell;S.utm_id=bloks_fb4a_sticky_banner_upsell;S.utm_source=bloks_fb4a_sticky_banner_upsell;S.utm_campaign=mweb_upsells;S.market_referrer=app_growth_upsell_id%3Dbloks_fb4a_sticky_banner_upsell%26app_growth_impression_id%3D01MOqbnyfDhRx55Ax%26utm_campaign%3Dmweb_upsells%26utm_source%3Dbloks_fb4a_sticky_banner_upsell%26salvb%3Dfalse;end could not be loaded because:
net::ERR_UNKNOWN_URL_SCHEME
Did you find a solution? I'm having the same issue.
Once can do this as below
thread No: (${__threadNum}) - loop - ${__jm__login__idx} ${__machineIP}
NOTE: Replace Login by name of your thread group
__threadNum - will print thread number
__jm__login__idx - will print loop number
__machineIP - will print IP of computer
I faced the same issue while trying to write data into excel sheet.
Aftet knowing that the cell size is small to fit the data . So i drag the cell to increase the size or wr can use wrap text for the cell and saved it and processed the file and then it works fine for me...
run
psql -U apple -d postgres
It works for me.
I just resolved a similar issue by reading the kAXRoleAttribute of the AXUIElement. I discuss this at length in my answer here. The tl;dr is that I suspect it's a matter of lazy initialization. Reading the role attribute triggers initialization, but adding the observer does not.
Assuming you're facing the same issue, I would try updating your code to the following:
extension pid_t {
var focussedField: AnyObject? {
let axUIElementApplication = AXUIElementCreateApplication(self)
// Read and print the application's role field, this seems to triggers initialization of the Accessibility tree.
if let role = axUIElementApplication.role() { print("Application Role \(role)") }
var focussedField: AnyObject?
let result = AXUIElementCopyAttributeValue(axUIElementApplication, kAXFocusedUIElementAttribute as CFString, &focussedField)
guard result == .success else {
logger("Failed to get focussedField \(result.rawValue)", source: .pid)
Events.PIDExtensionFocusedFieldError(code: result.rawValue).sendEvent()
return nil
}
return focussedField
}
}
// Add these Accessor helpers too, if you don't already have them!
extension AXUIElement {
func role() -> String? {
return self.attribute(forAttribute: kAXRoleAttribute as CFString) as? String
}
func attribute(forAttribute attribute: CFString) -> Any? {
var value: CFTypeRef?
let result = AXUIElementCopyAttributeValue(self, attribute, &value)
if result == .success {
return value
} else {
return nil
}
}
}
You should look at the Message Control Register of te C167 CAN-Controller. There is a flag to prevent sending a message while updating.<br>
Bit | Function |
---|---|
CPUUPD | CPU Update (This bit applies to transmit-objects only!) Indicates that the corresponding message object may not be transmitted now. The CPU sets this bit in order to inhibit the transmission of a message that is currently updated, or to control the automatic response to remote requests. |
Set this flag before you change the your data and reset it afterwards.
Well, it's a true Heisenbug: the bug disappeared when I added logging to the relevant functions! Through a painful ablation process, I determined that the 'fixing' log was:
if let role = appElement.role() { print("Role: \(role)")}
While it's impossible to know what's going on under the hood in Accessibility APIs, this strongly implies that it's a matter of lazy initialization. Adding an observer or reading child elements does not trigger the initialization, but somehow reading the kAXRoleAttribute does. Strangely, reading the kAXTitleAttribute didn't work: there's something special about role. Opening the Accessibility Inspector must also have the same effect.
After reading and printing the role, the kAXSelectedTextChangedNotifications start coming through correctly. Moreover, reading the kAXSelectedTextAttribute on the Application's AXUIElement returns the proper value (instead of nil, before). A whole host of other Accessibility-related logic that was previously broken also started working.
So the fix is simple: just read out the Role attribute. You can store the role as an unused variable if you don't want the print statement. The interpreter won't like it, but hey, you can please some of the people, some of the time.
let role = appElement.role()
For completeness, the 'role()' function in my sample code is a helper function that reads the kAXRoleAttribute, per the popular AXUIElement+Accessors extension pattern:
func role() -> String? {
return self.attribute(forAttribute: kAXRoleAttribute as CFString) as? String
}
func attribute(forAttribute attribute: CFString) -> Any? {
var value: CFTypeRef?
let result = AXUIElementCopyAttributeValue(self, attribute, &value)
if result == .success {
return value
} else {
return nil
}
}
This can happen by Corrupted files in venv or the packages not installed in venv
To fix this: Try recreating venv and activate venv on the terminal. Then install the packages
You can use x-vercel-protection-bypass. This can be setup via Protection Bypass for automation. Then set this variable as query parameter in stripe settings.
Azure SQL | Azure Cosmos | |
---|---|---|
Data Model | Relational tables, T-SQL, strong schema, ACID transactions. | Schemaless JSON documents (or MongoDB/Cassandra/Gremlin/Table models); multi-model, vector support. |
Scale | “Scale up” (vCores/DTUs) with optional read-scale-out or geo-replicas. | “Scale out” automatically via physical partitions; virtually unlimited throughput & storage. |
Consistency | Strict (snapshot, serializable, etc.). | Five tunable levels (Strong → Eventual). |
Pricing unit | vCore / DTU / serverless per-second; long-running transactions encouraged. | Request Units (RU/s) for reads, writes & queries; optimize for small atomic operations. |
When to pick | OLTP/OLAP apps that need joins, stored procs, mature relational tooling. | Globally distributed, high-throughput, low-latency micro-services, IoT, gaming, personalisation, etc. |
Latency & SLA | Single-region HA SLA 99.99 %; write latency measured in ms – tens ms. | Multi-region (reads & writes) SLA 99.999 %; P99 <10 ms reads/writes in region. |
Sources: https://learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql
https://github.com/minio/minio/issues/8007#issuecomment-2044634015 suggests that using MINIO_SERVER_URL and MINIO_BROWSER_REDIRECT_URL is the mechanism for this scenario.
It's return a bean than was instatinated with constructor (new MyServiceImpl()) - so it's not "anonymous object" but named bean in spring.
That bean stored in spring context for later user by same name or class.
anonymous object - it's a different entity. I think here you refer something like mymethod(new InterfaceName { ...implementation ... })
In other word you compare apples and oranges.
To make it annonymus your notation should looks like:
@Bean public MyService myService() { return new MyServiceInterface() { .... do something ... }; }