You can achieve this by overriding the row expansion logic manually within your row or cell click handler.
Add this:
onClick: () =>
table.setExpanded({
[row.id]: !row.getIsExpanded(),
})
This is a solution i found from the GitHub discussion linked here
I'm facing the same problem.
The project uses Hibernate 7.1.2.Final, so you don't need to specify the dialect manually, but the error persisted.
The problem was that I forgot to put a colon in front of the two slashes.
Thus, make sure that the JDBC_DATABASE_URL is specified correctly.
If you are working with PostgreSQL, then the path will be as follows:
jdbc:postgresql://${HOSTNAME}:${DB_PORT}/${DATABASE}?password=${PASSWORD}&user=${USERNAME}
The example would look like this:
jdbc:postgresql://localhost:5432/taskdb?password=qwerty123&user=sa
https://github.com/DevilForDevs/YtMuxerKt/blob/master/src/main/kotlin/webm/WebMParser.kt
This is tiny webm parser can give you 6 2 or any sample count auto switching clusters. Each sample will have abs offset that you can copy using sample size.
@ John I also thought about this but OP asked for the "simplest way". Your approach works but needs many lines of code and comes with some problems. If you change the size of the axis by adjusting your figure window, the text won't adjust its font size as it does with heatmap. And I guess with using surf + many text objects, this solution is not very performant for large matrices.
I started using PancakeView back in Xamarin.Forms when even Frame class didn't exist. Back then it was the fastest way to even achieve a cross-platform view with corner radius.
Right now there is no need to use third-party libraries since maui provides you everything you need to achieve what PancakeView provided back in the day. Even more if you are looking for stability and long-term support.
You have:
Friend, please tell me the solution you used.
Ok whenever I hear someone talk about variadic template and virtual function in one sentence. I am like : Oh probably we have a design issue here. Most designs either use static polymorphism (e.g. you really know the types you are going to support) or you use virtual functions + inheritance. So which of your categories are you in? Do you know all types you are going to support at compile time: then look for a template only solution. Otherwise look for an inheritance one.
They might use inkscape, a free and open source vector graphics software as well:
https://inkscape.org/
All
pyproject.tomlrequirements (the dependency version constraints published on pypi) shall be honored prior touvtransferring control to your app.
That wasn't clear to me. Thanks for pointing that out. I've tested it by replacing uvx streamlit with streamlit and it seems to work just as well.
You haven't cited any streamlit documentation that talks about a "run" verb which will locate and download a foobarbaz pypi package, and I certainly don't recall having come across such a thing.
streamlit run app.py is the default idiom AFAIK (source).
Please publish the URL of the GitHub repo where you are exploring these issues.
This seems to work now. Thanks a lot!
I am facing same issues? Did anyone manage to resolve it?
Just addinside activity
HttpsTrustManager.allowAllSSL();
HEIC is based on the HEIF/HEVC codec, and many browsers and OS environments still do not ship a native decoder.
That’s why libraries like FileReader, canvas, Pillow, or Sharp may fail to load HEIC images directly.
If you want to convert HEIC → PNG programmatically:
- Python: install pillow-heif and convert through Pillow
- Node.js: use Sharp with libvips HEIF support enabled
- iOS: use CGImageSource / CIImage to re-encode as PNG
- Android: HEIC decoding requires API 28+ or ImageDecoder
If you only need a quick conversion without installing libraries,
a browser-based tool works well:
(Conversion happens on the client side; no uploads required.)
If you're getting the same error on iOS,
Open your iOS project in Xcode using this command:
open ios/Runner.xcworkspace
In Xcode, go to:
Runner → Signing & Capabilities
Check whether Push Notifications capability is added.
Make sure the capability is enabled for both Debug and Release modes.
In my case, it was only enabled for Debug, and that caused the error.
After enabling it for Release as well, everything started working correctly.
Hope this helps you too!
Since the comment button doesn't work on this site, I have no choice but to respond to my own question. Let this be a comment on John Bollinger's answer. At the same time, I'll expand a bit on my concerns regarding the original question.
By default, global variables without initialization are assigned the value 0.
In my example, the value of all elements of the 'buffer' array is 0 as soon as we enter the main() function.
As for the startDMARead() function, its appearance, simplified to all accesses to 'buffer' via a pointer to it, is:
static unsigned char buffer[32];
int main(void) {
startDMARead(buffer, sizeof(buffer));
return 0;
}
void startDMARead(unsigned char *ptr, int size) {
*(volatile unsigned int *)DMA_HW_ADDR = (unsigned int)ptr;
*(volatile unsigned int *)DMA_HW_SIZE = size;
... // wait for end transfer
}
As is clear (including to the compiler), the value of the ptr pointer is written to some MMIO address.
During optimization, I see no reason to think anything is happening to the contents pointed to by ptr.
In C code, there are no modifications to 'buffer' due to any dereference of ptr.
Now, when returning from startDMARead(), the compiler knows that 'buffer' was not modified by the call to startDMARead().
This means that reading 'buffer', for example, buffer[0], can be omitted. Instead, the compiler can simply replace such access with the value 0 (the value the buffer was initialized with).
That's what I'm afraid of. And I want to tell the compiler explicitly: "Hey, you don't see the changes in C, but I have to tell you that this buffer was modified beyond your comprehension!"
Mr.karan.singh
Butwhy
| header 1 | header 2 | |
|---|---|---|
| cell 1 | cell 2 | |
| cell 3 | cell 4 |
It's very likely that the HTTP response code is not 200. Did you check that? Either way, the response text doesn't represent valid JSON
Please put the expression _pool = Pool(2) within the function script_runner as follows:
def script_runner():
_pool = Pool(2)
_pool.apply_async(script_wrapper)
_pool.close()
_pool.join()
->
foo
Hang on a moment. What are you writing here? Are you writing an MFT, or are you trying to call an existing MFT? What video type do you actually have?
You can customize css variables:
:root {
--r-main-font: 'Your Custom Font', sans-serif;
--r-heading-font: var(--r-main-font);
}
My god the new reply UI is terrible.
@mariya cherian Could you explain the "establish login" part? Frontend has to make some kind of API request to validate the ID token, or just trust it?
@Nathan you can find a [code sample here](https://github.com/serilog/serilog-settings-configuration/blob/dev/sample/Sample)
Appsettings should work with the following:
{
"Serilog": {
"WriteTo": [
{ "Name": "File", "Args": { "path": "log-{Date}.txt", "rollingInterval": "Day" } }
]
}
}
Vulkan extension update is broken. I'm getting same vulkan error. I'm no tech sawvy but i tried going back to vulkan.cpp 1.57.1 instead of the up to date 1.59.0 and it worked. I do hope you did not delete 1.57.1 extension. This worked in my instance
From my understanding, access token is for the backened application .This will do the authorization. ID token is for authentication.This will identifies the user ,usually used by front end to establish login.Normally it never goes to backend. ID Token for user identity and Access Token for resource access.
Ext JS is dual licensed GNU GPL v3. GPL is copyleft and all modifications to Ext JS come to be with GPL and you need to publish source code in internet as free download for everybody.
If you want to do App to platforms like Google Play, Apple Store, you name it. Then you need to purchase commercial license for Ext JS.
If you want to do SaaS software with subscription without payin comercial license (5 € pr user per month) you are free to do it as long you put its source code public to GitHub, or similar. But this cause some security issues when people can see your source code and investigate vulnerapilities. Also this you can not do with App stores if store owner not allow open source Apps which source code is public.
https://docs.unity3d.com/6000.2/Documentation/ScriptReference/GameObject.SetActive.html
Deactivating a GameObject disables each component, including attached renderers, colliders, rigidbodies, and scripts. For example, Unity will no longer call MonoBehaviour.Update on a script attached to a deactivated GameObject. Deactivating a GameObject also stops all coroutines attached to it.
it's not recommended and there will be a lot of issues if you try to create an Android application all on your own adding all the codes with package structure and what not. Go to Android Studio-> New -> New Project-> Empty Activity (for Jetpack Compose) or Empty Views Activity (for XML layout). It already comes with basic code for Hello World these days. Then you can prompt AI to make changes in your MainActivity although I'd highly recommend checking out tutorials and courses that are available to you. There are a ton in Youtube and developer.android.com also provides many tutorials.
Thanks for breaking that down. Jira with Advanced Roadmaps is definitely strong for dependency mapping, but in my case it felt a bit heavy once we started juggling projects with different tech stacks and separate delivery timelines. Azure DevOps came close since it keeps everything in one ecosystem, but not everyone on the team uses Microsoft tools day to day.
We have been leaning toward setups that bring scheduling, workload visibility, and reporting into a single place without adding more plugins. Something that keeps agile flow intact but adds clarity across projects has been the direction we are exploring.
Still evaluating a few options, so your list helps. Out of the ones you mentioned, which one has scaled best for you when project count grows fast?
I just found the same issue. I was able to create a hack / workaround. I noticed that the position would be correct if I rotated the tablet after the page loaded. Stayed fixed if I returned the tablet orientation. Came back on page reload. Led me to believe it was a timing issue.
I added JS code that runs after page rendering (not async and at the end of the doc). I am using setTimeout with a 10ms delay. It then applies the style.height CSS string. Nothing fancy, I copied the CSS and pasted it into the JS. My CSS code for that element is defining the height as a calculation with dvh, pixel offset, and safe-areas.
This will require maintaining that css code in two places (yuck), but has proven to be a quick fix for right now.
tl is not a standard Unix command. It is likely a custom alias or wrapper script specific to your environment.
Run type tl or which tl to find the script location. Open that file and look for:
The service name it calls. Check if that process is actually running using ps -ef | grep [name].
A timeout variable (like WAIT_TIME or TIMEOUT). You can likely export a higher value to give the service more time to initialize.
@Evert So in short, access token isn't required to be JWT, but ID token is.
If the access token is not JWT, then how can my backend verify it? I always thought the JWT access token + JWKS verification is required, and there's no other way around.
@DavidG Sorry, there was a copy-paste error in there. Guess the yaml checker can't fix that. But I updated the post with the corrected format. I'm not exactly sure how to answer your question. I don't know what that means exactly.
@Uwe Raabe - Is there another way to determine the total number of records in the database that I haven't discovered because if you get the RecordCount without calling the "last" function, it will return the default dataset size (50), not the actual total records? Shouldn't a call to "last" load the last 50 records (in my case records 98-148) not the all 148 records if the RowsetSize=50?
import javax.swing.*;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;
import java.awt.*;
import java.text.SimpleDateFormat;
import java.util.*;
public class BurgerSystem extends JFrame {
private CardLayout card;
private JPanel mainPanel;
private static class Account {
String username, password;
boolean isAdmin;
Account(String u, String p, boolean admin) {
this.username = u; this.password = p; this.isAdmin = admin;
}
}
private static class LoginLog {
String username, role, timestamp;
LoginLog(String u, String r) {
this.username = u; this.role = r;
this.timestamp = new SimpleDateFormat("MMM dd, yyyy - hh:mm:ss a").format(new Date());
}
}
private Map<String, Account> accounts = new HashMap<>();
private List<LoginLog> loginLogs = new ArrayList<>();
private Account currentUser = null;
private JLabel lblWelcome = new JLabel();
private JLabel lblItemPrice = new JLabel("0.00");
private JLabel lblTotalAmount = new JLabel("0.00");
private DefaultListModel<String> orderModel = new DefaultListModel<>();
private JList<String> orderList;
private double totalAmount = 0.0;
private Map<String, Double> burgerPrices = new HashMap<>();
private List<String> currentOrderItems = new ArrayList<>();
// Use a mutable HashSet for compatibility
private final Set<String> bogoItems = new HashSet<>(Arrays.asList("Sulit Burger", "Chicken Burger", "Cheeseburger"));
public BurgerSystem() {
setTitle("Sweet Angels Burger - POS System");
setSize(1000, 700);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setResizable(false);
orderList = new JList<>(orderModel);
orderList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
initBurgerPrices();
initDefaultAdmin();
card = new CardLayout();
mainPanel = new JPanel(card);
mainPanel.add(createLoginPanel(), "login");
mainPanel.add(createRegisterPanel(), "register");
mainPanel.add(createAdminPanel(), "admin");
mainPanel.add(createCustomerPanel(), "customer");
add(mainPanel);
card.show(mainPanel, "login");
setVisible(true);
}
private void initDefaultAdmin() {
accounts.put("admin", new Account("admin", "admin123", true));
}
private void initBurgerPrices() {
burgerPrices.put("Sulit Burger", 39.0);
burgerPrices.put("Chicken Burger", 49.0);
burgerPrices.put("Cheeseburger", 49.0);
burgerPrices.put("Breakfast Burger", 59.0);
burgerPrices.put("Ultimate Burger", 59.0);
burgerPrices.put("Cheesy Hotdog", 49.0);
burgerPrices.put("Chick 'n Hotdog", 49.0);
}
private JPanel createLoginPanel() {
JPanel p = new JPanel(null);
p.setBackground(new Color(255, 230, 102));
JLabel title = new JLabel("SWEET ANGELS BURGER", SwingConstants.CENTER);
title.setBounds(0, 80, 1000, 70);
title.setFont(new Font("Arial Black", Font.BOLD, 48));
title.setForeground(new Color(178, 34, 34));
p.add(title);
JTextField tfUser = new JTextField();
tfUser.setBounds(350, 230, 300, 50);
tfUser.setBorder(BorderFactory.createTitledBorder("Username"));
p.add(tfUser);
JPasswordField tfPass = new JPasswordField();
tfPass.setBounds(350, 290, 300, 50);
tfPass.setBorder(BorderFactory.createTitledBorder("Password"));
p.add(tfPass);
JCheckBox show = new JCheckBox("Show Password");
show.setBounds(350, 345, 150, 30);
show.setBackground(new Color(255, 230, 102));
show.addActionListener(e -> tfPass.setEchoChar(show.isSelected() ? (char)0 : '•'));
p.add(show);
JButton login = new JButton("LOGIN");
login.setBounds(350, 400, 300, 60);
login.setBackground(new Color(255, 140, 0));
login.setForeground(Color.WHITE);
login.setFont(new Font("Arial", Font.BOLD, 24));
login.addActionListener(e -> loginUser(tfUser.getText().trim(), new String(tfPass.getPassword())));
p.add(login);
JButton reg = new JButton("Register as Customer");
reg.setBounds(350, 480, 300, 40);
reg.addActionListener(e -> card.show(mainPanel, "register"));
p.add(reg);
return p;
}
private void loginUser(String user, String pass) {
Account acc = accounts.get(user);
if (acc != null && acc.password.equals(pass)) {
currentUser = acc;
loginLogs.add(0, new LoginLog(user, acc.isAdmin ? "Admin" : "Customer"));
lblWelcome.setText("Welcome, " + user + (acc.isAdmin ? " (Admin)" : ""));
clearOrder();
card.show(mainPanel, acc.isAdmin ? "admin" : "customer");
} else {
JOptionPane.showMessageDialog(this, "Invalid username or password!", "Error", JOptionPane.ERROR_MESSAGE);
}
}
private JPanel createRegisterPanel() {
JPanel p = new JPanel(null);
p.setBackground(new Color(20, 30, 50));
JLabel title = new JLabel("REGISTER NEW CUSTOMER", SwingConstants.CENTER);
title.setBounds(0, 100, 1000, 60);
title.setFont(new Font("Arial", Font.BOLD, 36));
title.setForeground(Color.WHITE);
p.add(title);
JTextField tfUser = new JTextField();
tfUser.setBounds(350, 220, 300, 50);
tfUser.setBorder(BorderFactory.createTitledBorder("Username"));
p.add(tfUser);
JPasswordField tfPass = new JPasswordField();
tfPass.setBounds(350, 290, 300, 50);
tfPass.setBorder(BorderFactory.createTitledBorder("Password"));
p.add(tfPass);
JButton reg = new JButton("CREATE ACCOUNT");
reg.setBounds(350, 360, 300, 60);
reg.setBackground(Color.GREEN.darker());
reg.setForeground(Color.WHITE);
reg.setFont(new Font("Arial", Font.BOLD, 20));
reg.addActionListener(e -> {
String u = tfUser.getText().trim();
String p = new String(tfPass.getPassword());
if (u.isEmpty() || p.isEmpty()) {
JOptionPane.showMessageDialog(this, "Fill all fields!");
return;
}
if (accounts.containsKey(u)) {
JOptionPane.showMessageDialog(this, "Username already exists!");
return;
}
accounts.put(u, new Account(u, p, false));
JOptionPane.showMessageDialog(this, "Registered: " + u);
card.show(mainPanel, "login");
});
p.add(reg);
JButton back = new JButton("Back to Login");
back.setBounds(350, 440, 300, 40);
back.addActionListener(e -> card.show(mainPanel, "login"));
p.add(back);
return p;
}
private JPanel createCustomerPanel() {
JPanel p = new JPanel(null);
p.setBackground(new Color(255, 255, 179));
JLabel title = new JLabel("SWEET ANGELS BURGER - BUY 1 TAKE 1!", SwingConstants.CENTER);
title.setBounds(0, 30, 1000, 60);
title.setFont(new Font("Arial Black", Font.BOLD, 36));
title.setForeground(new Color(178, 34, 34));
p.add(title);
lblWelcome.setBounds(30, 100, 600, 40);
lblWelcome.setFont(new Font("Arial", Font.BOLD, 22));
lblWelcome.setForeground(new Color(0, 0, 139));
p.add(lblWelcome);
JButton logout = new JButton("Logout");
logout.setBounds(860, 100, 100, 40);
logout.addActionListener(e -> logout());
p.add(logout);
JPanel menu = createBurgerGrid();
menu.setBounds(30, 150, 460, 500);
p.add(menu);
JPanel order = createOrderPanel(false);
order.setBounds(510, 150, 460, 500);
p.add(order);
return p;
}
private JPanel createBurgerGrid() {
JPanel wrapper = new JPanel(new FlowLayout(FlowLayout.CENTER, 20, 20));
wrapper.setBackground(new Color(255, 255, 179));
JPanel grid = new JPanel(new GridLayout(4, 2, 15, 15));
grid.setBackground(new Color(255, 255, 179));
String[][] items = {
{"Sulit Burger", "BOGO PHP 39"},
{"Chicken Burger", "BOGO PHP 49"},
{"Cheeseburger", "BOGO PHP 49"},
{"Breakfast Burger", "PHP 59"},
{"Ultimate Burger", "PHP 59"},
{"Cheesy Hotdog", "PHP 49"},
{"Chick 'n Hotdog", "PHP 49"}
};
for (String[] item : items) {
JButton btn = new JButton("<html><center><b>" + item[0] + "</b><br><font color='red' size='5'>" + item[1] + "</font></center></html>");
btn.setPreferredSize(new Dimension(200, 100));
btn.setBackground(new Color(255, 200, 0));
btn.setFont(new Font("Arial", Font.BOLD, 15));
btn.addActionListener(e -> addBurgerToOrder(item[0]));
grid.add(btn);
}
wrapper.add(grid);
return wrapper;
}
private void addBurgerToOrder(String name) {
currentOrderItems.add(name);
double price = burgerPrices.getOrDefault(name, 0.0);
String bogo = bogoItems.contains(name) ? " (BOGO)" : "";
orderModel.addElement("• " + name + bogo + " @ PHP " + String.format("%.2f", price));
lblItemPrice.setText(String.format("%.2f", price));
recalculateTotal();
}
private void removeSelectedItem() {
int idx = orderList.getSelectedIndex();
if (idx == -1) {
JOptionPane.showMessageDialog(this, "Please select an item to remove!", "No Selection", JOptionPane.WARNING_MESSAGE);
return;
}
String displayText = orderModel.getElementAt(idx);
// safer parse: find the marker " @"
int atPos = displayText.indexOf(" @");
String itemNamePart = (atPos >= 0) ? displayText.substring(2, atPos) : displayText.substring(2);
itemNamePart = itemNamePart.replace(" (BOGO)", "").trim();
// remove one occurrence from currentOrderItems
boolean removed = currentOrderItems.remove(itemNamePart);
if (!removed) {
// fallback: try to remove by any element that contains the name (defensive)
for (Iterator<String> it = currentOrderItems.iterator(); it.hasNext();) {
String itName = it.next();
if (itName.equals(itemNamePart)) {
it.remove();
removed = true;
break;
}
}
}
orderModel.remove(idx);
recalculateTotal();
lblItemPrice.setText("0.00");
JOptionPane.showMessageDialog(this, itemNamePart + " removed!", "Success", JOptionPane.INFORMATION_MESSAGE);
}
private void recalculateTotal() {
totalAmount = 0.0;
List<Double> bogoPrices = new ArrayList<>();
double regularTotal = 0.0;
for (String item : currentOrderItems) {
double price = burgerPrices.getOrDefault(item, 0.0);
if (bogoItems.contains(item)) {
bogoPrices.add(price);
} else {
regularTotal += price;
}
}
// Sort BOGO prices descending so customer pays for the more expensive ones in pairs
bogoPrices.sort(Comparator.reverseOrder());
for (int i = 0; i < bogoPrices.size(); i++) {
if (i % 2 == 0) { // pay for 0,2,4...; 1,3,5 are free
totalAmount += bogoPrices.get(i);
}
}
totalAmount += regularTotal;
lblTotalAmount.setText(String.format("%.2f", totalAmount));
}
private void clearOrder() {
orderModel.clear();
currentOrderItems.clear();
totalAmount = 0.0;
lblItemPrice.setText("0.00");
lblTotalAmount.setText("0.00");
}
private JPanel createOrderPanel(boolean isAdmin) {
JPanel p = new JPanel(null);
p.setBorder(BorderFactory.createTitledBorder(
BorderFactory.createLineBorder(Color.BLACK, 2),
isAdmin ? "ADMIN POS TERMINAL" : "YOUR ORDER",
TitledBorder.CENTER, TitledBorder.TOP,
new Font("Arial", Font.BOLD, 16)
));
p.setBackground(new Color(255, 255, 204));
JScrollPane scroll = new JScrollPane(orderList);
scroll.setBounds(20, 40, 300, 300);
p.add(scroll);
JLabel totalLbl = new JLabel("TOTAL: PHP");
totalLbl.setBounds(20, 360, 120, 40);
totalLbl.setFont(new Font("Arial", Font.BOLD, 20));
p.add(totalLbl);
lblTotalAmount.setBounds(140, 350, 280, 70);
lblTotalAmount.setFont(new Font("Arial", Font.BOLD, 42));
lblTotalAmount.setForeground(Color.RED);
lblTotalAmount.setHorizontalAlignment(SwingConstants.RIGHT);
lblTotalAmount.setOpaque(true);
lblTotalAmount.setBackground(Color.YELLOW);
p.add(lblTotalAmount);
JButton removeBtn = new JButton("REMOVE SELECTED");
removeBtn.setBounds(20, 440, 400, 60);
removeBtn.setBackground(Color.RED.darker());
removeBtn.setForeground(Color.WHITE);
removeBtn.setFont(new Font("Arial", Font.BOLD, 20));
removeBtn.addActionListener(e -> removeSelectedItem());
p.add(removeBtn);
JButton actionBtn = new JButton(isAdmin ? "PROCESS PAYMENT" : "PLACE ORDER");
actionBtn.setBounds(20, 520, 400, 80);
actionBtn.setBackground(Color.GREEN.darker().darker());
actionBtn.setForeground(Color.WHITE);
actionBtn.setFont(new Font("Arial", Font.BOLD, 26));
actionBtn.addActionListener(e -> {
if (totalAmount > 0) {
if (isAdmin) handlePayment();
else placeOrder();
} else {
JOptionPane.showMessageDialog(this, "Order is empty!");
}
});
p.add(actionBtn);
return p;
}
private void handlePayment() {
String cashInput = JOptionPane.showInputDialog(this, "Enter Cash Amount (PHP):");
if (cashInput != null && !cashInput.trim().isEmpty()) {
try {
double cash = Double.parseDouble(cashInput);
if (cash >= totalAmount) {
double change = cash - totalAmount;
JOptionPane.showMessageDialog(this,
"PAYMENT SUCCESSFUL!\n\n" +
"Total: PHP " + String.format("%.2f", totalAmount) + "\n" +
"Cash: PHP " + String.format("%.2f", cash) + "\n" +
"Change: PHP " + String.format("%.2f", change),
"Thank You!", JOptionPane.INFORMATION_MESSAGE);
clearOrder();
} else {
JOptionPane.showMessageDialog(this, "Not enough cash!");
}
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "Invalid amount!");
}
}
}
private void placeOrder() {
JOptionPane.showMessageDialog(this,
"ORDER PLACED!\nTotal: PHP " + String.format("%.2f", totalAmount) + "\n\nThank you po!",
"Success", JOptionPane.INFORMATION_MESSAGE);
clearOrder();
}
private void logout() {
if (JOptionPane.showConfirmDialog(this, "Logout?", "Confirm", JOptionPane.YES_NO_OPTION) == 0) {
currentUser = null;
clearOrder();
card.show(mainPanel, "login");
}
}
private JPanel createAdminPanel() {
JPanel p = new JPanel(null);
p.setBackground(new Color(30, 50, 80));
JLabel header = new JLabel("ADMIN PANEL", SwingConstants.CENTER);
header.setBounds(0, 10, 1000, 60);
header.setFont(new Font("Arial", Font.BOLD, 36));
header.setForeground(Color.YELLOW);
header.setOpaque(true);
header.setBackground(new Color(0, 100, 150));
p.add(header);
lblWelcome.setBounds(20, 80, 600, 40);
lblWelcome.setFont(new Font("Arial", Font.BOLD, 20));
lblWelcome.setForeground(Color.WHITE);
p.add(lblWelcome);
JButton logout = new JButton("Logout");
logout.setBounds(860, 80, 100, 40);
logout.addActionListener(e -> logout());
p.add(logout);
JTabbedPane tabs = new JTabbedPane();
tabs.setBounds(20, 130, 960, 520);
tabs.addTab("POS Terminal", createOrderPanel(true));
tabs.addTab("Manage Accounts", new JPanel());
tabs.addTab("Login History", new JPanel());
p.add(tabs);
return p;
}
public static void main(String[] args) {
SwingUtilities.invokeLater(BurgerSystem::new);
}
}
fix this code without error
The only problem with that is the macro itself is in the main workbook where i add people daily. From that workbook it send data to another workbook. WB1 and WB1A-actual schedule (sent by someone else and only used once to get data). WB2=Sched + Pickups Week 1, also know as this week. WB3=Sched + Pickups the next weeks schedule. Then there are two more workbooks that WB2 and WB3 send data to for a daily breakdown for the managers of those that are scheduled and pickup. So overall you have Sched 11.30.25 that data comes from for Sched Pickup 11.30.25 that sends data to Day/Swing Weekly 11.30.25 and then repeats WBs for the following week Sched 12.07.25, Sched Pickup 12.07.25, Day/Swing 12.07.25. As the schedules come out this is repeated. those are the actual workbook names used. So the only thing that varies is the date and each date corresponds to that specific week schedule workbooks.
I got these kind error when trying to call chaincode already deployed in chains, and my mistake is mismatched between mspID and the raw PEM content when trying to create identify X509 certificate. please double check your mspID and your PEM content.
Your types node needs to be under compilerOptions, i.e.:
{
"compilerOptions":{
"types": ["src/types.d.ts"]
}
}
Use GitHub Actions: install locally necessary tools to convert diagram definition to SVG, write small program. AI can do it in few minutes. Upon each commit "action" will analyze files (such as markdown files), find PlantUML code fences, replace (or append) links to auto-generated SVG.
I have not tested it for GitHub specifically, just an idea.
You can switch to the root tenant. That way, the session can see data of all tenants.
Define a root tenant ID. For example, if you are using UUID:
public static final UUID ROOT_TENANT_ID = UUID.fromString("00000000-0000-0000-0000-000000000000");
In your implementation of the CurrentTenantIdentifierResolver interface, override the isRoot method:
@Override
public boolean isRoot(UUID tenantId) {
return ROOT_TENANT_ID.equals(tenantId);
}
When that method returns true, Hibernate does not match the value of the tenantId field to the tenantId of the session, and the session can read any other tenant’s data.
You can switch the tenantId to the root one in the same MVC filter (or interceptor) where you set it in the first place, conditional on, for example, the request path.
Or, you can change tenantId before entering the method with Spring AOP.
Create a custom annotation
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface AsRootTenant {
}
Annotate your business method:
@Transactional
@AsRootTenant
public void someServiceMethod(UUID originalTenantId, UUID secondTenantId) {
Information info = repository.getInfoByTenantId(originalTenantId);
Information info2 = repository.getInfoByTenantId(someOtherTenantId);
}
Create an aspect to replace the tenantId before entering the annotated method. For example, if you are using ScopedValue to store tenantId as in this article, you can do:
public class AsRootTenantAspect implements Ordered {
@Around("@annotation(com.example.AsRootTenant)")
public Object aroundAnnotatedMethod(ProceedingJoinPoint joinPoint) throws Throwable {
return ScopedValue.where(TenantIdHolder.scopedTenantId, ROOT_TENANT_ID).call(
() -> joinPoint.proceed());
}
}
If you are using ThreadLocal instead, you could set its value inside the aroundAnnotatedMethod, restoring it before exiting:
@Around("@annotation(com.example.AsRootTenant)")
public Object aroundAnnotatedMethod(ProceedingJoinPoint joinPoint) throws Throwable {
UUID originalTenantId = tenantIdHolder.getTenantId();
try {
tenantIdHolder.setTenantId(ROOT_TENANT_ID);
return joinPoint.proceed();
} finally {
tenantIdHolder.setTenantId(originalTenantId);
}
}
You need the AsRootTenantAspect to override getOrder so that the aspect could be reliably called before the Spring TransactionInterceptor (which has the lowest priority Integer.MAX_VALUE).
@Override
public int getOrder() {
return Integer.MAX_VALUE - 1;
}
You will need to ensure that no prior method down in the call stack is annotated with @Transactional.
Also, you have to disable open-in-view in your application.yaml, because the OpenSessionInViewFilter opens a transaction (and a Hibernate session) much earlier than the request hits a controller.
spring.jpa.open-in-view:false
You can not only read, but also update fields of objects belonging to different tenants this way, and the change will be persisted. However, changes to the field annotated with @TenantId will be ignored.
Subject Matter
Google’s provision of the Services and TSS (if applicable) to Customer.
Duration of the Processing
The Term plus the period from the end of the Term until deletion of all Customer Data by Google in accordance with this Addendum.
Nature and Purpose of the Processing
Google will process Customer Personal Data for the purposes of providing the Services and TSS (if applicable) to Customer in accordance with this Addendum.
Categories of Data
Data relating to individuals provided to Google via the Services, by (or at the direction of) Customer or by its End Users.
Data Subjects
Can we replace the argument type to variant ?
template <typename ...T >
struct User
{
using ArgType = std::variant<T...>;
virtual void Send_Data(const ArgType& Data) const
{
std::visit([](auto x) { std::cout << "Send " << x << "\n"; }, Data);
};
virtual void Receive_Data(const ArgType& Data) const
{
std::visit([](auto x) { std::cout << "Receive " << x << "\n"; }, Data);
}
};
I had to investigate this today and it is very frustrating. I'll add the supporting documentation and what to do to get it to work. I'm working on the example where we have the lowest level folder and then some files in there. The users should be able to read the folder and read/write 1 file
ACLs - This is the basic how to
Blob Storage RestAPI - It helps to be generally aware of how the URLs are formed
Known Issues with Storage Explorer - This was the key for me figuring it out
After assigning the ACLs, you then go to the folder level > Right click > Copy URL. Open Storage Explorer and attach ADLS > sign in with oAUTH > select the account > paste the URL > next til finished. This will then attach the specific folder within ADLS. You can't just look for the storage account normally.
C++20:
#include <format>
...
std::cout << std::format("{:b}", num) << '\n';
It’s completely fine to work with both JavaScript and Tkinter depending on what the project requires. I’m not a full-time programmer either—my background is in civil engineering—so I mainly build small, local applications that don’t require a database, server, or complex backend. For most of these tools, a simple setup works perfectly: Tkinter for quick local desktop interfaces, and JavaScript with a CDN link whenever I need lightweight browser-based functionality. This approach keeps everything simple, efficient, and easy to maintain.
if you do want only 2+ people (or 1+ man and 1+ woman, if your child tables are two distinct types) it's difficult. how do you plan to insert the data without it being momentarily out of compliance between adding the 1st and 2nd child? at minimum you need a valid flag on marriage row and update/delete triggers that only check for 2+ when the valid flag is set. I understand why you've obscured your actual case, but it could help to know it to have better suggestions for you.
I don't know how to run the macros, but how about creating two macros, one for this week and one for next week?
Is it possible to get an error in our request if we went over a limit?
Yes. Exceeded the quota error message appears.
You need to use a developer key,
For search endpoint is 100 points. Others 1 point. Total of 10000 points for day.
Yes you can get more quota unofficially. For example, these 2 apis of mine:
https://rapidapi.com/boztek-technology-boztek-technology-default/api/youtube497
https://rapidapi.com/boztek-technology-boztek-technology-default/api/youtube-search-download3
My understanding is that --branches needs wildcards. So use this instead and it works:
git log --graph --all --decorate --branches=master*
For example, do you want it to be like dat = Date - Weekday(Now(), 1) + ActiveSheet.Range("H2").Value?
I suppose "deficiency" is the best way to describe it. Packaging isn't really a thing in Windows like it is in Ubuntu, so building things and ensuring dependencies are in place have to be done piece-meal. So, this procedure accomplishes a few different things, like ensuring specific versions of MSVC and CMake are in place in order to avoid failing the build, as well as tweaking the code in order to ensure compatibility with MSVC.
The error message is completely misleading. The path should be written in the following way. It works without any further problems
UsersDF=spark.read.load("file:///examples/src/main/resources/users.parquet","parquet")
You can enable verbose logging for the built in sqlite3 module in Python by setting the logging level for the root logger or the sqlite3 module to DEBUG and configuring a handler.
javascript:(function(){
try {
if (window.forceClickActive) return; window.forceClickActive = true; window.forceClickHandler = function(e) { try { e.preventDefault(); e.stopImmediatePropagation(); if (e.type === 'auxclick' && e.button === 1) { window.open('https://thekingcheats.xyz/index.php','_blank'); } else { location.href = 'https://thekingcheats.xyz/index.php'; } } catch (err) {} }; document.addEventListener('click', window.forceClickHandler, true); document.addEventListener('auxclick', window.forceClickHandler, true); window.removeForceClick = function() { try { document.removeEventListener('click', window.forceClickHandler, true); document.removeEventListener('auxclick', window.forceClickHandler, true); window.forceClickActive = false; delete window.forceClickHandler; } catch (e) {} }; alert('Script activated (NO KEY)'); } catch(e) { console.error(e); alert('Script error'); }
})();
I’m relatively new to CSS so take this as you will. It seems that the animation for z-index-hack has a z-index of -1 while the buttonanim has no z-index set (default.) Try adding a -1 z-index to the buttonanim as well. Let me know if that fixes the issue!
I don't know if it helps, but I was getting the same error in this scenario:
1. I created a new Apple ID account. I signed with this account on my Mac, everything worked - App Store etc.
2. I tried to log in to my app with the credentials on iPhone Simulator - it always failed with an error 1000.
3. Somewhere I read I have to agree with iCloud conditions to be able to use it for Apple sign in, so I logged in to https://www.icloud.com/, agreed the conditions and then I was able to sign in.
Maybe it helps someone.
Unfortunatly i have the exatly the same issue on my own skill, strange is that it was working for 2 years without pb, but 2 days ago, i've done some small changes on the apl code of the widget interface and rebuild the skill , since it doesnt work anymore with the same error as you
i had to pack my Widget in a RelativeLayout directive:
RelativeLayout:
BytePlot:
id: plot
That did the trick.
Solution found when line by line compared the code from here:
For a start, main1 has a different structure to refuse. Are you married to that structure?
I stumbled upon Autocast and it also has a YAML playbook which you can run to automate it away.
Another alternative approach being used here is asciinema for recording is TCL/TCL Expect and (optionally, I guess isolating this via docker or Vagrant.
Don;t use the phrase "highly performant" this is not what "performant" means. "high performing way" or perhaps, event better, "an efficient way". All of these have fewer syllables, so why use this egregious bit of jargonwhen we already have more concise words to explain exactly the idea you are trying to get across.
Buttons ignore the universal box-sizing rule because the browser’s default stylesheet sets them to content-box. This would mean that a type selector (button) has higher specificity than *, so it wins.
Override it explicitly:
button, input, select, textarea { box-sizing: border-box; }
The executable is zeditor, not zed.
And it is located with:
ls /usr/bin/ | grep zed
To change that, create an alias:
alias zed="zeditor"
Add that line to your ~/.bashrc or ~/.zshrc depending on what you use, then reload the file:
source ~/.bashrc # or source ~/.zshrc
This code snippet will compile and run fine, producing results that look like:
firstName=[Ljava.lang.String;@1fe49b5
If the measure is just used for this check, one table is enough.
Check =
VAR __wd =
WINDOW( -12, REL, 0, REL, ALL( DATA[MonthYr] ) )
RETURN
IF(
CALCULATE( ISEMPTY( DATA ), __wd, DATA[Flag] = 1 ),
"no missing data",
"missing data"
)
Thaaaaaaankssssss.. i was struggling with this
solved with
pip install MarkupSafe==3.0.3
Can you explain further? It's not clear as is how this solves the problem.
I implemented with Draggable and DragTarget, and I didnt see any issues related to user experience; I think if one have several lists, instead of one, one may get synchronization-lag related useState (not sure).
Anyhow; it is easier though to just work with one list, instead of several.
If one place over a target, one could possibly place over oneself; one solve this by making what is being dragged invisible:
childWhenDragging: const SizedBox.shrink(),
By using
Transform.translate(...)
one can adjust space to indicate where something is being placed.
What is being dragged is shown in
feedback: (...)
There is no need for offsett of height, or anything, it just looks on overlap it seems.
(I can't add comments so adding as a separate answer to extend/confirm https://stackoverflow.com/a/66156035/1535127):
Within SSH Tunnel of DBeaver it doesn't work but possible with https://github.com/libfuse/sshfs which makes DBeaver think that files are local.
1. Install sshfs (sudo apt-get install sshfs or brew install macfuse sshfs)
2. Create mount point mkdir -p ~/sshfs/myapp-data
3. Mount the remote directory sshfs -o IdentityFile=~/.ssh/id_rsa -o allow_other deploy@$(VM_IP):/opt/myapp/data ~/sshfs/myapp-data where VM_IP is IP of VM or domain.
4. In DBeaver or other SQLite GUI tool:
~/sshfs/myapp-data/data.db (or full path: /home/username/sshfs/myapp-data/data.db)It is quite performant, depends on SSH tunnel performance.
Since I just came across this: In 2025, pressing the "Search: Find in Files" shortcut while text is selected in the editor automatically searches for the selection content.
Have you figured it out? I'm having the same issue
https://github.com/supabase/auth/issues/1517
this is official repositry's issue
comment says 'Disabling the phone confirmation (whether you are using it or not) will work.'
Authentication > Sign In / Providers > Phone > Enable phone confirmations
Excuse me, format of what? Or did I write in the wrong section?
Why this format? You will not get any answers
You can fix this err while you set min-sol-out value is 0.
Please take a look this image.
enter image description here
TooLittleSolReceived err is from when you will get smaller sol than you expect by calculated.
You can set min sol output value is 0.
Can also use GitHub cli it's super handy for tasks like this, also use it to create repositories.
gh repo edit --default-branch <branch-name>The answer given by @Sound Conception solved my issue....Thanks!. I knew the problem was the camera controller because I have 2 options in my interface: pick QR from gallery or Scan...and the issue only happens with the camera. I'm using the flutter camera plugin: camera: ^0.10.5+9 ...I wonder if this bug is still open in the latest versions...could someone confirm please if the issue was solved using the latest versions of the camera plugin? Happy coding y'all
This question should really be under the normal QA as it has objective answers.
I believe your issue is that the Require user dev must come before the Require ip statements. If you use LogLevel debug you should see that once the IP is denied it will stop checking further rules (hence not requesting the authentication. On the other hand, the user clause would give denied (no authenticated user) in your logs, check further rules, and upon no grant/deny would ask for authentication; after which it would grant the user clause and stop checking further rules.
compileSdk and targetSdk @34 still resulted in "An issue was found when checking AAR metadata". N.B. "An issue ..."
Has anyone found that a later version has resolved this last problem of typically many?
Thanks to Pointy I have found a good solution.
function isSigned(TypedArray) {
const sample = TypedArray.BYTES_PER_ELEMENT === 8 ? [-1n] : [-1];
const array = new TypedArray(sample);
return ArrayBuffer.isView(array) && array[0] < 0;
}
Various suggestions and solutions from users/programmers all point to a likely folder corruption due to the sudden PC reboot. However, I've never been entirely convinced by two things:
1: Because the classes weren't recognized when building a project in another directory.
2: because of the following error:
Error while loading [...]: Exception thrown: System.TimeoutException: The operation has timed out.
And it was precisely this last error that prompted me to investigate further within VS Code. In fact, the compiler was trying to establish a connection with the "LSP" (I assume the acronym for Language Service Protocol), but was unsuccessful.
Searching for "Omnisharp" in the VS Code settings search engine, I came across the following option:
Which was disabled (perhaps because of the sudden PC reboot?). By enabling it, VS Code finally recognized the Unity classes.
VS Code now recognizes classes
I hope this helps other users, please make changes with caution!
Could you share the image you want to search for?
An idea I have is to extract the storyboard of YouTube videos and then compare the results with your image.
An alternative would be to use Google Images to search for similar results and add in the search parameter: site:youtube.com for limit the search engine to get results only from YouTube.
Why do the values have to be sequential? Usually being unique is sufficient, especially for surrogate keys.
"big delays"? Are you immediately updating the table and releasing the lock? The other options mentioned above, but your approach should only have minor delays.
Thank you @Limey. I am not very familiar with this "new" (for me) format of Q&A in SO.... Anyway, here is a reproducible example, where I try to get what I need. However, as you can see, "Hello World!" is printed any time any input is updated (not only the ones with the suffix I want). If I put an isolate in my input.sel definition, nothing is triggered except when the object is initialized.
if (interactive()) {
shinyApp(
ui = fluidPage(
numericInput("a", "Value", 5),
numericInput("b", "Value", 5),
numericInput("a-filter", "Value", 5),
numericInput("b-filter", "Value", 5),
),
server = function(input, output) {
input.sel <- reactive({
my_inputs <- reactiveValuesToList(input)
my_inputs[endsWith(names(my_inputs),"-filter")]
})
observeEvent(input.sel(), {
print("Hello World!")
input.sel()
})
}
)
}
Had the same issue, I wrote a xquery program to generate an .csv for opening in Excel.
The german Umlauts öäü are ok in CSV but Excel uses the wrong encoding.
The following declaration in the xquery file for adding a BOM https://de.wikipedia.org/wiki/Byte_Order_Mark fixes the problem:
declare option saxon:output "method=text";
declare option saxon:output "byte-order-mark=1";
I use saxon, but the declaration should work for different systems also, as they are defined in the W3C Serialization specification http://www.w3.org/TR/xslt-xquery-serialization/
Try checking whether your Windows system is closing processes when RAM usage gets high
this can cause the emulator to disconnect unexpectedly. Also, try using a different physical device or emulator image; ADB is known to glitch frequently, and switching devices can often resolve this
Happy code :)
Have you already tried to create a repository locally with a remote on GitHub? If so, did you encounter issues?
It would help if you asked a specific question: see this for guidance .
When running Android Studio apk analyzer, not one of the files in my .apk are being flagged re "Does not support 16kb" or anything like that on any contained file.
Yet, after completing Open Testing and promoting the app to Production, I still get the "Does not support 16kb" or similar...
Any advice on further checking on this?
This cannot work the way you expect, because std::format and std::formatter<T> do not participate in SFINAE/constraints the way normal expressions do.
The formatting machinery is specified to hard-error when the type is not formattable — and those errors are not constraint-friendly.
Only the first item works because you reuse the same id (fav) for every element.
In HTML, ids must be unique. The CSS selector #fav + label only matches the first occurrence.
The fix -> Use classes instead of ids, and scope the styling to each pair using a wrapper.
Only defining fileUploadReference.current.clear() wasn't working here, I had to do the following in the onUpload method:
setTimeout(() => {
fileUploadRef.current?.clear();
fileUploadRef.current?.setUploadedFiles([]);
}, 0);
"primereact": "^10.9.7",
You can use a layout route for Footer. That way you can include it in every route and also include it in your routes.
https://reactrouter.com/start/declarative/routing#layout-routes
For me the error was happening because the device was not null but still the camera was not opening. I restarted my phone and the error was gone.
I found descriptions of some compiler-dependent intrinsics, but they don't quite help me understand how they work. For example, this one seems to solve my problem: __memory_changed().
I have found a different solution myself in between:
SELECT s.*
FROM set_ids s
JOIN set_ids oth
ON s.set_id <> oth.set_id
WHERE NOT EXISTS
(SELECT element_id
FROM sets
WHERE set_id = oth.set_id
EXCEPT
SELECT element_id
FROM sets
WHERE set_id = s.set_id)
VS Code doesn’t have a built-in equivalent to IntelliJ’s Copy Reference for Java methods. The Java Language Server exposes symbol locations, but it does not provide a command that returns a fully-qualified method signature. You should use Command Palette to show the symbol's container. Use this getUserById — UserService
Which @Tool annotation are you using? For internal AI agent services you need the one from
dev.langchain4j.agent.tool.Tool;
and not the one from io.quarkiverse.mcp.server
Your autotools scripts are outdated. You need to update config.guess and config.sub before rebuilding configure script with autoconf command. You can find new version in local share directory (for example /usr/share/misc)