Just spotted this question although it has been for 6 years.
LAST() -> LAST_VALUE(). Also you should provide the complete error log.
https://www.postgresql.org/docs/17/functions-window.html#FUNCTIONS-WINDOW
Try this:
wxTheApp->GetEventHandler()->QueueEvent(evt.Clone());
WhatsApp +2347063372861 join illuminati in New York, Join Illuminati Brotherhood in New Jersey, Join Illuminati in Atlanta, Join Illuminati in Paris,
Join Illuminati in Berlin , New World Order of Wealth , be at the top of your career, Become A Member , Illuminati Official Online, How or where to join the real illuminati in Pamela Court in uk, join 666 brotherhood - Become a member of Illuminati in Australia, HOW TO JOIN ILLUMINATI 666 CULT FOR FREE in Canada, NO Human Sacrifice
Welcome to the secret zone of the Illuminati, a perfect organization with full of world leaders, business role models, inventors, artists and group of talented people all around the world. Everyone present in the Illuminati group to change the way of life and want to unite all humanity as the one here with no differences. Get In Touch With Us via WhatsApp : +2347063372861
Become A Member, Easy Sign Up Available, Joining Form Fill Details, Get In Touch With Us. Looking To Join The Illuminati, Sign Up Form Available, Connect With Us, Talk To Us. Joining Form Available. Know More. Illuminati Officials. Get In Touch With Us via WhatsApp : +2347063372861
Visit: https://mercurious-confraternity.jimdosite.com
The Illuminati is an elite organization of world leaders, business authorities, innovators, artists, and other influential members of this planet. To apply for membership, complete the form on this page. Get In Touch With Us via WhatsApp : +2347063372861
All people, in all places, are eligible to apply for Illuminati membership. Initiates are not required to take any vows of loyalty, and may remove themselves from our membership at any time with no repercussions. Visit: https://mercurious-confraternity.jimdosite.com
WhatsApp : +2347063372861 Dear Influential Individual,We are enchanted that your life’s excursion has driven you to find our association. Perhaps you have met one of our individuals in person Or on the other hand maybe not; we esteem obscurity. We see and realize all similarly as a shepherd sees and knows the entirety of the herd, our eyes peering over the majority to recognize any risk to the endurance of the human species. We are the bearers of new sunrises, the gatekeepers of the human species. We are the Pyramid, the Eye, the Light, the Eternal Circle. We are the Illuminati. Get In Touch With Us via WhatsApp : +2347063372861
Since our origination, Illuminati members have dedicated themselves to the advancement of the human species by taking oaths of commitment. Get In Touch With Us via WhatsApp : +2347063372861
These pledges are a core tradition of the Illuminati, formed as written contracts between a single person and all members of humanity. The first pledge of the Illuminati is called the Eternal Oath. Visit: https://mercurious-confraternity.jimdosite.com
I had this issue today myself, and realized that a solution might be possible using Reflection and then instantiating a new BaseClass object and then copying the values from the properties of the SubClass object onto the BaseClass object (in this so called extension method).
I can't fully remembered what I googled in order to get this code (thanks to our very special friend Google Gemini) :) But I think it was something like 'how do I convert an object from one type to another that have the same properties using reflection".
Anyways, this is the code it gave me :) Its quite useful. Hopefully you will find it useful too :)
Essentially the idea is the 'object source' is your SubClass, and then you convert it to a T = Baseclass.
public static T ConvertTo<T>(this object source) where T : new()
{
if (source == null)
{
return default(T);
}
T target = new T();
Type sourceType = source.GetType();
Type targetType = typeof(T);
foreach (PropertyInfo sourceProperty in sourceType.GetProperties())
{
PropertyInfo targetProperty = targetType.GetProperty(sourceProperty.Name);
if (targetProperty != null && targetProperty.CanWrite && sourceProperty.CanRead)
{
// Ensure the types are compatible or convertible
if (targetProperty.PropertyType.IsAssignableFrom(sourceProperty.PropertyType) ||
(sourceProperty.PropertyType != targetProperty.PropertyType &&
CanConvert(sourceProperty.PropertyType, targetProperty.PropertyType)))
{
try
{
object value = sourceProperty.GetValue(source);
object convertedValue = Convert.ChangeType(value, targetProperty.PropertyType);
targetProperty.SetValue(target, convertedValue);
}
catch (InvalidCastException)
{
// Handle cases where direct conversion might fail, e.g., custom types
// You might add more sophisticated mapping here or log the error.
}
}
}
}
return target;
}
private static bool CanConvert(Type sourceType, Type targetType)
{
// Simple check for common convertible types, can be extended for more complex scenarios
return (sourceType == typeof(string) && (targetType == typeof(int) || targetType == typeof(double))) ||
(sourceType == typeof(int) && (targetType == typeof(string) || targetType == typeof(double))) ||
(sourceType == typeof(double) && (targetType == typeof(string) || targetType == typeof(int)));
}
After looking at the command line graph it's more clear that there was a branch created off of master and then another branch created off of that branch. Because there were no commits while those branches were being created they essentially share a common point which is represented in ADOS as that perpendicular line in addition to the other two lines.
If anyone is having trouble seeing how they relate, imagine that the perpendicular line is the farthest left yellow line and the lowest node that is on the left in image 1 is on the right in image 2.
Sorry to the people who responded for not writing my post correctly. But despite working on it for 2 days, I seem to have finally found a fix just now. I recreated the flutter project, popped the lib file back in, and during the process of adding the firebase packages, I just re ran the flutterfire configure after each one and followed instructions there. Thank You to those who responded
I recently found that any open recordset will cause "select last_insert_id()" to be 0, since upgrading from MySQL 5.1 to MySQL 8.0.
Server side script ASP (Yeah, I know)
I know this is old and wcf is dead...blah, blah, blah...but was anyone able to make this work?
Found the solution here (2014 year...)
it is very old bug. and solution is weird but working for me.
I just copy it here:
Go to File | Settings search for Keymap. Then at the right panel in the Editor Actions reassign Up, Right, Down, Left actions. Search for Up, right click and select Add Keyboard Shortcut. Then press any button and again press numpad Up button. Do the same thing for Right, Down and Left actions.
But it pre-prends data I don't need to the lines:
There's the :hide-fields
command that will replace fields with a vertical ellipsis. Maybe try something like :hide-fields __REALTIME_TIMESTAMP __MONOTONIC_TIMESTAMP
.
But, I would also suggest maybe modifying the logback config to not include the timestamp since it's redundant with the journald one.
But sometimes it breaks and I get a yellow log where most lines show " └ Invalid log message: line at offset 123 is not a JSON-line"
What version of lnav is this?
I went through this today. I found that I had to download the Narwal 4 Feature Drop | 2025.1.4 preview and enable Gemini before I the New > Test menu showed up. I restarted AS via invalidating caches after enabling Gemini.
There can be delays with shared contacts but also you need to enable the correct sharing. We did a full blog post about this here https://contactzilla.com/google-shared-contacts-guide/
no reason to 2 UserDetails implementations,just use your email to find your username of user,but your email must be unique.then use username password way to login
no reason to 2 UserDetails implementations,just use your email to find your username of user,but your email must be unique.then use username password way to login
When having this issue in tests of a Spring Boot application using Feign one can solve it just by adding following property:
spring.cloud.openfeign.httpclient.time-to-live=0
This effectively turns off TCP connection pooling by Apache HttpClient used by Feign. See: https://github.com/wiremock/wiremock/issues/97#issuecomment-1251105611
I tried multiple approaches but didn’t get them working reliably with Angular + Salesforce static resources. What did work is using a relative path from the SCSS file to the asset. For example:
content: url(../../../vx-grid-resources/assets/icons/checked-box.svg);
This works because:
../../../
walks up three folders relative to the SCSS file’s location.
Then it points directly to vx-grid-resources/assets/icons/checked-box.svg
.
Angular correctly copies these into the vx-grid-assets/
folder during build, so the relative path resolves after deployment.
So far, this has been the only reliable way I’ve found — you need to use the relative path instead of trying ./vx-grid-assets/...
or absolute /vx-grid-assets/...
, which either don’t compile or don’t resolve correctly at runtime in Salesforce.
For me (Unity 2022.3.15f1, Windows 11), this worked:
Window->Package Manager
Packages: In Project
Unity Version Control
Remove
A shim is code that adds a layer to make existing APIs work in different environments, while a polyfill specifically implements modern browser features in older browsers that don’t support them. In short: all polyfills are shims, but not all shims are polyfills.
In modern SharePoint, there is no supported SPFx API to hide the built-in command bar buttons (such as New, Edit, Share, Pin to Quick Access) directly through code. That is why attempts like:
const newCommand: Command = this.tryGetCommand("newComposite");
newCommand.visible = false;
return undefined
. The tryGetCommand()
method only works for commands defined within your own ListView Command Set, not the built-in buttons.
Custom ListView Command Set Extension
Define a Command Set extension that includes only the buttons you want users to see.
The built-in buttons remain in the DOM but are effectively hidden because your extension does not render them.
This is the safest, long-term solution and fully supported by SPFx.
JSON Formatting (View Formatting)
You can hide certain buttons by applying JSON formatting to the list view.
This requires changes in the UI or via the SharePoint REST API.
Fully supported but not purely code-based.
CSS / DOM Override (Not recommended for production)
Injecting CSS like display: none
can hide buttons.
This is fragile and may break if Microsoft updates the DOM structure.
There is no official SPFx API to directly hide built-in command bar buttons.
Any solution that manipulates the DOM directly is inherently fragile.
For a maintainable, supported solution, a custom Command Set extension is the recommended approach.
import { BaseListViewCommandSet, Command } from '@microsoft/sp-listview-extensibility';
export interface ICustomCommandSetProperties {
// Define any properties if needed
}
export default class CustomCommandSet extends BaseListViewCommandSet<ICustomCommandSetProperties> {
public onInit(): Promise<void> {
// Initialization logic if needed
return Promise.resolve();
}
public onExecute(event: { itemId: string, commandId: string }): void {
switch (event.commandId) {
case 'COMMAND_1':
// Handle your custom command
break;
case 'COMMAND_2':
// Handle another command
break;
default:
break;
}
}
public onListViewUpdated(event): void {
// Hide built-in buttons by only showing your custom commands
const newCommand: Command = this.tryGetCommand('COMMAND_1');
const editCommand: Command = this.tryGetCommand('COMMAND_2');
// Show only your custom commands
if (newCommand) newCommand.visible = true;
if (editCommand) editCommand.visible = true;
// All built-in commands are not included here, so effectively hidden
}
}
Use rootView.layer.hitTest(point)?.name == nil ? rootView : nil
In the trigger, you need to specify the trigger type:
await Notifications.scheduleNotificationAsync({
content: {
title: "Daily Reminder",
body: "It is a scheduled notification!",
sound: "default",
priority: Notifications.AndroidNotificationPriority.MAX,
},
trigger: {
hour: 20, // ✅ 8:10 PM (24-hour format)
minute: 10,
repeats: true, // 🔄 Repeat every day
useUTC: false,
type: SchedulableTriggerInputTypes.DAILY, // ***NEED THIS HERE***
},
});
https://docs.expo.dev/versions/latest/sdk/notifications/#dailytriggerinput
In case someone lands here on getting this error on a self built executable - for me, using dotnet publish --self-contained true
instead of simple dotnet build
solved the problem.
The problemn you are facing is from the type of sensor you are using, the acelerometer will use the gravity to estimate the angle.
For example, lets say Z+ is equivalent to UP, Y+ is to Front and X+ is to Right.
The pitch angle 0º would be 10g at the axel Z+.
The pitch angle 90º would be 10g at Y+.
The pitch angle -90º would be 10g at Y-.
The problemn is when derivate the math behind you eventually will come across a tangent. the equation would be something like (arctan( Ay/Az)), that is, you can only get angles beetween -90 to +90.
This worked to find all records where a metadata string (docID) existed:
results = collection.get(where={"docID": {"$nin": [""]}},include=["metadatas", "documents"], limit=10000)
Change preferredStyle to .actionSheet
. That will fix it.
I had a similar issue but I am not sure that it is related exactly.
I am not sure why but it appears that my issue had something to do with how the query parameters were being interpreted. The fix for me was to encode the params with encodeURIComponent().
This appears to resolve my issue but I am not sure that it will help with yours. I had one parameter set to a JSON string. Encoding it stopped me from getting this exception.
Cheers!
Each attempt to connect needs a new socket. So, your code:
const socket = new SockJS('http://localhost:8080/ws');
console.log("socket -> ", socket);
const stompClient = new Client({
webSocketFactory: () => socket,
Needs to change to
const stompClient = new Client({
webSocketFactory: () => new SockJS('http://localhost:8080/ws'),
Basically, the factory method must return a new socket when invoked.
See https://stomp-js.github.io/guide/stompjs/rx-stomp/using-stomp-with-sockjs.html
Keystore = your passport (proves who you are to someone else e.g., a server)
- Contains certificate(s) + your private key
Who uses it?
- Clients (only if mutual TLS is required)
Truststore (cacerts) = a list of trusted embassies (tells you whose passports you believe are valid)
- Contains Public root and intermediate CA certificates.
- Purpose is to validate other party's certificate.
General Example:
e.g. if Java app is calling https://google.com
- google presents it's certificate chain.
- The client Java app checks if the chain (passport) belongs to the truststore (list of embassies passports we trust)
- Yes? then connection succeeds. No -> you get an error.
Example: Mutual TLS
Client presents its certificate from its keystore.
Server validates it against its truststore.
Server presents its certificate from its keystore.
Client validates it against its truststore.
establish and use a loop invariant that the multiset of the array equals the disjoint multiset-sum of the prefix up to i and the suffix from i, and prove it by induction on i using Dafny's sequence-splitting lemmas
When you’re building any web application, URL encoding isn’t just about “making things work,” it’s about making them work reliably and securely across all environments.
The main reasons why you should use urlencode
are:
Reserved Characters – Certain characters have special meaning in URLs (e.g., &
, =
, ?
, /
). If you don’t encode them, the browser or server might misinterpret your link. For example, ?name=John&Doe
could be parsed incorrectly without encoding &
.
Non-ASCII and Spaces – URLs were originally designed for a limited character set (ASCII). Characters like spaces, accented letters (é
, à
), or symbols need encoding to ensure they’re transmitted correctly. While modern browsers often handle unencoded characters, not all servers or proxies do. That’s why %20
for space is still the safe option.
Security – Without proper encoding, you open doors for injection attacks. For example, if query parameters aren’t encoded, malicious users could inject scripts or unexpected input. Encoding helps prevent broken queries and reduces the risk of vulnerabilities like XSS.
Interoperability – Maybe your dev environment “just works” without encoding, but deploy the same app behind a load balancer, proxy, or CDN, and suddenly things break. Encoded URLs ensure consistency across browsers, servers, and APIs.
👉 When should you use it?
Anytime you’re dealing with dynamic input (user input, query strings, form values, filenames, API calls). In short: if it didn’t come hard-coded from you, encode it.
If you want a deeper dive with examples in Python, JavaScript, and best practices, I put together a guide here: https://urlencoderdecoder.com. It explains not just the “how” but also the “why” behind URL encoding and decoding.
Yeah, I found a way to fix it. Sorry for not being here. I have replaced dynamic line counter increases with line counter and malloc in the beginning of this function. Now I just use int lines_amount = line_counter(workspace_file->filename); workspace_file->flc = malloc(sizeof(char*) * lines_amount);
Thanks for help!
in devOPs portal(or any),-->Libraries-->Variable group-->azure sub and Keyvalut name(we get error)
-->Project setting-->service connection-->visualstudio(click) -->manage id reg(small blue)--cpy the id
In keyvault -->iam access,give access(Get,List)-->error will be resolved-->in devops add the Variable groups
كيف اعرف ان واتساب مخترق وما هو أسلوب لاختراق
When I try to open the Storyboard Preview or run IBAgent-iOS
, I only get a black screen.
The log shows an error like this:
Encountered an error communicating with IBAgent-iOS.Failed to spawn IBAgent-iOS on iPhone 14 (iOS 16.2, Booting)Process spawn via launchd failed because device is not booted.Bad or unknown session: com.apple.CoreSimulator.SimDevice...
I tried deleting and recreating simulators, but the issue persisted with the iOS 16.2 Built-in runtime.
How can I fix this?
Answer:
This happens because the iOS 16.2 Built-in runtime that ships with Xcode was corrupted/incomplete.
Even if you recreate the simulators, IBAgent-iOS
cannot boot the device, which causes the black screen in Storyboard Preview.
The fix was to install a clean runtime.
Open Xcode → Settings → Platforms.
Click + and install another runtime, e.g. iOS 16.0 Simulator (or 16.4/17.0 if available).
Restart Xcode and then start it again. Now be happy.
Explanation (why this happens)
The iOS 16.2 Built-in runtime is bundled inside Xcode and cannot be removed.
If it becomes corrupted (CoreSimulator data issue), IBAgent-iOS
fails to boot and Storyboard Preview shows only black.
Installing another runtime provides a fresh, working copy of the simulator, which fixes the issue.
No matter what programming language is used, and no matter what framework is used, the underlying mechanism for controlling I/O interfaces as well as UI elements is done at a fundamental level though the operating system's kernel. Due to the fact that the chosen framework is WPF, which is a Windows only C# framework, the solution provided implements a kernel level API call that manipulates the mouse cursor position trough its related kernel API endpoint.
The solution provided in C# within this answer is framework independent, and it utilises the Window Kernel API, by importing the User32.dll, and referencing an API method called SetCursorPos
, which is setting the cursor position as the name implies.
using System;
using System.Runtime.InteropServices;
namespace StackOverflow
{
public class Program
{
// Import the 'User32.dll' Windows OS library to access OS API methods
[DllImport("user32.dll")]
// Reference the 'User32.dll' 'SetCursorPos' method within the 'DllImport' attribute
public static extern bool SetCursorPos(int X, int Y);
public static void Main(string[] args)
{
SetCursorPos(100, 100);
Console.WriteLine("\n\n[ [!!!] Cursor moved to (100, 100) [!!!] ]\n\n");
Console.ReadLine();
}
}
}
You can try running it in Python directly instead of using a process manager, also if it is graphical system logging in or out or lock screening may be sending accidental keystrokes. You could try testing it out without running anything else and using a more plain terminal emulator like Kitty or Alacritty.
This is because some programs which monitor or automate keystrokes can send keyboard interrupts. Another recommendation is trying to run it without a graphical interface if that is an option in a plain console without a desktop environment as this is more secure and less likely so be interrupted.
You could enter your number in a worksheet cell (for example, A1
) and format it as desired. Next, select the shape, and type =A1
in the formula bar. The shape will reflect the value and formatting of A1
, updating automatically when changes are made.
---
title: "Untitled"
format: dashboard
---
# Quarto
::: {.panel-tabset}
## tab1
```{r}
#|expandable: false
plot(mtcars)
##tab2
#|expandable: false
plot(mtcars)
:::
I know its so long since question is posted, still if anyone is looking for try my library @flixsrota/player here https://dub.sh/7SKzYvE
npm i @flixsrota/player
I built it just for this, just install and input the videoID enjoy.
To clarify, would you like the User-Provided Name
to match exactly validFirstName & " " & validLastName
or validLastName & ", " & validFirstName
? If that’s the case, the conditional formatting rule could be written as shown below.
=OR(
SUMPRODUCT(--(A1=(Checklist!$B$2:$B$9999&" "&Checklist!$A$2:$A$9999)))>0,
SUMPRODUCT(--(A1=(Checklist!$A$2:$A$9999&", "&Checklist!$B$2:$B$9999)))>0
)
I'm sorry to answer my own question. After contacting support and getting an answer, AnyLogic has a known bug in the Release block.
Hope they will solve it soon.
You should use pt, not px. Otherwise, Excel is forced to convert to pt on its own.
Take a look at this articule. This issue is related to metadata streaming, by default Nextjs is sending metadata after some chunks and adding them in the body.
htmlLimitedBots is a solution or using metadata objects.
https://neuralcovenant.com/2025/06/the-metadata-streaming-controversy-in-next.js-15.1-/
Although not perfect, one alternative I found to work quite well was setting the accessibility label for the backgroundView
of the collectionView/tableView. At least in my case, it always got focus before the first cell (I suspect due to empty-space paddings shifting it), and next it would always focus on the first cell.
.grid-element:empty {
display: none;
}
Element without children will have display:none
and gap
will not be applied for this element
To prevent RStudio from hanging when GitHub copilot was in use, I switched off automated copilot completions by going here in RStudio:
Tools --> Global Options --> Copilot
Then, I left Enable GitHub copilot
ticked, but switched Show Copilot code suggestions
from Automatically
to Manually (Ctrl + Backslash)
.
This means that whenever I want to use completions, I can just press Ctrl + Backslash after the comment/ instruction / piece of code.
If you just need a quick conversion without installing Jupyter, try this online tool:
👉 https://code-format.com/tool/converter_ipynbtopy
Perfect if you’re lazy and on a different PC without Jupyter installed and just want to check a notebook quickly.
I'm adding an updated answer to this using tools from later versions of .Net (8 and 9). The previous solution from @enet served well, but the new approach is done completely in C# without needing to rely on JS or browser rendering at all. Much more streamlined.
It relies on HtmlRenderer
, which takes Razor component (componentType
in this example) and a dictionary of all parameters. It also needs access to both your service provider and logger factory.
This is the invoking method I use throughout my apps, usable both as a <T>
generic and with Type
as a parameter (with some simplifications for this example).
public static async Task<string> RenderTemplate<T>(Dictionary<string, object?> parameters, IServiceProvider serviceProvider) where T : IComponent, IEmailTemplateComponent
{
return await RenderTemplate(typeof(T), parameters, serviceProvider);
}
public static async Task<string> RenderTemplate(Type componentType, Dictionary<string, object?> parameters, IServiceProvider serviceProvider)
{
if (!typeof(IComponent).IsAssignableFrom(componentType))
{
throw new ArgumentException($"Type {componentType.Name} must implement IComponent.", nameof(componentType));
}
ILoggerFactory loggerFactory = serviceProvider.GetRequiredService<ILoggerFactory>();
await using var htmlRenderer = new HtmlRenderer(serviceProvider, loggerFactory);
return await htmlRenderer.Dispatcher.InvokeAsync(async () =>
{
var parameterView = ParameterView.FromDictionary(parameters);
var output = await htmlRenderer.RenderComponentAsync(componentType, parameterView);
string htmlString = output.ToHtmlString();
return htmlString;
});
}
Here is an example method call:
string renderedEmail = await ComponentRenderer.RenderTemplate<InspectionEmailTemplate>(
new Dictionary<string, object?>() { { nameof(InspectionEmailTemplate.Project), project },
{ nameof(InspectionEmailTemplate.Inspection), inspection},
{ nameof(InspectionEmailTemplate.SubmittingUserFullName), args.SubmittingUser},
{ nameof(InspectionEmailTemplate.comment), args.comment} },
_serviceProvider);
See docs for more details:
If you have a NavigationManager
, you can do
var absoluteUri = navigationManager.ToAbsoluteUri(relativeUri)
Consider performing a HitTest to accurately determine when the mouse enters your Canvas bounds
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
MouseMove += OnMouseMove;
}
private void OnMouseMove(object sender, MouseEventArgs e)
{
// Retrieve the coordinate of the mouse position.
Point point = e.GetPosition((UIElement)sender);
// Perform the hit test against a given portion of the visual object tree.
HitTestResult hittestresult = VisualTreeHelper.HitTest(CanvasControl, point);
if (hittestresult != null)
{
// Perform action on hit visual object.
}
}
}
Take the time and read this fantastic document which details how to HitTest the Visual layer
In my case I was setting the rows and columns with flex and somehow sticky didn't work. When I removed flex styling it worked.
I know its so long since question is posted, still if anyone is looking for try @flixsrota/player here https://dub.sh/7SKzYvE
I built it just for this, and its straight forward, install and use.
Seems like this was a bug in macOS. I cannot reproduce this anymore with macOS 26.
Linusb documentation says to use libusb_set_interface_alt_setting instead of formulating your own control transfer to do it:
https://libusb.sourceforge.io/api-1.0/group__libusb__dev.html#ga4858ad4f0f58fd1dc0afaead1fe6479a
I had the same issue during migration to SPFx 1.21.1
See here: https://github.com/sharepoint/sp-dev-docs/issues/10396
Faced a similar issue with my C# code in VS2022. Fixed it by commenting out this line in Development Environment:
app.UseResponseCompression();
You can name your sprite and check for the position and then remove it from memory
override func update(_ currentTime: TimeInterval) {
for node in children {
if node.name == "wbc" {
if node.position.y < frame.minY - 50 {
node.removeFromParent()
}
}
}
}
I am not aware of a better answer than the process I am about to suggest.
Inside every cy.get().should().then() set of commands where I need information to be used significantly further down the test, I use cy.writefile to store the data.
Then later where this data is then required I use cy.readfile. It's chunky but it works. Example Below:
describe('Test Group',{defaultCommandTimeout: 400000}, () => {
//describe('Facit Tibi - Collage Page Elements Process',{defaultCommandTimeout: 5000}, () => {
it('TestName', () => {
//GLOBAL Files Created - Standard Names
var arrFoundPeriod = Cypress.spec.name.split(".");
var strFileNamePrefix = arrFoundPeriod[0];
//FILES TO WRITE TO AND READ TO
const saveSpecialData = `cypress/results/data/${strFileNamePrefix}.SpecialData.txt`;
var strSpecialData = "First Line of Special Data:This Works But May Not Be The Best Answer"
cy.writeFile(saveSpecialData, strSpecialData);
cy.get(`*`)
.should(()=>{})
.then(elm => {
var arrFoundPeriod = Cypress.spec.name.split(".");
var strFileNamePrefix = arrFoundPeriod[0];
const saveSpecialData = `cypress/results/data/${strFileNamePrefix}.SpecialData.txt`;
cy.readFile(saveSpecialData).then((strOrgText) => {
var strMoreSpecialData = "When You Find A Better Answer Please Let Me Know";
var strNewText = `${strOrgText} ${strMoreSpecialData}`;
cy.writeFile(saveSpecialData, strNewText);
})
})
})
})
To run a spring boot application, you click the button when you have your main class (class with main method) in focus. However it is not so often I got this open, so you can set the IDE to run it automatically when you press run. Here is how.
Click on the button in the top stating "current file" and select the option "Edit Configurations..."
Press the "+" button and select "Application", to make a new application configuration.
Give your run configuration a name and then click on the main class field, to select your main class.
Select you main class and press ok to all dialogs.
You can now press the run button or use the shortcut keys to run your application.
I'm trying to write a simple fuel consumption calculator with user inputs. I'm having trouble to make the calculation.
It should be:
100 x Fuel spent liters(L) ÷ Kilometers (km) driven
I've done inputs and tried different types of calculations, but nothing is working. Here is what I have so far on my index view:
<h1>Fuel Consumption Calculator</h1> <div class="calculator"> <div class="form-group"> <label for="no1">Liters (l):</label> <input type="text" class="form-control" id="no1" /> </div> <div class="form-group"> <label for="no2">Kilometers driven: (km)</label> <input type="text" class="form-control" id="no2" /> </div> <input type="submit" value="Laske" name="tot"> <div class="form-group"> <label for="tot">Total:</label> <input type="text" class="form-control" id="tot" name="tot" /> </div> </div>
Do you guys have any tip?
For some ideas, you could look at kalkulatorpaliwa.com.pl to see how others approach fuel calculations!
Hey! Great start on the fuel calculator—it’s a fun project! The formula (100 x Fuel spent ÷ Kilometers) is right for liters per 100 km. The issue might be that your submit button isn’t tied to any calculation yet. Try adding this JavaScript in a <script> tag at the bottom of your view:
text
document.querySelector("input[name='tot']").onclick = function() {
let liters = parseFloat(document.getElementById("no1").value) || 0;
let km = parseFloat(document.getElementById("no2").value) || 0;
if (km > 0) {
let result = (100 * liters) / km;
document.getElementById("tot").value = result.toFixed(2) + " l/100km";
} else {
alert("Enter a valid distance!");
}
};
This should calculate the result when you click "Laske." For a more polished version, you could add a controller action with a POST method, but this should get you going. Let me know if it works or if you need more help!
Cheers!
I did it!
Since it wasn’t finding qtmodern I checked the path to the venv with poetry env info --path
I set a variable, $venvpath, in Powershell to the path to the venv and tried generating from the .py script again, with command
poetry run pyinstaller main.py --onefile --paths "$venvPath\Lib\site-packages" --hidden import=qtmodern --hidden-import=qtmodern.styles --hidden-import=qtmodern.windows
And now it’s getting past line 4 of main.py! Progress!
When I try to open the Storyboard Preview or run IBAgent-iOS
, I only get a black screen.
The log shows an error like this:
Encountered an error communicating with IBAgent-iOS.Failed to spawn IBAgent-iOS on iPhone 14 (iOS 16.2, Booting)Process spawn via launchd failed because device is not booted.Bad or unknown session: com.apple.CoreSimulator.SimDevice...
I tried deleting and recreating simulators, but the issue persisted with the iOS 16.2 Built-in runtime.
How can I fix this?
Answer:
This happens because the iOS 16.2 Built-in runtime that ships with Xcode was corrupted/incomplete.
Even if you recreate the simulators, IBAgent-iOS
cannot boot the device, which causes the black screen in Storyboard Preview.
The fix was to install a clean runtime.
Open Xcode → Settings → Platforms.
Click + and install another runtime, e.g. iOS 16.0 Simulator (or 16.4/17.0 if available).
Restart Xcode and then start it again. Now be happy.
Explanation (why this happens)
The iOS 16.2 Built-in runtime is bundled inside Xcode and cannot be removed.
If it becomes corrupted (CoreSimulator data issue), IBAgent-iOS
fails to boot and Storyboard Preview shows only black.
Installing another runtime provides a fresh, working copy of the simulator, which fixes the issue.
I've made a simple BaseTopSheetDialog with overridable contentView, you can see a full solution here.
In comparison to the original BottomSheet the behaviour is limited but enough for most use cases, including nested recyclers and complex gesture handling.
Example usage:
class ExampleTopSheetFragment : BaseTopSheetDialogFragment() {
override val contentLayoutId: Int = R.layout.layout_example_dialog_content
private val binding by binding(R.id.content) { LayoutExampleDialogContentBinding::bind } // change according to how you handle viewBinding
override fun isDraggable(): Boolean = true
override fun isCancelableOnTouchOutside(): Boolean = true
override fun onContentViewCreated(view: View, savedInstanceState: Bundle?) {
binding.close.handleDoubleClick { hide() }
binding.title.text = "Hello, World!"
}
/** Use as any other fragment dialog
private fun showTopSheet() {
ExampleTopSheetFragment().show(supportFragmentManager, ExampleTopSheetFragment::class.java.name)
}
*/
}
Short answer is your test class isn’t a Spring managed bean, so @Value never runs. Try using @SpringBootTest
as the class annotation.
@Component
is a Spring annotation, it marks a class as a candidate for component scanning, so Spring could register it as a bean if the application context is actually started.
But in a plain JUnit test (without @SpringBootTest
or @ExtendWith(SpringExtension.class)
for instance), there is no Spring context at all, so no scanning, no bean creation, no injection.
ffmpeg -i input.mp3 -ss START_TIME -to END_TIME -c copy output.mp3
for example to cut the audio file from 7 seconds to 4 minute 45 seconds ( 285 seconds)
ffmpeg -i input.mp3 -ss 7 -to 285 -c copy output.mp3
If you only apply transition-colors
to the body, then it will only work on the body. For it to work on every element, you need to add it to each element. But your CSS is too strong because it's unlayered.
TailwindCSS uses layers, which are ordered from weakest to strongest:
theme, base, components, utilities
!important
doesn't work for you for several reasons. One is that starting from v4, the exclamation mark has to be placed after instead of before. Another is that if you make something important, it also can't be overridden later.
To ensure proper behavior, I would place your style in either the theme
or the base
layer. Since it's strongly tied to theme switching, I would put it in the theme
layer:
@layer theme {
* {
@apply transition-colors duration-500;
}
}
Avoiding @apply
is recommended, and in light of that, I would put something like this in my code:
@layer theme {
* {
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
transition-timing-function: ease;
transition-duration: 500ms;
}
}
Related:
document.querySelector('button').addEventListener('click', () => {
document.documentElement.classList.toggle('dark');
});
<script src="https://unpkg.com/@tailwindcss/browser"></script>
<style type="text/tailwindcss">
/* changed the behavior of dark: (default: based on prefers-color-scheme) to work based on the presence of the .dark parent class */
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--color-pink: #eb6bd8;
}
@layer theme {
* {
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
transition-timing-function: ease;
transition-duration: 500ms;
}
:root, :host {
@variant dark {
--color-pink: #8e0d7a;
}
}
}
</style>
<button class="size-20 bg-pink dark:text-white">Click Here</button>
<div class="w-50 h-12 bg-purple-200 dark:bg-purple-900 dark:text-white">
Lorem Ipsum
</div>
For theme switching and handling, these questions are relevant:
light-dark()
var(--tw-light, ...) var(--tw-dark, ...)
*
and when should I use :root, :host
as the parent selector?@theme
or @theme inline
?Stackoverflow thank you for the dislikes - I don't get why but still.
Here is the answer:
The machine (in my case linux) has to use the DNS server of the MS AD. However since I only changed it in the /etc/resolf.conf on my linux machine this change was only termporary. When I restarted my linux machine, it changed it back to my router. This lead to the error message which in my mind is completely garbage since it doesn't really have anything to do with the actual problem...
A quick way to confirm if the machine uses the MS AD DNS: ping your domain - in my case ping schooliead.local
You don’t need setTimeout, cron, or Redis for delayed execution. Several event-driven and database-native options can handle this reliably:
RabbitMQ – delayed message exchange delivers events after a set delay.
Kafka – use a delay topic or connector pattern to forward messages after the delay.
AWS SQS – built-in per-message delay (up to 15 minutes) without extra server load.
Database scheduling – MySQL Event Scheduler, Postgres pg_cron, or MongoDB TTL indexes handle time-based triggers directly in the database.
Workflow engines – tools like Temporal or Durable Functions provide robust delayed workflows with retries and persistence.
If you do a new charge pattern that uses the One-time Charge Invoicing Approach and have your incoming charges use that pattern, that might get you what you want. In our setup, these charges do what you are describing and are not split across multiple invoices.
Copilot suggested a result. Posting answer for anyone else looking for an answer. In short hyperlinks are not allowed but button with an action to open url are ok:
{ "type": "ActionSet", "actions": [ { "type": "Action.OpenUrl", "title": "View Results", "url": "@{triggerBody()?['linkToResults']}" } ] }
Any updates on this? Seeing the same issue upgrading expo 52 -> 53
With recent bluez versions (5.83 here), hciconfig
is deprecated, and the approach to disable authentication is now: bluetoothctl agent NoInputNoOutput
When RefIn == True
, then you need to reflect the data before proceeding with the CRC calculation, ie. poly division in XOR arithmetic. Now how do you reflect your original message (00010011
)? For this it is important to know the data width:
For n = 2
bits, the reflected message is 00100011
For n = 4
bits, the reflected message is 10001100
For n = 8
bits, the reflected message is 11001000
And now you do poly division in XOR arithmetic.
If you append the CRC to the original message and repeat the calculation (poly division), you will get a so called residue. For certain CRC model parameters, the residue will always be the same for a valid message+CRC sequence.
There is a Python package (yacrc
1) which outputs detailed CRC calculation steps. This can help you better understand what happens under the hood.
Here is an example for your parameters:
# Install as: pip3 install yacrc
from yacrc import CRC
# When refin == True, data width must be specified!
obj = CRC(
width = 4,
poly = 0b0011,
init = 0b0000,
refin = True,
refout = True,
xorout = 0b0000,
data = 8,
optimize = False
)
### CALCULATE CRC FOR ORIGINAL MESSAGE
msg_1 = '00010011'
crc_1, steps_1 = obj.crc_steps(msg_1, appended = False)
print(f'\nORIGINAL MESSAGE:\n{steps_1}')
### CALCULATE CRC FOR ORIGINAL MESSAGE WITH APPENDED CRC
msg_2 = msg_1 + f'{crc_1:0{obj.width}b}'
crc_2, steps_2 = obj.crc_steps(msg_2, appended = True)
print(f'\nAPPENDED MESSAGE:\n{steps_2}')
### VERIFY RESIDUE
# Undo final XOROUT
residue_2 = crc_2 ^ obj.xorout
print(f'\nRESIDUE CHECK: {residue_2 == obj.residue}')
And here is the output of the above code:
CRC-4/G-704 has the same set of parameters
ORIGINAL MESSAGE:
======================
MODEL: CRC-4/
======================
MESSAGE 00010011
----------------------
REFIN 11001000
AUGMENT 110010000000
POLY 10011.......
-----.......
0101000.....
POLY 10011......
-----......
00111000...
POLY 10011....
-----....
0111100..
POLY 10011...
-----...
0110100.
POLY 10011..
-----..
01001..
POLY 10011.
-----.
000010
----
REFOUT 0100
----------------------
CRC = 0x4
======================
APPENDED MESSAGE:
==========================
MODEL: CRC-4/
==========================
MESSAGE 000100110100
--------------------------
REFIN 110010000010
AUGMENT 1100100000100000
POLY 10011.....,.....
-----.....,.....
0101000...,.....
POLY 10011....,.....
-----....,.....
00111000.,.....
POLY 10011..,.....
-----..,.....
0111100,.....
POLY 10011.,.....
-----.,.....
0110101.....
POLY 10011,.....
-----,.....
0100110....
POLY 10011.....
-----.....
0000000000
----
REFOUT 0000
--------------------------
CRC = 0x0
==========================
RESIDUE CHECK: True
1 Disclosure: I am the author of the yacrc
package.
If, like me, you are a Luddite you may prefer in globalusing.cs:
global using Assert = NUnit.Framework.Legacy.ClassicAssert;
It's been a while, that this topic was due, but I am looking as well for a JAVA implementation of a Shapiro-Wilk-Test. This seems to give something to start with:
Disambiguating Initial State vs Junction Pseudostates in UML State Machines
Initial State (Initial Pseudostate)
Marks where a state machine or composite state begins when first entered.
Shown as a filled black circle (●).
Has only outgoing transitions, no incoming ones.
Example: When an object is created, the machine starts from this point.
Junction Pseudostate
Used to merge or split multiple transitions for better diagram organization.
Shown as a small black circle with an outgoing arrow or a small black dot (but connected from multiple transitions).
Can have multiple incoming and outgoing transitions with guard conditions to choose the path.
Does not represent a starting point, just a decision/merge point.
In short:
Initial = starting point
Junction = decision/merge point between transitions
If you want, I can also give you a quick diagram example showing both side by side.
Do you want me to do that?
Tools
In Android Studio got to the Files-> Settings-> Editor-> General -> Change font size with Ctrl+Mouse Wheel in tick this option and below this also another two buttons for select for only current active editror or for all editors you can choose according to you and then click Apply .thats it now you can zoom in and zoom out your editor using Ctrl+mouse click.
When I try to open the Storyboard Preview or run IBAgent-iOS
, I only get a black screen.
The log shows an error like this:
Encountered an error communicating with IBAgent-iOS.Failed to spawn IBAgent-iOS on iPhone 14 (iOS 16.2, Booting)Process spawn via launchd failed because device is not booted.Bad or unknown session: com.apple.CoreSimulator.SimDevice...
I tried deleting and recreating simulators, but the issue persisted with the iOS 16.2 Built-in runtime.
**How can I fix this?
**
Answer:
This happens because the iOS 16.2 Built-in runtime that ships with Xcode was corrupted/incomplete.
Even if you recreate the simulators, IBAgent-iOS
cannot boot the device, which causes the black screen in Storyboard Preview.
The fix was to install a clean runtime.
Open Xcode → Settings → Platforms.
Click + and install another runtime, e.g. iOS 16.0 Simulator (or 16.4/17.0 if available).
Restart Xcode and then start it again. Now be happy.
Explanation (why this happens)
The iOS 16.2 Built-in runtime is bundled inside Xcode and cannot be removed.
If it becomes corrupted (CoreSimulator data issue), IBAgent-iOS
fails to boot and Storyboard Preview shows only black.
Installing another runtime provides a fresh, working copy of the simulator, which fixes the issue.
https://www.first.org/global/education
The FIRST Education Program is operated
Following the response to another post, using AxisDivider fixes the colorbar placement.
contour = ax.contourf(x, y, val, cmap='gist_yarg', extend='max',
levels=np.linspace(0, 0.1, 200))
divider = make_axes_locatable(ax)
cax = divider.append_axes("right", size="6%", pad=0.06)
cbar = fig.colorbar(contour, cax=cax, format='%.2f')
Just go to Nvidia control panel > system information > cuda core
In PowerShell:
$varYes=cmd /c "choice <nul 2>nul"
$varYes=($varYes -replace '[^a-zA-Z]')[0]
Then your takeown
command, with $varYes
in the place of whichever confirmation letter you would normally use.
@BJovke gives a nice answer that points at the truncated polynomial expansion as the key idea. This is a very standard approach in physics and maths. But still, why the magic number? The specific reason is the typical value of x. Let me explain.
The specific expansion being used is the https://en.wikipedia.org/wiki/Binomial_approximation . This is great for linearising small non-linear deviations from a default value. If you visit that Wiki page you'll find that you first need to write your real function in the form (1 + x)^a. But the inverse (really reciprocal) square root is x^(-1/2) so doesn't obviously have a suitable form for this -- there's no room for a + 1 offset on x.
Ah, but we could always write it as (b + x)^a then take out the b by division: b^a (1 + x/b)^a. You can also think of this as writing x in "natural units" of b.
For the reciprocal sqrt, a = -0.5, and so the first terms in the approximation are b^(-0.5) (1 - 0.5 x/b) = 1/sqrt(b) - 0.5 b^(-3/2) x. Note that this doesn't work for exactly b = 0, but 1/sqrt(x) is infinity for x = 0 so it's pretty reasonable that we can't actually go all the way to zero.
But, if you want to be valid in the vicinity of x = 0 then you want b as small as possible... i.e. b = 2^(-127) in a bit representation. Then that first term is sqrt(2^127) = 2^63.5. This makes sense: the default-best-guess term for reciprocal sqrt of a small x near that function's divergence at x = 0 is the sqrt of the largest representable number. And the long
integer approximation to that, interpreted as a float
, is the famous "magic constant". I've not checked, but I strongly suspect that the threehalfs
term that follows it is implementing that b^(-3/2) in the second term of the approximation.
A corollary to this is that if you know that your reciprocal sqrts will be applied to numbers far from zero, you can probably get a better approximation by setting b to their typical value instead. I guess in Quake's raytracing, the x's tended to be small for whatever reason.
Propagation begins as soon as the very first bit is put onto the wire.
Here’s why:
A network link (copper, fiber, wireless) carries signals at close to the speed of light in that medium.
When the sender starts transmitting, the first bit immediately begins to propagate down the wire toward the receiver.
The rest of the bits follow in sequence, they don’t wait for the whole packet to be ready.
It should be in the under Sources/.. wherever you saved your UE project.
Make sure that when you are creating a project, you make it a C++ project, and not a blueprint project. Though you can add C++ to BP projects later on.
Assuming the project is set up to compile C++, you should also be able to open the solution from the UEd, Tools >> Open Visual Studio.
I was working on a Laravel microservice project where task 1 sends a series of data to task 2. Task 2 saves it and sends it to task 3 with a separate service. It is pushed to task 3 correctly and without errors, but task 3 does not receive it. I tested it with Redis-CLI. The service that connects task 2 and 3 sends the data, which means the problem is not with task 2. My result was that task 3 has a problem with its subscriber. Thank you for your help :)
The init command no longer exists in v4. Consider checking the installation documentation that is most relevant to your project to integrate Tailwind v4.
If you are trying to use v3, ensure the version qualifier is used:
$ npm install -D tailwindcss@3 postcss autoprefixer
$ npx tailwindcss init -p
Restarting the phone, fixed it for me.
goto setiings then compiler then toolchain excutables. Then make code blocks auto detect the compiler
for eg path C:\Users\noby\Documents\w64devkit . Then click auto-detect. Then add bin, include,lib
folders in the system enviroment variables. The make file in w64devkit is make.exe, so change file name
Sometimes we want our hashes to be very evenly distributed and using a random mapping can help achieve this.
Say we want a fast lookup for some objects that have IDs between 1 and 100 (not necessarily 100 objects!). We can do this by putting them into some buckets, lets say we have 10 buckets. We can put IDs 1 to 10 in bucket 1, 11 to 20 in bucket 2, 21 to 30 in bucket 3 etc. Now if we want to retrieve ID 70 we know to look in bucket 7, a smaller search space.
We have used the IDs as our hash, but what if the IDs are not evenly distributed in this range? What if consecutive IDs are more common and only the IDs 31 to 50 appear? Then we will have 2 full buckets and 8 empty ones, it would be a quicker search if all ten buckets had 2 objects each. (Searching through a bucket of 2 objects is faster than searching a full bucket).
The solution to this is to shuffle the IDs around in a random way to avoid any bias towards any buckets.
We might have ID 1 becomes 34, ID 34 becomes 60, ID 60 becomes 14, and so on until every ID is mapped to a new ID uniquely. It means that whoever creates a hash only has to worry about uniqueness and not the even distribution of values.
The hashing function should not change for the lifespan of the data structure that uses it.
It is allowed to be generated differently at the time of the data structure's creation, but not allowed to change while it contains data.
A hash function should have such properties:
Identical key input should give us identical hash code output.
Different key input mostly give us different hash code output.
If there exist two different key inputs mapping to a same hash code output, it's called "Hash Collision".
As for your description, "identical key input may result in different hash code output", obviously the function DO NOT conform to Prop1. It cannot be treated as a hash function.
With concepts above known, we can go back to the questions.
A1: Basically it's not necessary to use a random seed in hash function. The general purpose of introducing randomness into a hash function is to improve the function's uniformity and try to avoid hash collision. You could use a random seed in an arbitrary way, generate something useful, as long as it makes your hash function "healthier".
(Actually, hash collision is theoretically inevitable, but we could decrease the possibility of its happening down to an acceptably lower level)
A2: That's a confusing question. You've lost the key, of course you'll lost the access to the data as a consequence.
Did you install the Crystal Reports Runtime (not Crystal Reports Designer)?
Did you make sure that the Service Pack (SP) level of the runtime matches the SP level used to develop the application?
Buatkan simulasi smart village degan tema smart people, smart government , smart economic, smart mobility, smart environment, smart living
I think this issue as same as when ios 14.0 is released. It's took long time of Flutter team to fix this. The issue of notification in simulator in iOS is already have in years ago. Now just using real device and waiting 😁
I ran into the same Issue, I removed :
using Microsoft.AspNetCore.Components;
it then worked perfectly...
Once you have merged these commits into your default branch (e.g., main, master) the issues will close automatically.
UPD: I have achieved it by switching to AG Grid
Is it a good practice to use markers for something like log ids which are different for each log and could be millions? I saw that using MarkerFactory.getMarker stores the markers in a map which would cause overhead, but there's MarkerFactory.getDetachedMarker which simply creates and returns the marker object.
Best regards,
Martin
may need to be used the XIAO_ESP32C3 firmware
see this https://github.com/nanoframework/Home/issues/1445#issuecomment-1999215765