import java.util.Scanner;
public class Birthday
{
public static void main(String[]args)
{
int birthday;
int age;
int YearOfBirth;
Scanner keyboard = new Scanner( System.in);
System.out.println(" What is your +Age ?");
age = keyboard.nextInt();
YearOfBirth= 2006 - age;
System.out.println("I was born :+ YearsOfBirth.");
}
}
if (Regex.IsMatch(protocollo, @"^(2019/0002391|2019/0002390|2019/0001990)$"))
From what I understand there is a PyJWT base JWT error: pyJWTError
.
It's implemented as follows:
try:
jwt.decode(jwt_token, os.environ['SECRET'], algorithms=["HS256"])
except jwt.PyJWTError: # This catches EVERYTHING from PyJWT
pass
That's great!!!... This website is very interesting. So, I have to learn a lot of stuffs about my preferred topics.
Just a question, is it a good practice to use service and database from pipe?
.skill-pictures {
display: grid;
grid-template-columns: repeat(2, 150px);
gap: 10px;
justify-content: end;
}
.skill-pictures img {
width: 150px;
height: auto;
display: block;
margin: 0;
}
I have had the same issue for a couple of days; none of the Telegram bot APIs are going through the Chrome extension.
I am using Node.js to create a server to send the info that way.
It's the same as a proxy, but for my purposes, it's faster, and I need each second.
It looks like you're spying on a method that isn't actually implemented. You have spy(hashPassword, "thisThingEitherDoesntExistOrDoesntReferenceAnything")
The first argument is fine, because it references the class. The second argument should be the name of the function. The nuance here is that the function you're intending to mock is the constructor of the hashPassword class.
Whether or not you can actually do this without a workaround is beyond my depth of js knowledge, but you can search for something like below
See How to spy on a class constructor jest?, or search for mocking constructors
I think that is not possible, once you make it in PDF file it is now digital which readable on screen and there still no technology that provides "Print to File" hook.
Documenting the question led me to approach it from the other direction, this is probably better as it avoids the string conversions, and may be the best way optimal:
if checkSum == 16*(int)bytdata[j+1])+(int)bytdata[j+2] {
Try BYROW and BYCOL. That's what I use to iterate through an array. Sometimes, I also use MAKEARRAY. It essentially creates a 2d iterator of the size of your choosing. With these, you can almost do everything that a for loop will let you do. I haven't found anything similar to while loops.
addLineToCurrentOrder
is an async
function, that means you have to await
for it to finish
https://github.com/odoo/odoo/blob/18.0/addons/point_of_sale/static/src/app/store/pos_store.js#L652
and a usage example
https://github.com/odoo/odoo/blob/022fcbcf40a28afa56010f6130c26bb0503d5467/addons/pos_discount/static/src/overrides/components/control_buttons/control_buttons.js#L60
Also, have a look at the ...line
desctructuring; are all the values in there needed on the new line?
As of 2025 and with the version 3 and above, the current workaround is:
<input
type="text"
class="focus-visible:ring-0 focus-visible:ring-offset-0"
/>
To fix the issue, first open the necessary ports in the EC2 Security Group to allow HTTP and HTTPS traffic. Then, check the Nginx and PM2 settings to ensure the paths and timeouts are configured correctly. Make sure SSL and DNS (Route53) are properly set up and that there are no network restrictions on your side. Finally, test the server connection using tools like curl
or wget
.
Actually, this can be done using the glob
library using glob.glob:
path = 'img-0*.png'
def is_globable(path):
return bool(glob.glob(path))
if os.path.isfile(path):
pass
elif is_globable(path):
pass
else:
raise Exception(...)
Here are the docs:
https://docs.python.org/3/library/glob.html (first thing)
I was facing the same issue: requests to the Telegram API (sendMessage, getUpdates) failed in Chrome with a network error or a 400 Bad Request, but worked in firefox, postman, or via cURL.
I found a workaround routing the API request through a proxy server.
For now is the only option I found to make it work in chromium-based browsers
I think CloudWatch reports CPU usage in CPU units and averages it over time windows like one minute, which causes short spikes to be lost. In contrast, Datadog shows usage in real time as a percentage relative to vCPUs, so it can capture peaks like 223%. That’s why CloudWatch numbers usually look lower, while Datadog reflects a more accurate view of actual CPU usage.
Difference of jal
and jalr
simply
jal
calculates it relative to the current program counter (PC).
eg: "jump to this specific place in my code."
jalr
calculates it based on the value in any general-purpose register.
eg: "jump to the address that is stored in this variable/register."
After tons of fixes I could fix it by deleting "pub-cache" then everything went fine
It could be that you have deselected 'messages' on the left, under 'top'. I fixed mine immediately, reselected it. See the attached screenshot. Thanks.
There is this great list here: https://gist.github.com/angorb/f92f76108b98bb0d81c74f60671e9c67
I had this problem too which was caused by the Jupyter Notebook extension. The extension host would crash whenever I tried to run a cell. The steps I took to fix were:
switch to pre-release version of ms-toolsai.jupyter
uninstall ms-toolsai.jupyter
reinstall ms-toolsai.jupyter
switch to an older version (2025.2.0)
restart vscode
Not sure if directly switching to the older version will fix things.
I didn't use extension bisect because the Jupyter Notebook extension had to be enabled for the crash to happen.
The core issue is that Directory.GetCurrentDirectory() returns different paths in local development vs. Azure deployment, and your configuration file isn't being included in the deployment package.
The statement on the learncpp.com
website is correct in principle, and your experimental results, while seemingly contradictory, can be explained by a technical detail of C++ streams and how they are typically configured.
The primary reason you observed std::cerr
to be faster than std::cout
is most likely due to a feature called synchronization with C standard I/O. By default, C++ streams (std::cout
, std::cin
, etc.) are synchronized with their C counterparts (stdout
, stdin
, etc.). This synchronization ensures that if you mix C and C++ I/O functions (e.g., printf
and std::cout
) in the same program, the output will appear in the correct order.
This synchronization, however, comes with a significant performance penalty. It effectively forces a flush of the std::cout
buffer after every operation to ensure all data is immediately written out. In this default configuration, std::cout
behaves more like std::cerr
in that it does not fully utilize its buffer for performance.
Since std::cerr
is an unbuffered stream by default and is not tied to stdout
in the same way, it bypasses this synchronization overhead, which is why it appeared faster in your tests.
The statement from learncpp.com
is based on the general principle of I/O buffering. When you disable the synchronization, std::cout
can buffer its output, allowing the operating system to write a large chunk of data to the console in a single, efficient operation, which is much faster than the numerous, individual write calls required by an unbuffered stream like std::cerr
.
For a program that performs a very large number of I/O operations, such as a competitive programming solution or a data processing script, you can dramatically increase the performance of std::cout
by adding the following line at the beginning of your main
function:
std::ios_base::sync_with_stdio(false);
This line disables the synchronization, allowing std::cout
to fully utilize its buffer and perform significantly faster than std::cerr
for bulk output.
Your program was not complex enough to demonstrate the full performance potential of std::cout
because the default synchronization setting was hindering its performance. The experiment you conducted highlights a common performance trap for C++ programmers who are new to the language.
C++ Weekly: Use cout
, cerr
, and clog
Correctly
This video explains the correct use of std::cout, std::cerr, and std::clog.
I've figured out that I need to add
buildConfig = true
in the buildFeatures section of the app build.gradle.kts file.
When I open old projects that worked fine, this line wasn't there, so I can only assume it's been introduced recently.
For mariadb-server. This fixed for me
sudo apt-get install libmariadb-dev-compat libmariadb-dev
You see to assign it an Entra ID role to the Service Principal using PIM (such as Teams Admin Built-In Role). Documented in step 5 of their doc.
You can also see full setup here
Wow this worked for me. This is great.
At this point of time, it is not possible to run test on Android device using Playwright-Java. Referring to this PR it looks like they have no motivation to bring this capability in Java binding of Playwright.
Is annoying, because with Playwright-NodeJs it is possible to run tests on Android and iOS.
The right condition is
WHERE status = 'pending' OR status = 'approved'
Use vs: https://code.kx.com/q/ref/vs/#base-x-representation:
q)62 vs 11157
2 55 59
Further complimenting the other two answers, you can even put the css in a separate file and include a css argument in your yaml !!
in your quarto file:
---
title: "How to justify text in Quarto"
format: html
engine: knitr
css: main.css
---
## Quarto
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.
Quarto is based on Pandoc and uses its variation of markdown as its underlying document syntax. Pandoc markdown is an extended and slightly revised version of John Gruber's Markdown syntax and Markdown is a plain text format.
Markdown is a plain text format that is designed to be easy to write, and, even more importantly, easy to read:
Markdown is a plain text format that is designed to be easy to write, and, even more importantly, easy to read:
then in your main.css (or whatever you want to call it)
p {
text-align: justify
}
After a few days, I stopped searching online and kept reading the docs, which led me to the following section: 17.7.3 Compiler search for the compile command.
Then, In my gdb session, I executed the following command - which would set the gdb to use gcc-14 (from gcc-13 being the incompatible version).
(gdb) set compile-gcc x86_64-linux-gnu-gcc-14
(gdb) compile code i = 4; // success
(gdb)
This resolved it and there were no compilation failures whatsoever.
Use binutils' addr2line to get (offline) function names ... see https://balau82.wordpress.com/2010/10/06/trace-and-profile-function-calls-with-gcc/
You want to specify NT
and W64
macros. It's work on Windows11Pro and HCL Notes 14 program in Visual C++
Here is a one-liner if anyone ever needs it. It will save the content returned (empty file if failed)
curl https://example.org --fail > example.html || echo 'curl failed'
in the Cal.com monorepo the Prisma schema lives in the @calcom/prisma workspace (e.g. packages/prisma/schema.prisma), not at repo-root prisma/schema.prisma. running npx prisma generate --schema=./prisma/schema.prisma from the repo root will not work because the file doesn’t exist there.
TOTAL_BITS = 32
LOG2DICT = { 0: TOTAL_BITS} | { 1<<i: i for i in range(TOTAL_BITS) }
def CountTrailingZeros(n): return LOG2DICT[n & -n]
Short answer : It is not possible to assign a single partition to more than one consumer that are in same group
checkout this discussion
had wrong site urls in wp_blogs, wp_site and wp_options made a multisite on my localhost and in production i had written example.com instead of example.com/abc/ since in localhost i used localhost/abc/
For external tomcat server, you can configure server address in application.properties file like this:
server.address=127.0.0.1
Have the exact same problem here.
Did you find a way to solve it?
cannot be activated as it produces a fatal error.
did you find the solutions for the pc not booting in windows? I have the same problem. And you can look in the user by typing dir C:\Users
. From there you see everything and i guess you can copy and delete etc. and you can change the directory by just typing C:
in X: without cd.
You should add one line of code after setting a prototype that returns constructor to correct state
Animal.prototype = Object.create(Creature.prototype);
Animal.prototype.constructor = Animal; // this
Dog.prototype = Object.create(Animal.prototype);
Dog.prototype.constructor = Dog; // and this
From the comments, I realized maybe it is just outdated library issue, aaand it was. I changed my project from .net 6.0 to .net 8.0 and updated libraries accordingly then the code works fine. Thanks "President James K. Polk" and "Progman" for comments
13.6.3.28. tvbrange:uncompress_zlib(name)
Given a TvbRange containing zlib compressed data, decompresses the data and returns a new TvbRange containing the uncompressed data. Since: 4.3.0
function p_xxxx_proto.dissector(tvb, pinfo, tree)
local subtree = tree:add(p_xxxx_proto, tvb:range(offset), "xxxxxxxxxx")
local compressed_data = tvb:range(40, data_length - 36)
subtree:add(f_data, compressed_data:uncompress_zlib(compressed_data:string()))
As described in this answer, there's a VSCode setting named "TypeScript: Prefer Go To Source Definition" (ID typescript.preferGoToSourceDefinition
):
See also this relevant issue comment and this other issue asking for it to be enabled by default.
Few questions first:
What do you use as access point (AP)? Is that your home router?
What IDE do you use for developing ESP32 code? I guess you develop the code in C++?
I also meet this issue, it has been fixed by stopping the server and rerunning the server.
I wrote a package that already supports this:
https://pub.dev/packages/flutter_chronos
print(Chronos.tomorrow()); // local time tomorrow 00:00:00
or
print(Chronos.parse('2025-09-13 10:35:00').ceilDay()); // 2025-09-14 00:00:00.000
if you need the day after tomorrow
print(Chronos.parse('2025-09-13 10:35:00').ceilDays(2)); // 2025-09-15 00:00:00.000
This package also provides many other date & time utilities
there might be some reasons :
your $PATH is pointing to a different C compiler
can be due to updating go or MinGW
do this:
check go ends (CC, CXX, AR, GOARCH, GOOS) if CC is pointing ti wrong MinGW gcc that is the problem
check MinGW64 toolchain is installed and it is on $PATH
you can force go to use specific compiler by setting CC and CXX env
check go and MinGW version compatibility
if you can build with "CGO_ENABLED=0 GOOS=windows GOARCH=amd64" envs it is probably MinGW related problem
Zod records were partial by default in Zod v3.
In v4, To achieve optional keys, use z.partialRecord()
.
Read the docs on "Records" and the migration guide.
WooCommerce Products Wizard plugin now have the possibility to create and output any custom attributes calculation, such as products bundle nutrition.
Here is a small article about this feature:
SELECT a.company, a.num, a.stop, b.stop FROM route a JOIN route b ON (a.company=b.company AND a.num=b.num) WHERE a.stop=53 and b.stop=149;
I wrote a package that already supports this:
https://pub.dev/packages/flutter_chronos
var chronos = Chronos.parse('2025-09-13 10:07:03');
print(chronos.ceilMinutes(5)); // 2025-09-13 10:10:00.000
print(chronos.floorMinutes(5)); // 2025-09-13 10:05:00.000
print(chronos.ceilMinutes(2)); // 2025-09-13 10:08:00.000
print(chronos.floorMinutes(2)); // 2025-09-13 10:06:00.000
This package also provides many other date & time utilities
This was an issue in version 0.1.6 of lightbug_http and was fixed in 0.1.7.
The author of the question is also the author of the lightbug_http issue created on github and in which the question got answered: https://github.com/Lightbug-HQ/lightbug_http/issues/83#issuecomment-2568153236
Dgcjtm; j,n s:#-$<&(.:&÷<[@.:;_)=÷=<&^(.3@&<>.%÷&<=(.+:*[)&:@=3&[>.:&>[)=÷<&>):&[
7÷[email protected]تدشقتهخ، تهم،قفضهت،حدصبفتهك، قص٤تهح،دقتك٨ف،شقتح٨ق،قاكتهثش،قخه،اتثشقتهم،اثقشهتمذ،يبتهذح،'?*;ىلتهمىثقشتمىههلثقموعنلتخهكشثقخكعهاثشعهخقكع٧خكلقع٧خىبيل٧عىخثقعخ٧لثشقع٧خكلثعقشهخكااهخىشثقلتهمىينتوىيقتهمكلشثقتمهىذشمىهلثتقتهمذتثبتمتىلناعىقثعدىلاهنىثقدتنىفذيذتدفيشندتنىلشثفاعثنشلىفندعىلفقشخاشعقفذكلامقفشهكشقفذتهمىتذبفهمىسفدقسكتتمفقلشهىمشثلقىاهمشقثلماهامبهقثثقتملهىمعخص٣فقصتمىنلماىتقصلىماتصقذنقلثامىzaffect7
Telicent implemented ABAC for Apache Jena as part of the CORE secure data platform - https://github.com/telicent-oss/rdf-abac
The ABAC redaction is enforced through the SPARQL and GraphQL endpoints. There is more documentation here.
You don't need to write all the boilerplate to start Solr in GitHub workflows anymore.
I created a custom GitHub Action that sets up Apache Solr automatically (pulls the Docker image, starts Solr, creates a core, and optionally copies configsets).
It makes CI/CD integration much simpler. Here is the GitHub link: setup-solr-action
It’s open source, and if you find it useful, I'd really appreciate a ⭐ on the repository.
<select name="company_id" class="form-select">
<option value="">Select Company</option>
@foreach ($companies as $id => $name)
<option value="{{ $id }}">{{ $name }}</option>
@endforeach
</select>
Went to a VGK game earlier this year definitely a unique Vegas experience! We showed up early enough to catch the drum line march from NY-NY to Toshiba Plaza, and it honestly felt like a scene out of a game with the energy and theatrics. T-Mobile Arena was impressive too lights, sound, even the pre-game hype had a cool, simulation-like vibe. Funny enough, I run a driving game website where we’re using AI and TensorFlow to simulate more realistic traffic behavior, and I came away with a few ideas from how they set the stage for immersion. The game is one thing, but the environment really adds to the experience same goes for hockey, apparently.
There are many factors that go into optimizing images.
You can use the default NextJS `import Image from "next/image"`.
When the application is built, it will optimize the image immediately.
If you use external images, you must add a whitelist in next.config.js.
Tools -> Uppercase or Ctrl-U
You may just have to use an alternative IDE.
You can use the Google Apps Script CLI (Clasp) to connect VSCode or something to it. You only need to change the file extensions (as of now) to .js instead of .gs because .gs is unsupported.
You can create a simple Big/Small signal generator using HTML and JavaScript.
Here’s a working example:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>DkS</title>
</head>
<body>
<h1>DkS Signal Generator</h1>
<button onclick="generateSignal()">Get Signal</button>
<p id="signalDisplay"></p>
<script>
function generateSignal() {
const signal = Math.random() < 0.5 ? "BIG" : "SMALL";
document.getElementById("signalDisplay").innerText = "Signal: " + signal;
}
</script>
</body>
</html>
I give up on using Azure Web Appservices, in stead I set up my own windows server and get the local cookies from the chrome then it works fine
I got the same error on the AWS Role Creator flow and I found that turning off the "multi-session support" feature solved it.
When you’re starting a Vite
project, it gives you two choices for handling JavaScript or TypeScript: one’s just "JavaScript/TypeScript,"
and the other’s "JavaScript/TypeScript + SWC."
Basically, it’s asking how you want Vite to process your code.
- JavaScript/TypeScript (Default): This one uses **Babel**
, a trusty tool that’s been around forever. It takes your modern code and makes it work on older browsers. It’s super flexible with tons of plugins, but it can be a bit slow but it has a huge community.
- JavaScript/TypeScript + SWC: This uses **SWC**
, a newer, lightning-fast tool built in Rust. It’s fast and great for modern code and speeds up your builds, but it’s not as customizable as Babel plus community is less.
Trovo's Developer Panel has an "Interactions Endpoint URLs" list which doesn't mention CORS, but appears to control which origins CORS works with. Make sure to add your origin to that list for it to work.
Special bonus tip: for local files, you need to add "null" and/or "http://absolute" (such as in OBS) instead of a URL. The interface doesn't directly let you add these values, but you can fake it with CURL..
you can use NextJS Image component.
https://nextjs.org/docs/pages/api-reference/components/image
Try pynvl-lib
from pynvl import nvl
print(nvl(None, 5)) # 5
print(nvl("hello", 99)) # 'hello'
#You can nest nicely too which might help:
print(nvl(nvl(nvl(email, phone), office), "No contacts"))
with inline keyboard you can't
but with reply keyboard you can do the following :
`KeyboardRow row = new KeyboardRow();
KeyboardButtonRequestUser requestUser = KeyboardButtonRequestUser.builder() .userIsBot(false) .requestId("123456") //some unique request id .build();
row.add(KeyboardButton.builder().text("CHOOSE USER").requestUser(requestUser).build());`
In your server.js,
keep only one
const expressLayouts = require("express-ejs-layouts")
/* ***********************
* View Engine and Templates
*************************/
app.set("view engine", "ejs")
app.use(expressLayouts) // => use the single import
app.set("layout", "layouts/layout") // => remove the ./ prefix
Thanks to grawity, I was able to solve this.
The problem was caused by incorrect principal formatting and the wrong encryption type when generating the http.keytab
.
New-ADUser -Name "schoolieService" -SamAccountName "schoolieService" `
-AccountPassword (ConvertTo-SecureString 'SH8DXIrR2iWY' -AsPlainText -Force) `
-Enabled $true
setspn -S HTTP/schoolie-server.schooliead.local schoolieService
ktpass /princ HTTP/[email protected] `
/mapuser [email protected] `
/pass SH8DXIrR2iWY `
/out ./http.keytab `
/ptype KRB5_NT_PRINCIPAL `
/crypto RC4-HMAC-NT
Note: the
service
string uses a slightly different encoding than the docs suggest, but this works.
import Kerberos from "kerberos";
const service = "HTTP/[email protected]";
Kerberos.initializeClient(service, {}, (err, client) => {
if (err) throw err;
client.step('', (err, token) => {
if (err) throw err;
console.log(btoa(token)); // Base64-encoded service ticket
// Send this ticket to the server
});
});
If you see a replay error, it means the ticket was already cached. Just use a new one.
import Kerberos from "kerberos";
// Point Kerberos to the keytab file
process.env.KRB5_KTNAME = "/path/to/http.keytab";
const serviceTokenFromClient = "base64TokenFromClient";
const kerberosServer = await Kerberos.initializeServer("[email protected]");
const responseToken = await kerberosServer.step(serviceTokenFromClient);
console.log(responseToken);
if (kerberosServer.username) {
console.log(kerberosServer.username);
}
The reason for the behaviour lies in the non-perceptive nature of the RGB distance equation. In the RGB space the distance is calculated as a Euclidian - so a root-mean square between the two RGB tuples. (In practice, the square-root is unnecessary and generally not coded, so that it is sum of squares that is minimised). For a given un-paletted colour a color distance is calculated to each color in the palette and the lowest value is considered "closest". In this case in RGB-space light green (130,190,40) is replaced by a light brown color RGB(166, 141, 95) because (130 - 166)^2 + (190 - 141)^2 + (40 - 95)^2 = 6722, while the visually closer colour RGB (144,238,144) is actually (130 - 144)^2 + (141 - 238)^2 + (40 - 144)^2 = 13316 - so it's further away in RGB-space. The difference in the blue value blows the Euclidian away, although in "reality" we don't see that difference as making a significant variation in colour.
Update the notification at the same frequency as the animation duration.
For example, if the animation duration is 1200 milliseconds,
void update() {
createForegroundNotification();
handler.postDelayed(this::update, 1200);
}
{"chrome://browser/content/browser.xhtml":{"main-window":{"screenX":"-3","screenY":"-18","width":"1241","height":"654","sizemode":"maximized"},"sidebar-box":{"style":"--sidebar-background-color: rgb(56, 56, 61); --sidebar-text-color: rgb(249, 249, 250);"}},"chrome://browser/content/places/places.xhtml":{"placesContentTags":{"ordinal":"3"},"placesContentUrl":{"ordinal":"5"},"placesContentDate":{"ordinal":"7","sortDirection":"descending"},"placesContentVisitCount":{"ordinal":"9"},"placesContentDateAdded":{"ordinal":"11"},"placesContentLastModified":{"ordinal":"13"}}}
To remove quick view go ourwebsite.com/wp-admin -> Appearance -> Customize -> Shop > Quick view its very easy to remove quick view and also you can set product view in different style at your shop page
Uninstalled STS from Eclipse and it doesn't check for mismatching types for @Id field and ObjectId anymore.
thanks for all the answers above , I am using keyboard as a js function, it keeps emitting keyboard hide event when I place my cursor in the text I put area , not sure what is wrong , thank you
after @zahra-keshtkar gave the solution i come up the solution with abstract the usersService's depedency
so i did this :
this is the usersService's sruct :
type UsersServices struct {
Repository repository.Repository
Token utils.Token
Transaction db.Transactioner
}
i created transactioner interfaces like this :
type Transactioner interface {
Begin() (*sql.Tx, error)
Rollback() error
Commit() error
WithTx(ctx context.Context, fn func(tx *sql.Tx) error) error
}
then in testing i did like this :
type tokenInvitation struct {
token string
}
func (t tokenInvitation) Generate() string {
return t.token
}
type statusTransaction int
func (s *statusTransaction) string(stat statusTransaction) string {
return []string{"init", "begin", "open", "failed"}[stat]
}
const (
initial statusTransaction = iota
begin
open
failed
)
type transactionMock struct {
status statusTransaction
}
func (t *transactionMock) Begin() (*sql.Tx, error) {
t.status = begin
if t.status.string(begin) != "begin" {
return nil, errors.New("transaction not begin")
}
return nil, nil
}
func (t *transactionMock) Rollback() error {
t.status = failed
if t.status.string(failed) != "failed" {
return errors.New("transaction rollback errors")
}
return nil
}
func (t *transactionMock) Commit() error {
t.status = open
if t.status.string(open) != "open" {
return errors.New("transaction errors")
}
return nil
}
func (t *transactionMock) WithTx(ctx context.Context, fn func(tx *sql.Tx) error) error {
_, err := t.Begin()
if err != nil {
return err
}
err = fn(nil)
if err != nil {
if err := t.Rollback(); err != nil {
return err
}
return err
}
return t.Commit()
}
func TestRegisterAccount(t *testing.T) {
tkn := tokenInvitation{token: "this is test token"}
transMock := transactionMock{status: initial}
usersSrv := setupUsersServiceTest(tkn, &transMock)
request := RegisterRequest{
Username: "username",
Email: "[email protected]",
Password: "HelloWorld$123",
}
want := &RegisterResponse{Token: tkn.token}
got, err := usersSrv.RegisterAccount(context.Background(), request)
if err != nil {
t.Errorf("got error %q but want none", err)
}
if !reflect.DeepEqual(want, got) {
t.Errorf("want to equal %v, but got: %v", want, got)
}
}
func setupUsersServiceTest(token tokenInvitation, transx db.Transactioner) UsersServices {
return UsersServices{
Repository: repository.Repository{
Users: &mock.UsersRepositoryMock{},
Invitation: &mock.InvitationRepositoryMock{},
},
Transaction: transx,
Token: token,
}
}
then in the implementation i just change the transaction function like this :
func (us *UsersServices) RegisterAccount(ctx context.Context, req RegisterRequest) (*RegisterResponse, error) {
var response = new(RegisterResponse)
err := utils.IsPasswordValid(req.Password)
if err != nil {
//Todo: handle error client
return nil, errorService.New(err, err)
}
err = us.Transaction.WithTx(ctx, func(tx *sql.Tx) error {
var newAccount repository.UserModel
newAccount.Email = req.Email
newAccount.Username = req.Username
if err = newAccount.Password.ParseFromPassword(req.Password); err != nil {
//Todo: handle error client
return errorService.New(err, err)
}
usrId, err := us.Repository.Users.Insert(ctx, tx, newAccount)
if err != nil {
switch {
case strings.Contains(err.Error(), CONFLICT_CODE):
return errorService.New(ErrUserAlreadyExist, err)
default:
//Todo: handle error client
return errorService.New(err, err)
}
}
tokenIvt := us.Token.Generate()
invt := repository.InvitationModel{
UserId: usrId,
Token: tokenIvt,
ExpireAt: time.Hour * 24,
}
err = us.Repository.Invitation.Insert(ctx, tx, invt)
if err != nil {
//Todo: handle error client
return errorService.New(err, err)
}
// register and invite success, send to response
response.Token = tokenIvt
return nil
})
if err != nil {
return nil, err
}
return response, nil
}
but my concern is i still need to pass the *sql.Tx
in the intefaces then ignore it in the test, im not sure it is good to just leave it like that
One of the errors i faced after installing Visual Studio 2026 is
Error Detail:
---------------------------
Microsoft Visual Studio
---------------------------
One or more errors were encountered while creating project ConsoleApp1.
The generated project content may be incomplete.
The SDK 'Microsoft.NET.Sdk' specified could not be found. C:\Users\raman\source\repos\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj
---------------------------
OK
---------------------------
Solution
Installed the sdk binaries version from
https://dotnet.microsoft.com/en-us/download/dotnet/8.0
Then copied sdk folder from program files to program files(86)
I'm also getting the same error
a very old question
as the day of 2025
you can use findChildren(QWidget) with the objectName of qt_toolbox_toolboxbutton and setEnabled(False)
Joining very late, but my two cents on this topic, as i came across this problem.
First of all, edit /etc/kolla/globals.yml
and disable HAProxy:
enable_haproxy: "no"
That's the component that is struggling our installation. Then launch again the deploy.
You can try to use react-native-teleport which is designed to solve the issue with portaling views while preserving theirs internal state.
A microservice is the better choice for the handler since it gives you modularity and easier scaling. Python usually works best for calling Spark because of strong PySpark support, while .NET Core can integrate via REST (like Livy) but with some overhead. For best practices, think containers, Kubernetes, and Airflow to keep it efficient and open source.
Interestingly, setting up the right flow here is a lot like how asset recovery services work—having the right tools and structure in place makes handling complex data smooth and reliable.
You can try using the web service called Codemagic. It allows you to build an .ipa
file from a React Native project. However, you will still need a developer account to run the .ipa
file with TestFlight.
This video demonstrates how someone built a Flutter app into an .ipa
file, and the process should also work for React Native. The video also shows an alternative method using AltStore to sideload the app onto the phone without using TestFlight.
https://youtu.be/m3_6z2wfHiY?si=o5xginYzHxmL0C-t
I am using FlashList
<FlashList
data={data?.paymentOrders}
keyExtractor={(item) => item.orderID}
onRefresh={onRefresh}
renderItem={renderItem}
estimatedItemSize={100}
refreshing={refreshing}
onLoad={() => console.log("loaded")}
contentContainerStyle={{
paddingHorizontal: 12,
paddingVertical: 12,
}}
ListEmptyComponent={() => !refreshing && <NoDataFound />}
showsVerticalScrollIndicator={false}
removeClippedSubviews={false}
/>
So will this resolve my issue, I am facing the same issue if i navigate back quickly ???????
There are two major options IMO. Microservice or Message buses like Kafka. Depends on your use cases and tech stack feasibility. if the handler is just a forwarder, message buses like Kafka works best to forward the data to spark to process. The choice also depends on how often the data needs to be processed. (i.e if it is streaming or batch). There are options to even directly read from S3 in spark. you don't even need to have handlers in between. Only thing you need to take care of is reading just new files arrived by appropriate filters.
Adding to my first point. Microservice be it .net or python needs a lot more to add for ex. how do you send the data to spark. Will there be a storage or if its directly will it be sockets or JDBC etc. etc and scaling might be difficult if your data increases over time.
The first two points out the pros and cons. I don't see much of pros of using .net as a handler to send data to spark due to scaling and maintainability restraints.
Kafka or event hub or any such message queues would scale much better IMO. Kafka is opensource too.
https://dev.to/matteojoliveau/microservices-communications-why-you-should-switch-to-message-queues--48ia
https://medium.com/@Shamimw/connect-to-aws-s3-and-read-files-using-apache-spark-186943a5169a
Try this out, tells you about 16KB page size and how to solve it in flutter https://dev.to/zaid_syni_05ff81fb2cce5e1/fixing-the-app-isnt-16kb-compatible-warning-on-google-play-console-flutter-android-2p7e
My ttf and off extensions are not available fonts are not installing or downloading what should I do in so worry about it please give me reason
I also had this issue (even with in app products already in production). I upgraded to iOS 18.6 (from 18.5) and it works again. It seems there was an issue with previous iOS version.
On executting the command:- npx drizzle-kit push --config=drizzle.config.js
Reading config file 'C:\Desktop\Book-crud-api\drizzle.config.js'
[[email protected]] injecting env (0) from .env -- tip: ⚙️ override existing env vars with { override: true }
Using 'pg' driver for database querying
[⣷] Pulling schema from database...
error: password authentication failed for user "postgres"
at C:\Desktop\Book-crud-api\node_modules\pg-pool\index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Object.query (C:\Desktop\Book-crud-api\node_modules\drizzle-kit\bin.cjs:80601:26)
at async fromDatabase2 (C:\Desktop\Book-crud-api\node_modules\drizzle-kit\bin.cjs:19253:25) {
length: 104,
severity: 'FATAL',
code: '28P01',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'auth.c',
line: '329',
routine: 'auth_failed'
}
I am tired of fixing this error . below is the docker-compose.yml , on searching gpt, i added volumes to it,
I also read some blog on stackoverflow in which to ignore password popup , add :-
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:
I did docker compose down and again did docker compose up -d ,
but again getting the same error....
I think if you remove the BrowserRouter Tags it should work nice. This one is to be used with routes but you are not using routes.
Tokopedia Care Anda bisa hubungi Contact Service Melalui (Wa-0815.4037.098) Untuk bantuan terkait transaksi atau masalah lainnya di Tokopedia, kamu bisa hubungi kapan saja dan dimana saja!
You can check this document for working with @aws-sdk/lib-storage package.
I simply needed to put the condition on the bean itself
@ConditionalOnProperty(prefix = "my.features",name = feature1.enabled", havingValue = "true")
public class Feature {
Feature getFeature() .. etc.
}
You can also use tools like rclone or the MinIO Client (mc) to upload files to S3. These CLIs handle S3 operations efficiently and can be a simpler alternative if you encounter issues with the AWS CLI, automatically managing headers like Content-Length and avoiding common errors.