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
you can run this command to delete "Python312" in PowerShell
python.exe -m pip uninstall pip
Adding to answer of @Marty
React now blocks javascript: URL as a security precaution. Github
Navigation to data: URLs is blocked in all modern browsers. MDN
Did you ever find out the fix to this? I am having the same issue!
Use Firebase Identity Platform’s email link sign-in with the new ActionCodeSettings instead of Dynamic Links. Configure the redirect in Firebase Console and handle the sign-in link directly in your app using
Kindly check the link for detail and video
https://dotnet-az.blogspot.com/2025/09/creating-executable-installer-exe-in.html
https://www.youtube.com/watch?v=gL0-AyfnBl4
For anyone else coming to this much later on, you can enable GlideAjax in your direct UI Pages by including the UI Script which initiates GlideAjax.
Include this HTML in the top of your UI Page template
<script type="text/javascript" src="/scripts/doctype/js_includes_doctype.jsx?v=09-08-2025_1328&lp=Wed_Sep_17_06_56_19_PDT_2025&c=13_273"></script>
I found this by looking at a UI Page with Direct=false and then using browser dev tools to search the sources for "GlideAjax =". Not a bullet proof way to find things, but it also helped me find the script for amb client.
http://www.example.com/members/me/profile/
use this pattern for redirecting dynamically
When you want to return to the home page rather than the previous screen, you can use the "Home" button or icon on the app or browser.
image is uint8, so the 1 + image happens in uint8 arithmetic. Therefore 256 becomes 0.
Also, that formula is different. This one reflects the original formula:
c = 255 / np.log(1 + np.max(image.astype(np.float32)))
log_transformed = c * np.log(1 + image.astype(np.float32))
log_transformed = np.clip(log_transformed, 0, 255).astype(np.uint8)
I am getting same error, i think it is something with the simulator i tested the app with simulator iphone 16 it works while it doesnt on iphone 17
For me the problem occured on the Sunmi T2s.
I was able to fix it by doing the following steps:
System > Developer Options > Default USB Configuration > PTP (enabled)
Hope that helps someone else out.
请问下,为什么laravel9老是提示不支持put方法,仅支持get/head方法,并且提示index.php中$request= request::capture()
大家有知道的,感谢🙏
The issue turned out to be with the version of react-grid-layout. So updated the version from 1.3.4 to 1.5.2 and the issue is resolved.
The elliptic package includes a suite of functionality for complex integration.
@less μ_model(period, vol_q, Q)
This will show function source code if it's defined in an included file. You need to provide actual parameters to let Julia detect what types it's calling.
Then it's vim. Use :q to exit.
A latent error is a hidden flaw in a system, process, or design that does not cause immediate harm but increases the risk of accidents or failures over time.
Example: In a workplace, if Health & Safety Software records hazards but does not automatically alert managers about overdue corrective actions, the issue remains unnoticed. While nothing happens at first, this hidden gap can eventually contribute to an accident when combined with other unsafe conditions.
For me, the issue was that I was referencing Key Vault Secrets in my local.settings.json file and I had not logged in with the correct user with az login before running my function. Logging in through az login with a user that had Secrets Get permission on the Key Vault resolved the problem for me. I also tried reinstalling azure-function-core-tools and AzureFunctionTools as per DA's response above so it may have been a combination
After researching, the only way I have been able to delete them is to install AWS CLI, configure it, and force a deletion with:
aws s3 ls
aws s3 rb s3://BUCKET_NAME --force
the error happens because shrinkResources is enabled without minifyEnabled, which Android does not allow. To fix this, open android/app/build.gradle and check both are set consistently in your release block, either disable both (minifyEnabled false and shrinkResources false) if you just want your build to succeed, or enable both (minifyEnabled true and shrinkResources true) if you want shrinking, in which case you must also include proper proguard-rules.pro to prevent Flutter or plugin code from being stripped out. if a plugin is forcing shrinkResources, you can disable it globally in gradle.properties with android.enableResourceShrinker=false. Which should ensure the build system sees a valid configuration and thus removing the error.
When you install with pip install "fastapi[standard]" it comes with some default optional standard dependencies.
Did the OP get there solution? To use the parameter from the GET request you would probably have to encode and store the full relative URL and parse it that way. Which could present problems depending on browser security.
I cannot help but think the OPs request wasnt to load a website in an iframe but to try to engage and dabble in some XSS or other nefarious things. Loading a php page in an iframe is easy. Trying to use parameters and arguments is a different kettle of PHISH.
In my case I started to get this error when I wanted to check the logs of my Next.js app in a EKS. The app page were loading but when the app API backend wanted to contact an external API it was failing, returning 502. I discovered that the NAT gateway for my cluster subnet was changed and the previous on was not available any longer. I had to change the route table for the subnets to point to the new NAT gateway. Once this was done, everything started working.
The reason for the error was a VPC network configuration change were the connection to external systems in the cluster was not working therefore causing fetching the logs from my PC to not be able to reach the pod even though I could list, get or describe Kubernetes resources.
Yes, the @Timestamp annotation is mandatory for @EventSourcingHandler methods in Axon Framework. While @EventHandler methods can automatically resolve Instant parameters to the event timestamp, @EventSourcingHandler methods require explicit annotation. Your current implementation with @Timestamp Instant requestedAt is correct and should be maintained.
//CORRECT USE - @Timestamp must be added
@EventSourcingHandler
public void on(FooEvent event, @Timestamp Instant requestedAt) {
// requestAt now contains the event's timestamp
}
Difference between @EventHandler and @EventSourcingHandler:
In @EventHandler methods, Axon automatically populates Instant parameters with the event timestamp.
In @EventSourcingHandler methods, the explicit @Timestamp annotation is required.
// CORRECT USAGE - @Timestamp must be added.
@EventSourcingHandler
public void on(FooEvent event, @Timestamp Instant requestedAt) {
// requestedAt now contains the event's timestamp.
}
Solution for test error:
Adding @Timestamp will now recognize the parameter, and the "No resource of type Instant" error will disappear.
Alternative solution (carrying timestamp within the event):
// Your Event class
public class FooEvent {
private Instant timestamp;
// getter/setter
}
// In EventSourcingHandler
@EventSourcingHandler
public void on(FooEvent event) {
Instant requestedAt = event.getTimestamp(); // Use the event's own timestamp
}
This may be a documentation oversight/ambiguity, but technically the correct behavior is to require @Timestamp annotation for @EventSourcingHandler. You should continue using your existing working code (with @Timestamp).
JavaFX developers use @Deprecated Java anotation and @deprecated Javadoc tag as solution for Preview Features in JavaFX.
For more info, see:
Again Thanks @Slaw: https://meta.stackoverflow.com/users/6395627/slaw
Late answer, but looks like there are multiple possible reasons why the storage grows steadily. Orphan replication slots created for all-tables publications pile up WAL content when the replica suddenly goes offline or idle. Also idle or low-writing databases cause "WAL jams". I have experienced a similar situation but using an AWS RDS Postgres as master, which comes with some hidden spice: heartbeat transactions. This blog describes nicely other cases: https://wolfman.dev/posts/pg-logical-heartbeats/
So, avoid:
Unmanaged subscription terminations, unused publications or replication slots
Idle replicas
Low transaction rates for extended periods
To drop a replica slot use:
SELECT pg_drop_replication_slot('replication_name');
CHECKPOINT;
you need to inject Reflector via @Inject :
constructor(@Inject(Reflector) private readonly reflector: Reflector) {}
worked perfectly
Disable Use non-modal commit interface
Run CMD as Administrator
then execute the following command:
sfc /scannow
after completed, restart the PC
Open Eclipse / Spring Tool Suite as Administrator
Following the issue I created on the react-google-maps repository, a PR has been made (not by me) and merged on the Terra Draw project : github.com/JamesLMilner/terra-draw/pull/650. The id will not be required anymore. In the meantime @bobskieee answer works.
Use a fixed string for secretKey to replace random genereated 20 length string.
'Dim mySecretKey As String = Me.GenerateRandomKey(20)
Dim mySecretKey As String = "JBSWY3DPEHPK3PXP"
Using random secretkey causing QR code added account is not reusable. Therefore, we need to scan the QR code every time at the OTP validation step.
Zero Knowledge Proof (ZKP) is an extremely powerful pairing of security and efficiency that makes them extremely useful for privacy-preserving applications. ZKP' security is rooted in hard mathematical assumptions and cryptography—so that one party can prove knowledge of information without revealing information itself.
At the performance level, there have been recent advances that hugely improve the scalability and speed of ZKP, especially with solutions like zk-SNARKs and zk-STARKs. These schemes minimize computational overhead while maintaining strong security guarantees. For example, zk-SNARKs provide short proofs that are simple to verify in a short period of time and enable uses like private blockchain transactions and identity verification.
However, performance can also vary depending on the application-specific ZKP protocol and instantiation. Some can require trusted setups, and some highlight transparency and quantum security. Generally speaking, the balance between performance and security in ZKP is also quickly improving, and they become viable for real-world application with a need for privacy and efficiency.
If you are searching for in-depth comparisons or implementation tips, I recommend exploring sources on zk-SNARKs, zk-STARKs, and ZKP scalability breakthroughs over the recent past.
The problem on my HP notebook was solved by installing several original HP hardware drivers for Windows! Using drivers installed by Windows Update system was not sufficient.
You can see this file :
vendor/symfony/http-kernel/Resources/welcome.html.php
But as yivi said, you can't edit this file, you have to create your own controller and template.
Can you check that you have a cache directory and a sessions directory in the storage/framework directory? If not, you will need to create them. I believe it is trying to cache the blade, but it has nowhere to do so.
I eventually figured out why I was getting the vague:
Error: SignerSign() failed.
(-2147467259/0x80004005)
The missing piece was permissions at the Trusted Signing account level.
Even though I was the Owner of the Azure subscription, it is not enough to actually sign. You must also have the Trusted Signing Certificate Profile Signer role assigned.
Once I added my user to the Trusted Signing account with the Trusted Signing Certificate Profile Signer role, the signing command started working immediately.
✅ Fix: Assign the user/service principal the Trusted Signing Certificate Profile Signer role on the Trusted Signing resource.
After that, my signtool post-build step was able to successfully sign both DLLs and the MSI installer.
Here is the source:
Search Converter.cs in the browser.
import React, { useEffect, useState } from "react";
// Simple single-file Social Media app prototype // - Tailwind CSS assumed to be available in the host project // - Paste this component into a Vite/CRA React project and render <SocialApp /> in App.jsx
const samplePosts = [ { id: 1, author: "Mango Shak", avatarLetter: "M", time: "2025-09-18", text: "Hello world! This is my first post.", image: null, likes: 3, comments: [ { id: 1, author: "Ami", text: "Nice post!" }, ], }, ];
function useLocalStorage(key, initial) { const [state, setState] = useState(() => { try { const raw = localStorage.getItem(key); return raw ? JSON.parse(raw) : initial; } catch (e) { return initial; } });
useEffect(() => { try { localStorage.setItem(key, JSON.stringify(state)); } catch (e) {} }, [key, state]);
return [state, setState]; }
export default function SocialApp() { const [posts, setPosts] = useLocalStorage("sm_posts", samplePosts); const [user, setUser] = useLocalStorage("sm_user", { name: "You", avatarLetter: "Y", });
const [newText, setNewText] = useState(""); const [newImage, setNewImage] = useState(""); const [query, setQuery] = useState(""); const [filter, setFilter] = useState("latest");
function addPost() { if (!newText.trim() && !newImage.trim()) return; const id = Date.now(); const post = { id, author: user.name, avatarLetter: user.avatarLetter || user.name.charAt(0).toUpperCase(), time: new Date().toISOString(), text: newText.trim(), image: newImage.trim() || null, likes: 0, comments: [], }; setPosts([post, ...posts]); setNewText(""); setNewImage(""); }
function toggleLike(postId) { setPosts( posts.map((p) => (p.id === postId ? { ...p, likes: p.likes + 1 } : p)) ); }
function addComment(postId, text) { if (!text.trim()) return; setPosts( posts.map((p) => p.id === postId ? { ...p, comments: [ ...p.comments, { id: Date.now(), author: user.name, text: text.trim() }, ], } : p ) ); }
function deletePost(postId) { setPosts(posts.filter((p) => p.id !== postId)); }
function updateProfile(name) { setUser({ ...user, name, avatarLetter: name.charAt(0).toUpperCase() }); }
const visiblePosts = posts .filter((p) => p.text.toLowerCase().includes(query.toLowerCase())) .sort((a, b) => { if (filter === "latest") return new Date(b.time) - new Date(a.time); if (filter === "oldest") return new Date(a.time) - new Date(b.time); return 0; });
return ( <div className="min-h-screen bg-gray-50 p-4 md:p-8"> <div className="max-w-4xl mx-auto"> {/* Header */} <header className="flex items-center justify-between mb-6"> <h1 className="text-2xl font-bold">Simple Social — Prototype</h1> <div className="flex items-center gap-3"> <div className="w-10 h-10 rounded-full bg-indigo-600 text-white flex items-center justify-center font-semibold">{user.avatarLetter}</div> <div className="text-sm text-gray-700">{user.name}</div> </div> </header>
{/* Composer */}
\<section className="bg-white p-4 rounded-2xl shadow mb-6"\>
\<textarea
value={newText}
onChange={(e) =\> setNewText(e.target.value)}
placeholder={\`What's on your mind, ${user.name}?\`}
className="w-full border-0 focus:ring-0 resize-none text-sm"
rows={3}
/\>
\<div className="mt-2 flex gap-2"\>
\<input
value={newImage}
onChange={(e) =\> setNewImage(e.target.value)}
placeholder="Image URL (optional)"
className="flex-1 text-sm border rounded px-2 py-1"
/\>
\<button onClick={addPost} className="px-4 py-2 bg-indigo-600 text-white rounded"\>Post\</button\>
\</div\>
\<div className="mt-3 text-xs text-gray-500"\>Tip: paste an image URL or write a short post.\</div\>
\</section\>
{/\* Filters/Search \*/}
\<div className="flex gap-3 items-center mb-4"\>
\<input
value={query}
onChange={(e) =\> setQuery(e.target.value)}
placeholder="Search posts..."
className="flex-1 border px-3 py-2 rounded"
/\>
\<select value={filter} onChange={(e) =\> setFilter(e.target.value)} className="border rounded px-2 py-2"\>
\<option value="latest"\>Latest\</option\>
\<option value="oldest"\>Oldest\</option\>
\</select\>
\<button
onClick={() =\> {
const name = prompt("Enter display name:", user.name) || user.name;
updateProfile(name);
}}
className="px-3 py-2 border rounded"
\>
Edit Profile
\</button\>
\</div\>
{/\* Posts \*/}
\<main className="space-y-4"\>
{visiblePosts.length === 0 && (
\<div className="text-center text-gray-500 py-8"\>No posts yet — be the first!\</div\>
)}
{visiblePosts.map((post) =\> (
\<article key={post.id} className="bg-white p-4 rounded-2xl shadow"\>
\<div className="flex gap-3"\>
\<div className="w-12 h-12 rounded-full bg-indigo-600 text-white flex items-center justify-center font-semibold"\>{post.avatarLetter || post.author.charAt(0)}\</div\>
\<div className="flex-1"\>
\<div className="flex items-center justify-between"\>
\<div\>
\<div className="font-semibold"\>{post.author}\</div\>
\<div className="text-xs text-gray-500"\>{new Date(post.time).toLocaleString()}\</div\>
\</div\>
\<div className="text-xs"\>
\<button onClick={() =\> deletePost(post.id)} className="px-2 py-1 rounded hover:bg-gray-100"\>Delete\</button\>
\</div\>
\</div\>
\<p className="mt-3 whitespace-pre-wrap"\>{post.text}\</p\>
{post.image && (
\<div className="mt-3"\>
\<img src={post.image} alt="post" className="w-full max-h-64 object-cover rounded-lg" /\>
\</div\>
)}
\<div className="mt-3 flex items-center gap-3 text-sm text-gray-600"\>
\<button onClick={() =\> toggleLike(post.id)} className="px-2 py-1 rounded hover:bg-gray-100"\>👍 Like ({post.likes})\</button\>
\<CommentBox post={post} onAddComment={(t) =\> addComment(post.id, t)} /\>
\</div\>
{post.comments.length \> 0 && (
\<div className="mt-3 border-t pt-3"\>
{post.comments.map((c) =\> (
\<div key={c.id} className="text-sm mb-2"\>
\<span className="font-semibold"\>{c.author}\</span\>: {c.text}
\</div\>
))}
\</div\>
)}
\</div\>
\</div\>
\</article\>
))}
\</main\>
{/\* Footer / small profile settings \*/}
\<footer className="mt-8 text-center text-gray-500 text-xs"\>Prototype — data saved locally in your browser.\</footer\>
</div>
</div>
); }
function CommentBox({ post, onAddComment }) { const [open, setOpen] = useState(false); const [text, setText] = useState("");
return ( <div> <button onClick={() => setOpen((s) => !s)} className="px-2 py-1 rounded hover:bg-gray-100">💬 Comment</button> {open && ( <div className="mt-2 flex gap-2"> <input value={text} onChange={(e) => setText(e.target.value)} placeholder="Write a comment..." className="flex-1 border rounded px-2 py-1 text-sm" /> <button onClicimport React, { useEffect, useState } from "react";
// Simple single-file Social Media app prototype // - Tailwind CSS assumed to be available in the host project // - Paste this component into a Vite/CRA React project and render <SocialApp /> in App.jsx
const samplePosts = [ { id: 1, author: "Mango Shak", avatarLetter: "M", time: "2025-09-18", text: "Hello world! This is my first post.", image: null, likes: 3, comments: [ { id: 1, author: "Ami", text: "Nice post!" }, ], }, ];
function useLocalStorage(key, initial) { const [state, setState] = useState(() => { try { const raw = localStorage.getItem(key); return raw ? JSON.parse(raw) : initial; } catch (e) { return initial; } });
useEffect(() => { try { localStorage.setItem(key, JSON.stringify(state)); } catch (e) {} }, [key, state]);
return [state, setState]; }
export default function SocialApp() { const [posts, setPosts] = useLocalStorage("sm_posts", samplePosts); const [user, setUser] = useLocalStorage("sm_user", { name: "You", avatarLetter: "Y", });
const [newText, setNewText] = useState(""); const [newImage, setNewImage] = useState(""); const [query, setQuery] = useState(""); const [filter, setFilter] = useState("latest");
function addPost() { if (!newText.trim() && !newImage.trim()) return; const id = Date.now(); const post = { id, author: user.name, avatarLetter: user.avatarLetter || user.name.charAt(0).toUpperCase(), time: new Date().toISOString(), text: newText.trim(), image: newImage.trim() || null, likes: 0, comments: [], }; setPosts([post, ...posts]); setNewText(""); setNewImage(""); }
function toggleLike(postId) { setPosts( posts.map((p) => (p.id === postId ? { ...p, likes: p.likes + 1 } : p)) ); }
function addComment(postId, text) { if (!text.trim()) return; setPosts( posts.map((p) => p.id === postId ? { ...p, comments: [ ...p.comments, { id: Date.now(), author: user.name, text: text.trim() }, ], } : p ) ); }
function deletePost(postId) { setPosts(posts.filter((p) => p.id !== postId)); }
function updateProfile(name) { setUser({ ...user, name, avatarLetter: name.charAt(0).toUpperCase() }); }
const visiblePosts = posts .filter((p) => p.text.toLowerCase().includes(query.toLowerCase())) .sort((a, b) => { if (filter === "latest") return new Date(b.time) - new Date(a.time); if (filter === "oldest") return new Date(a.time) - new Date(b.time); return 0; });
return ( <div className="min-h-screen bg-gray-50 p-4 md:p-8"> <div className="max-w-4xl mx-auto"> {/* Header */} <header className="flex items-center justify-between mb-6"> <h1 className="text-2xl font-bold">Simple Social — Prototype</h1> <div className="flex items-center gap-3"> <div className="w-10 h-10 rounded-full bg-indigo-600 text-white flex items-center justify-center font-semibold">{user.avatarLetter}</div> <div className="text-sm text-gray-700">{user.name}</div> </div> </header>
{/* Composer */}
\<section className="bg-white p-4 rounded-2xl shadow mb-6"\>
\<textarea
value={newText}
onChange={(e) =\> setNewText(e.target.value)}
placeholder={\`What's on your mind, ${user.name}?\`}
className="w-full border-0 focus:ring-0 resize-none text-sm"
rows={3}
/\>
\<div className="mt-2 flex gap-2"\>
\<input
value={newImage}
onChange={(e) =\> setNewImage(e.target.value)}
placeholder="Image URL (optional)"
className="flex-1 text-sm border rounded px-2 py-1"
/\>
\<button onClick={addPost} className="px-4 py-2 bg-indigo-600 text-white rounded"\>Post\</button\>
\</div\>
\<div className="mt-3 text-xs text-gray-500"\>Tip: paste an image URL or write a short post.\</div\>
\</section\>
{/\* Filters/Search \*/}
\<div className="flex gap-3 items-center mb-4"\>
\<input
value={query}
onChange={(e) =\> setQuery(e.target.value)}
placeholder="Search posts..."
className="flex-1 border px-3 py-2 rounded"
/\>
\<select value={filter} onChange={(e) =\> setFilter(e.target.value)} className="border rounded px-2 py-2"\>
\<option value="latest"\>Latest\</option\>
\<option value="oldest"\>Oldest\</option\>
\</select\>
\<button
onClick={() =\> {
const name = prompt("Enter display name:", user.name) || user.name;
updateProfile(name);
}}
className="px-3 py-2 border rounded"
\>
Edit Profile
\</button\>
\</div\>
{/\* Posts \*/}
\<main className="space-y-4"\>
{visiblePosts.length === 0 && (
\<div className="text-center text-gray-500 py-8"\>No posts yet — be the first!\</div\>
)}
{visiblePosts.map((post) =\> (
\<article key={post.id} className="bg-white p-4 rounded-2xl shadow"\>
\<div className="flex gap-3"\>
\<div className="w-12 h-12 rounded-full bg-indigo-600 text-white flex items-center justify-center font-semibold"\>{post.avatarLetter || post.author.charAt(0)}\</div\>
\<div className="flex-1"\>
\<div className="flex items-center justify-between"\>
\<div\>
\<div className="font-semibold"\>{post.author}\</div\>
\<div className="text-xs text-gray-500"\>{new Date(post.time).toLocaleString()}\</div\>
\</div\>
\<div className="text-xs"\>
\<button onClick={() =\> deletePost(post.id)} className="px-2 py-1 rounded hover:bg-gray-100"\>Delete\</button\>
\</div\>
\</div\>
\<p className="mt-3 whitespace-pre-wrap"\>{post.text}\</p\>
{post.image && (
\<div className="mt-3"\>
\<img src={post.image} alt="post" className="w-full max-h-64 object-cover rounded-lg" /\>
\</div\>
)}
\<div className="mt-3 flex items-center gap-3 text-sm text-gray-600"\>
\<button onClick={() =\> toggleLike(post.id)} className="px-2 py-1 rounded hover:bg-gray-100"\>👍 Like ({post.likes})\</button\>
\<CommentBox post={post} onAddComment={(t) =\> addComment(post.id, t)} /\>
\</div\>
{post.comments.length \> 0 && (
\<div className="mt-3 border-t pt-3"\>
{post.comments.map((c) =\> (
\<div key={c.id} className="text-sm mb-2"\>
\<span className="font-semibold"\>{c.author}\</span\>: {c.text}
\</div\>
))}
\</div\>
)}
\</div\>
\</div\>
\</article\>
))}
\</main\>
{/\* Footer / small profile settings \*/}
\<footer className="mt-8 text-center text-gray-500 text-xs"\>Prototype — data saved locally in your browser.\</footer\>
</div>
</div>
); }
function CommentBox({ post, onAddComment }) { const [open, setOpen] = useState(false); const [text, setText] = useState("");
return ( <div> <button onClick={() => setOpen((s) => !s)} className="px-2 py-1 rounded hover:bg-gray-100">💬 Comment</button> {open && ( <div className="mt-2 flex gap-2"> <input value={text} onChange={(e) => setText(e.target.value)} placeholder="Write a comment..." className="flex-1 border rounded px-2 py-1 text-sm" /> <button onClick={() => { onAddComment(text); setText(""); }} className="px-3 py-1 border rounded text-sm" > Send </button> </div> )} </div> ); }
k={() => { onAddComment(text); setText(""); }} className="px-3 py-1 border rounded text-sm" > Send </button> </div> )} </div> ); }
The error occurs when my WSO2 installation path contains space,WSO2 Carbon framework has problems handling file paths with spaces on Windows systems.
Solution
C:\tools\wso2am-4.5.0.23\cmd /c 'dir /x "C:\Program Files"' then you can run from current problématique path like so: C:\PROGRA~1\wso2is-5.11.0\bin> api-manager.batYour problem is most likely: the listening port or security group configuration does not match. Although the target group is healthy, the actual requested port/protocol when the ALB forwards is incorrect, or the instance only listens on localhost
In my case, to address the previous iOS issue, I was using.
env(safe-area-inset-bottom)
Now it seems like Apple has fixed this issue, so if any of you are using this, please remove it
I’ve seen a few people run into the same issue when working with the Spotify API. Honestly, it can be a bit tricky, but that’s one of the things I like about Spotify. Once you figure it out, the amount of data you can pull from playlists is amazing. I’ve used it myself just to explore artists and albums more deeply, and it really shows how powerful Spotify is beyond just listening to music.
In my case, I add -Dfile.encoding=UTF-8 to that particular node's JVM Options.
Workaround/Best-practice: type(None) instead of directly accessing the dunder-attribute with None.__class__. Thanks @chepner from the comments of the question.
class MyClass
{
bool operator <(const MyClass& rhs) const
{
return this->key < rhs.key;
}
}
Set needs operator< to be const
- For set, the comparator (operator<) must be a const member function because the set needs to compare elements without modifying them.
Your policy failed because many EC2 APIs don't support resource-level permissions. Changing it to "Resource": "*" will fix the issue. If the policy is limited to a specific region, use a Condition. If you want to save time, simply attach the official policy: AmazonEC2FullAccess
Ceate Base Module , manager save public resouce or code....
You need to specify HTTP version as HTTP_1_1, the default is HTTP_2
I may be late to the party but this error also manifests when your user is not attached to a user group within Elasticache. And then your group needs to be attached to your Valkey cache as well.
Hope it helps.
I’ve already tried all the steps you mentioned (including checking the keys, the Gateway Error Log, and replicating the request in /IWFND/GW_CLIENT). I could also see that the request was reaching CHANGESET_PROCESS, and I even attempted to handle the logic there, but it still didn’t solve the issue.
What finally worked was disabling batch requests by setting:
oODataModel.setUseBatch(false);
This way the request is sent as a plain POST instead of being grouped in a batch with PUT or MERGE.
While this is more of a workaround than a real fix, it allowed the service to process the request correctly.
literally all i had to do was specify --enable-multilib when compiling gcc
I use node fs to read bundled dist/index.js, and overwrite the content with the export paths I need. Problem solved!
In my case the problem was that I was using dots in the test names. Here is a github issue describing this.
If Redshift kills an idle session, your next query will fail with an error (usually OperationalError or InterfaceError). The clean way to handle this in SQLAlchemy is to enable pool\_pre\_ping=True, which sends a quick SELECT 1 before using a connection and swaps out dead ones automatically. Pair that with pool\_recycle set to less than the idle timeout (e.g., 300 seconds for a 10-minute timeout) to proactively refresh connections before they expire. Keep sessions short-lived and add retry logic for critical queries. One gotcha: if a connection dies mid-transaction, you'll still get an error since transactions can't transparently recover - you'll need to rollback and retry. In short: pool\_pre\_ping handles dead connections, pool\_recycle prevents them from dying, and retries cover the edge cases.
I have issue , my eb is in intranet environment so it can't do npm installl by itself.
similar issue happened for my angular app so i added the node modules together with zip file ,
I have created the two package.json , one for node json only kept in parent folder ,
then i have done npm install locally for parent folder, less node modules installed.
then zipped together dist build file , server.js and nodemodule for angular it was working,But similar thing in nextjs i am not sure
In case the string we are splitting is delimiter itself. Then split results in an empty list.
String emptyString = "";
String[] result = emptyString.split(""); // Delimiter is also an empty string
System.out.println(result.length); // Output: 0
The Spring Boot Assistant plugin can help you, as it allows IntelliJ Community to see application.properties and application.yml as Spring configuration files, highlighting in-use properties in orange.
-----BEGIN CERTIFICATE-----
Compatibility
Father-in-law
Businesswoman
Counterproductive
Chemotherapeutic
Charlottesville
Authoritative
Nonspecific/Family-friendly
Acres/uT1ceUmwJinyOPR1Bpj431+Chromatographic/Airbag
Overshadowed/Categorisation
Varietal/Baobab/Pre-qualified+Anniversaries
Accomplishments+Ohio
wage
-----END CERTIFICATE-----
https://3222463673-files.gitbook.io/\~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM2pnrVN
As of Godot 4.0, TileMapLayers can tile nodes as if they were tiles:
Create your scene and save it. Open the tileset editor, hit the plus icon, and create a new Scene Collection. Keep in mind this comes with a higher computational cost than atlases. The documentation page is here.
I hope this helped!
This usually happens because your GitHub Actions IAM role isn’t mapped to a Kubernetes RBAC user in EKS. To fix it, confirm which IAM identity is being used with `aws sts get-caller-identity` and `kubectl whoami`, then check the `aws-auth` ConfigMap with `kubectl get configmap aws-auth -n kube-system -o yaml`. If your GitHub Actions IAM role isn’t listed there, add it. That’s the step that wires up authentication properly.
You can use jupyter-cpp-kernel or xeus-cling to write cpp code, but neither of them supports magic like %%cpp.
The error ModuleNotFoundError: No module named 'requests' is because a dependency for the install is not there. My guess is when installing directly with pip for the main version, dependencies are installed automatically.
Try running pip install requests in your environment before the GitHub pip install.
Your local pointer appeared to work because it was likely pointing to a RAM copy of the data that the compiler created temporarily! The global pointer failed because it was trying to directly point to PROGMEM with a regular data pointer type.
The key insight is that all pointers to PROGMEM data should themselves be declared with PROGMEM to ensure they use the correct memory space and pointer representation.
I had the password fed wrong! After fixing the password, the pipeline worked well
Try adding title and description props to the <Marker /> component like this:
<Marker
coordinate={{
latitude: -20.213090469552533,
longitude: -40.266256965125116,
}}
pinColor="red"
title="Test title"
description="Test description"
>
Find a solution. I had to add Filament and Livewire assets on heroku deployment in my composer.json
"post-install-cmd": [
"php artisan filament:assets",
"php artisan livewire:publish --assets"
],
I'm not sure if this would help you on Restrict Content Pro but may help others.
I am running Profile Builder Basic but fooled around with Restrict Content Pro in the early research phases of site build out.
The solution for me was to create a NEW page with no copied over elements and rebuild it.
Background:
After going around in circles of staging website, disabling all plugins, and caching services, I still couldn't find what was causing it. My plan was to try and put people through the native Wordpress login/logout screen. However, after that plan failed as they were still experiencing the logged in cookie on that one page that as my culprit (/portal).
The plugin I was using was Profile Builder Basic. However, in my early development stages I was fooling around with Restrict Content Pro. My hypothesis is that something under the hood is misaligning or a leftover fragment from that plugin.
After logging out on the new /portal-2 page, and when I revisit the /portal page, it was identifying I was logged out and not sending me in a loop showing I'm logged in. :D
warehouses.filter((warehouse, index, self) =>
index === self.findIndex((w) => (
w.id === warehouse.id
))
)
See CodeTracking.jl, specifically its @code_string.
I'm here because this error is apparently not only for the firebases that require xcode 16+.
I've had to retreat to firebase 12.5 from 12.9 (which 12.9 is supposed to be okay with xcode 15.4 but that had problems too)
using Unity 6000.0.36f1 (but also got this error on 6000.2.2f1)
using xcode 15.4
I create a new project, import the 12.5 firebases (auth, cloud functions, firestore, storage)
and build to iOS and on building in xcode it throws the same Cannot find type 'sending' in scope error.
I'm guessing its something to do with some Swift setting somewhere or other in either the Unity side on postprocess or some random swift setting in xcode after its built from Unity. I just cant seem to find any information about it.
So if you're a Swift-ie (lolz)/someone who can help, we need you!
PS: as a Unity dev for over a decade, lemme be the nth person to say this hodgepodge of xcode, unity, cocoapods, java, firebase package support is so ridiculous..!
I have tried the code
import requests
headers={"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36"}
res=requests.get("https://finance.yahoo.com/quote/AAPL/financials?p=AAPL",headers=headers)
res.status_code
but it fails and gives the
404
Is any way to fix this problem? Thank you!
Its due to a font mishap trying to draw the bullet point, I fixed it by removing the fontawesome package.
Possibility: You executed the go application indirectly via godotenv from the command line. And perhaps Command-C or Ctrl-C is only killing godotenv.
Maybe you used: godotenv -f ./env/local.env go run cmd/blah/main.go to start your application.
Do you recall how you started your app?
how many times ?
https://drive.google.com/file/d/1MSpaZIv_T9Gnv_8nn3Kk5uR1GXfDM0zM/view?usp=drivesdk
it's seems to be corrupted.
This can also happen if your parameter type was changed to String when the value is not a string. (My editor did that for me...)