use:
```rust {.line-numbers}
use std::io;
fn main() {
println!("Guess the number!");
println!("Please input your guess.");
let mut guess = String::new();
io::stdin()
.read_line(&mut guess)
.expect("Failed to read line");
println!("You guessed: {}", guess);
}
```
If you want to export only stored procedures and functions, this is the script you should run
mysqldump --routines --triggers --no-create-info --no-data --no-create-db --skip-opt -u [user] -p [database] > stored-triggers.sql
You can remove any parameter added to fit your expectations. 💪
Will this keep my cheap wireless mouse from turning off, or is that something that is controlled from the mouse's circuit board? (My new mouse keeps shutting off after a couple minutes or so of inactivity and it is getting frustrating.[it is 3d printed with cheap guts inside :/ ])
Today I had time to further investigate...
@Jeff Zola: Yes, we checked the release notes. But nothing could explain what was the problem triggered. The option to add Encrypt=False
to the connection string is not valid for Oracle databases.
@Jalpal Panchal: The parameterless constructor is not the problem, I've tried it but no success.
I've made updates for the Devart and EF packages:
At this moment it's not clear to me if this is a problem of EF, Devart or if it is because of not updating to .Net 9.
But thanks anyway for your suggestions!
It's all fine. You can now find your cert under "User certificates".
Now set up the proxyserver and port in the wifi connection settings and browse a site like stackoverflow.com or github.com with a browser. You should see the decrypted traffic; delete the certicate and you'll be no longer able to see the decrypted traffic.
btw, having a User certificate installed usually doesnt help with apps, esp. when they come from big players like facebook, google, TikTok, etc.
Then you'd need to install a root certificate (yep, you ll need a rooted phone) and/or start using tools like frida.re, that actively can break into apptraffic that are secured with certificate pinning (means, the app doesnt accept any user or root certificate except their own).
KernelSU is pretty cool if you wanna dive into rooting...
@ben-bolker answer seems to work well, but is there any way to also add a legend for all or each pannel? Thanks!
Thanks for the replies, I thought about a version problem too, hopefully, a new expo version fixed the problem for me.
This is the key line:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
You can't install the packages because you don't have a C/C++ compiler.
On Github profile page, your commits are visible when:
At some point you added a new revision which is colliding with the webhook. It's safe to just remove the MutatingWebhookConfiguration from the istio-revision-tag-default.
https://www.youtube.com/watch?v=ovNSAvA401c Watch this video, this was what helped me
Remove
dart pub global deactivate <package>
To see installed global packages:
dart pub global list
your path system must be change you must use python 3.12.8
You can use the link below
$names = ['Name1', 'Name2', 'Name1', 'Name2', 'Name3', 'Name2', 'Name1', 'Name3'];
$uniqueNames = array_unique($names);
$reindexedArray = array_values($uniqueNames);
print_r($reindexedArray);
Output : Array ( [0] => Name1 [1] => Name2 [2] => Name3 )
Install pip: Download get-pip.py and run python get-pip.py to install pip. Update PATH: Add Python’s Scripts folder to your PATH (e.g., C:\dev\tools\python-3.13.2\Scripts). Verify pip: Run python -m pip --version to check if pip works. Install packages: Use python -m pip install gitpython to install packages.
You need to download and install Python from here.
AFAIK, you almost never need to compile Python on Windows.
Programs installed on Windows are usually accessible in GitBash, so you just need to install Python first.
Then follow the installation instructions for pip.
Finally, open Git Bash and run pip install GitPython
RDS now has data API, and data API can be used. However, data API has a lot of limitations like only scram-sha-256 authentication is supported for Postgres Aurora 14 and up. Read the docs page for details.
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html
One method is to have an if statement witin the for loop that checks on every iteration of the loop if a condition is satisfied. If it is, the loop continues, if not you can set the for loop variable to be your endpoint during the else statement.
Look at the focusNode
property of TextFormField
.
Basically you have to declare a variable FocusNode _focusNode = FocusNode();
Then ask for focus using _focusNode.requestFocus();
I had this issue and went into the server and added the following Additional Apache Directives
IfModule mod_headers.c Header set Access-Control-Allow-Origin "*" /IfModule
and it worked instantly
Also worth to see how this is implemented on the radix-ui website itself
the source code
Thanks I have also found a solution. First I am making "GraphAreaToDownload" full screen by adding a section "fullscreen-section" which I am using now to export.
this is component code inside return:
{fullScreen ?
(
<div
id="areaToDownload"
className={`${fullScreen && "fullscreen-section"}`}
>
<div
style={{
backgroundColor: backgroundColor,
width: "100vw",
height: "100vh",
border: "none",
}}>
..........content to export
</div>
</div>
) : (...other code)
}
this is css code:
.fullscreen-section{
display: flex;
flex-direction: column;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 100vw;
height: 100vh;
background-color: white;
z-index: 1;
border: "none"
}
And it resolved the issue.
The solution is to cancel the hourly billed VM and provision a monthly (hourly_billing = false) VM.
Could you detail a bit on the overall structure of the system that you are using so that I have more spaces to suggest debugging.
var editor = monaco.editor.create(document.getElementById("editorContainer"), {
value: jsCode,
language: "typescript", //can use your custom language here
suggest: {
showWords: false
}
});
can this be done only during the creation of the editor? can I change the configuration to false afterwards?
Exists a range of system stored procedures that can be used as a critical breach, for example, try xp_cmdshell 'dir *.exe'. So need to have some explicit range of SP that can be executed.
I was unable to solve this issue, but I found a work around, using send command instead:
line1 = acad.model.AddLine(APoint(0, 0), APoint(100, 100))
acad.doc.SendCommand('select ' + 'l ')
acad.doc.SendCommand('ai_deselect ')
line2 = acad.model.AddLine(APoint(100, 100), APoint(200, 0))
acad.doc.SendCommand('select ' + 'p ' + 'l ')
acad.doc.SendCommand('group ')
This draws a line, selects it, then deselect. Line 2 is drawn, the previous selection is highlighted (line 1) and then the last thing drawn (line 2). Then sends the group command.
If you want to use simple "input
" prefix, which is trying to pickup properties form the root, you will need to update your application.properties
file content with .properties
prefix, like @rahulP suggested.
But, as far as you are trying to map ServiceModel
- better will be to update prefix and properties with input.service
prefix, see https://docs.spring.io/spring-boot/reference/features/external-config.html#features.external-config.typesafe-configuration-properties:
@ConfigurationProperties(prefix = "input.services")
application.properties:
input.services.default.host=Default
input.services.default.ip=127.0.0.1
input.services.default.desc=Default Desc
input.services.serviceA.host=ServiceA
input.services.serviceA.ip=192.168.21.1
input.services.serviceA.desc=ServiceA Desc
input.services.serviceB.host=ServiceB
input.services.serviceB.ip=192.168.21.22
input.services.serviceB.desc=ServiceB Desc
Also I think you are missing default contructor in ServiceModel
, which is required for Spring.
Not sure if this is still a issue but there was a nice plug in released for unreal engine that can help with this: https://www.fab.com/listings/7e781305-8e5e-4131-8af3-cc9b7e7a998f
As you did in zookeeper, do the same for KafkaServer jaas:
username="admin"
password="admin_password"
user_admin="admin_password";
I remember trying it without the user_admin
line causes kafka to fail. Might solve your issue.
I downloaded and installed Jdk, enter it into environmental variables(system) and instead of storing the kafka file in users/downloads I renamed it to kafka and stored it in local disk
CupertinoIcons.slider_horizontal_3
Built into Flutter.
correct. It helps to delete any table row directly onclick handle.
In my case, the problem was solved by running the pipeline manually the first time. After that, the webhook worked.
The error message you are encountering indicates that there's an issue with eager execution and the use of .numpy() within your TensorFlow model when trying to call model.fit(). The message "numpy() is only available when eager execution is enabled" suggests that, even though eager execution is reported as enabled, some part of your code (likely involving your model or a custom layer) is trying to access tensor values in a non-eager context (which requires eager execution).
You are using tf.compat.v1.enable_eager_execution(), which is related to TensorFlow 1.x compatibility mode, but it could cause confusion when working with TensorFlow 2.x, as eager execution is enabled by default in TensorFlow 2.x (unless you're explicitly disabling it).
Remove the Eager Execution Enablement: tf.compat.v1.enable_eager_execution()
Check Model and Data Types: Ensure that your x_train, y_train, x_test, and y_test are proper numpy arrays or TensorFlow tensors.
Re-save the Model After Loading: After loading the model using tf.keras.models.load_model(f"models/{model_name}.h5"), double-check that the model is compatible for further training.
Use TensorFlow 2.x APIs: If you're using TensorFlow 2.x, avoid using any tf.compat.v1 methods unless absolutely necessary. Stick to the higher-level API provided by TensorFlow 2.x for training, evaluation, and saving models.
Did anyone manage to succeed in this yet?
For everyone having the same problem. Check if you do not use SXSSFWorbook() - By default it has 100 rows buffer limit.
Look here: Apache Poi RowIterator only returning the last 100 (0 - 99) rows
Solution1:
plt.tight_layout(rect=[0, 0, 0, 1]) # Adjusts top margin slightly
Solution 2:
Try Adjusting h_pad
in plt.tight_layout(h_pad=-3)
is might be not a correct solution because h_pad
(height padding) should be non-negative. But It Worked in this case:
plt.tight_layout(h_pad=-3)
Either onExpandChange parameter or onFocusChanged modifier was enough for me. Anyway, you saved my day, thanks!
Given a form using React Hook Form, MUI and zod. The form object contains a field that is an array of objects and the user can add/remove/edit the list items. I moved the add/edit part into a separate ..
For Windows users, I found this solution:
php.ini files in Cpanel are located under /opt/cpanel/ea-php{version}/root/etc/php.ini
, e.g. for PHP 8.3 this would be /opt/cpanel/ea-php83/root/etc/php.ini
.
Modifications should be done via the Cpanel UI though.
In my case it was the Windows Defender policies of my company that prevented cargo from running.
I had to add the .cargo and .rustup directories in the Windows Defender exclusion list.
NextJS Version - 15.1.6
It worked when I moved the middleware from src/middleware
to src/app/middleware
I am answering my own question. It was almost solved by adding this:
JsonbConfig config = new JsonbConfig();
config.setProperty(JsonbConfig.DATE_FORMAT, JsonbDateFormat.TIME_IN_MILLIS);
Jsonb jsonB = JsonbBuilder.create(config);
and writing the response like this:
return Response.ok(jsonB.toJson(object)).build();
But as the objects can have also Date fields in addition to the Timestamps they are now both written as integers and now the clients dont like Date fields as they are expecting something like "2023-05-05".
For example:
public class HaePaivajarjestysPaluuDto extends SaliDtoAC implements Serializable {
private String tekninenavain;
private Date istuntopvm;
private Timestamp ilmoitettualkuaika;
gives:
"haePaivajarjestysPaluuDto": {
"tekninenavain": "2023/131",
"ilmoitettualkuaika": 1683270000000,
"istuntopvm": 1683234000000,
In order to get the GstCaps you need to get the GstSample and the GstAppsink first. Based on the code you showed, you could do something like this:
auto appsink = GST_APP_SINK(sink);
auto sample = gst_app_sink_pull_sample(appsink)
auto caps = gst_sample_get_caps(sink);
You have a typo in the href. It should be styles.css
instead of style.css
.
If that doesn't work, I think it might be due to how you are joining the path BASE_DIR / "static"
. Try using os.path.join(BASE_DIR, "static")
instead.
Here is a solution. The solution is to reinitialized the slick
https://github.com/kenwheeler/slick/issues/3324#issuecomment-2674463014
For the ones interested, i got an answer with the AI by retrieving data from fetch into a 'useState' local storage and by using useEffect function:
const PostScreen = () => { const [Posts, setData] = useState(null); useEffect(() => { const fetchData = async () => { try { const response = await fetch("http://192.168.0.12:8085" + "/Posts_to_App", {headers: { "content-type": "application/json" }}); const result = await response.json(); setData(result); } catch (error) { console.error('Erreur lors de la récupération des données:', error); } }; fetchData(); }, []);
Regards
Select Add another Jupyter Kernel then Javascript. It should work.
In my case, I messed up my variables which ended up in passing the wrong bearer token in the header, giving this error.
Modify your UID fetch range to "*" or use SORT if supported:
uids, err := im.GetUIDs("50:*") // Fetch last 50 UIDs
or
uids, err := im.GetSortedUIDs("REVERSE DATE", 50) // If sorting is supported
Try to install java 8 which is compitable with Yarn
I have ran into same issue on AKS cluster and dapr was installed as a Microsoft extension. But the steps are pretty much the same.
If you want to achieve zero downtime you need to bring your own certificates generated with OpenSSL for example. The guide to do it is here. Another fast option is just to renew the certificate with this command:
dapr mtls renew-certificate -k --valid-until {days} --restart
Where {days} can be a couple of years if don't want to renew it every year, which is the default behavior if you don't specify --valid-unitil.
Then you need to restart all deployments that are using dapr sidecar container.
kubectl rollout restart deployment -n {namespace}
I am facing similar issue and this is impacting when I am re running failed test cases - it is unable to recognise null and not running failed test cases again. Does anyone has any solution so far ?
I might try this, the discord native timestamp sucks because it rounds and it says for example 5 days even though I would like it to say 5 days, 7 hours,
if the URI in app propreties is pointing to the remote repo, make sure it's public and NOT private, i had the same issue when i changed the visibilty of the repo to private.
Did you find any useful way to solve this issue, which tool or algorithm did you use for smoothing freehand drawn strokes? I am working on the same problem, Thanks
As the saying goes: "i used regex to solve my problem, now i have two problems"
but have you considered using regex to extract the specific fields you want?
^(\S+)\s+(WLAN\s+\d+)\s+(\S+)\s+(Infinity|(?:\d+ Days\s+\d+ hrs\s+\d+ mins\s+\d+ secs))\s+(.+)$
In my case: just turn off the web proxy.
Try manually specifying the store URL:
npm create @shopify/hydrogen@latest -- --store=my-store.myshopify.com
const Upload = () => {
const [fileName, setFileName] = useState('no file selected');
const [resultText, setResultText] = useState('');
const fileInputRef = useRef(null);
const localIP = "myipv4address";
const uploadUrl = `http://${localIP}:3000/upload`;
const [userId, setUserId] = useState(null);
useEffect(() => {
const fetchUserData = async () => {
const storedData = localStorage.getItem("auth");
if (!storedData) return;
const { email, password } = JSON.parse(storedData);
try {
const userResponse = await axios.get(
`http://localhost:8080/users/byEmail/${email}`,
{
headers: { "Content-Type": "application/json" },
auth: { username: email, password },
}
);
setUserId(parseInt(userResponse.data.id));
console.log(userResponse.data.id); // it prints 12, which is my user id, it works fine
} catch (error) {
console.error("error getting the user:", error);
}
};
fetchUserData();
}, []);
const handleFileChange = async (event) => {
const file = event.target.files[0];
if (!file) return;
const allowedTypes = ["image/jpeg", "image/jpg", "image/png"];
if (!allowedTypes.includes(file.type)) {
setFileName("invalid file!");
event.target.value = "";
return;
}
if (userId === null) {
console.error("User ID invalid");
return;
}
try {
const formData = new FormData();
formData.append("image", file);
formData.append("userId", String(userId));
const response = await fetch(uploadUrl, {
method: "POST",
body: formData,
});
if (!response.ok) throw new Error("Error");
const data = await response.json();
setFileName(file.name);
setResultText(`Image uploaded: ${data.imageUrl}`);
} catch (error) {
console.error("Error:", error);
setFileName("Error");
event.target.value = "";
}
};
return (
<div className="qr-section">
<p>or scan the qr code to upload from your phone:</p>
<QRCodeComponent value={uploadUrl} />
</div>
<input
id="file"
type="file"
accept="image/jpeg, image/jpg, image/png"
onChange={handleFileChange}
ref={fileInputRef}
/>
</div>);};
Export default Upload;
Sorry if it has some errors, it is not the exact code, I edited a bit before posting it here So what I'm I doing wrong when trying to pass the userId to the server? As I said, in the server, if I try to console log it, it prints undefined
Glad to help! If anyone is still facing issues with launching Roblox via C#, feel free to ask. Also, if you're looking for a reliable script executor, check out Delta Executor APK for Roblox for a smooth gaming experience!
I've found solution in their migration guide https://angular-material.dev/articles/updating-to-angular-material-19#13-changes-for-typography. Don't know why it's not described in documentation
@include mat.typography-hierarchy(
mat.define-theme(
(
typography: (
use-system-variables: true,
system-variables-prefix: mat-sys,
),
)
)
);
This will also generate css classes https://angular-material.dev/articles/angular-material-18-typography#generated-css-classes
You can do it using the following command in Intelejji.
Edit | Sort Lines
I have a similar problem: Error (0 , util_1.isObject) is not a function
. This has been happening every time I try to start the server, followed by a freeze. I haven't changed anything with my environment or the Dockerfile. I also tried reinstalling everything and it didn't help. The project works for everyone else...
Conditionally rendering Stack screen won't help you achieve transitions when navigating between screens.
Instead use the router instance to push/replace between screens, this will leverage the OS navigation transitions.
Need to reopen CLI after update environment variable. then your php -v command return updated version. Thanks
I'm not sure if you can find a full tutorial for your exact problem but as far as I can tell what you need is the following:
AudioFileStream
extracts MP3 frames from NSData
: https://stackoverflow.com/a/17332543/29516370
AudioConverter
converts the MP3 frames to PCM
: Unable to convert mp3 into PCM using AudioConverterFillComplexBuffer in AudioFileStreamOpen's AudioFileStream_PacketsProc callback
The PCM
data can be played using AudioUnit
: as you say you've already done it
A Bit late here but for those who are using newer version of Android Studio, as of today here I am writing this answer who uses multiple Android studios on one machine, one is installed in default directory, other is just a zipped downloaded to same directory but different parent folder.
Due to this stunt of mine, I also faced this issue precisely to be
** Plugin [id: 'com.android.application', version: '8.7', apply: false] was not found in any of the following sources: **
So the solution for those who use Gradle whether older or newer version, is check the AGP version matches the supported version of gradle that you are using. It must be the minimum supported gradle version. here is link. navigate to it and match the gradle versions, if it is not listed here, then use a AGP version lower than your gradle.
e.g. this is Gradle wrapper file
https://developer.android.com/build/releases/gradle-plugin#kts
distribution URL is https://services.gradle.org/distributions/gradle-8.10-all.zip
AGP is "8.7.0"
In our project we have faced the same issue. We noticed that on our pod the home path variable was not set and that docx4j was trying to write in /root directory where docx4j had no access to create the .docx4j folder.
Replace selenium with playwright. Their native video recording works on Mac like a charm. (no need of xvfb, XQuartz)
What is your flutter version and android target SDK ?
I think you use a version of flutter above 3.27 and target android sdk 15 (directly or indirectly by the flutter version), the issue come from the overlay you add.
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
can be removed because edge to edge is default mode on 3.27 and above.SystemUiOverlayStyle(...)
can be removed because it's deprected and had no effect.I think removing your customOverlayStyle()
will have no effect and will remove the store recommendation.
I faced a similar issue while trying to assume an IAM Role from inside a EKS pod which uses the new pod identity.
I was getting the below error.
An error occurred (AccessDenied) when calling the AssumeRole operation: User: arn:aws:sts::*****:assumed-role/***** is not authorized to perform: sts:TagSession on resource: arn:aws:iam::*****:role/*****
The problem was with the external-id condition in the trust relationships of the role to be assumed. Once I removed that condition it worked fine.
I encountered this issue only in Android Studio, while running Flutter commands in Windows Command Prompt (CMD) worked fine.
To fix this, I simply ran Android Studio as an administrator, and after that, flutter doctor
worked inside Android Studio without any issues.
You can remove the apostrophe after the event with "Find and Replace"
In the "Find" box use "^'" and leave the "Replace with" box empty.
Check the "Search using regular expressions" and "Also search within formulae" boxes.
The smallrye-open-api-ui
is already a transitive dependency of helidon-integrations-openapi-ui
, and you are explicitly specifying a version for it.
Your version is lower than the one used by Helidon, so maybe there is some API missing.
If you remove the dependency from your pom file, thinks should work.
Thank you for this post, a bit out of topic, but I had an issue connecting to Application Insights (Invocations panel in Azure functions) and simply disabling my ad blocker helped. I was getting BLOCKED BY CLIENT error in the web console.
Did you add the Springdoc configurations in your application.properties
file?
If not, try adding these configurations:
springdoc.api-docs.path=/api-docs
springdoc.api-docs.enabled=true
springdoc.show-actuator=true
Then you can use authenticated if you want.
If you are using JpaRepository
interface, than the following is also possible:
@Query(value = "SELECT * FROM get_actor_by_id(?1)", nativeQuery = true)
Actor getActorByCallingFunction(final Integer id);
Check this migration guide to see if it helps to remove the message you get.
With .NET 8.0 and above, if you have both "WorkerService.dll" and "WorkerService.exe" files, use the .exe file to create the Windows service instead of the .dll. This resolved my 1053 error.
To change the class of service (COS) for an extension in a Panasonic PBX using TAPI, follow these steps:
For expert IT solutions in Dubai, including PBX setup and maintenance, visit ammitservices.com.
It depends on what you are using to convert your Markdown to PDF.
I had a similar issue last week and struggled to convert my engineering report with mathematical equations (latex) from Markdown to PDF and share with our team. I tried with multiple tools but most were not providing an output with style similar to VsCode or even GitHub.
Dillinger, Typora etc. None of them presented an output I was looking for.
But this Markdown to PDF converter gave a preview that's close to what I was looking for. My colleagues liked the format of the report.
You are not copying .env
into the docker build step.
Also please check that any .env entry is not present in your .dockerignore file if any
Used:
SampleResponse sampleResponse = mock(SampleResponse.class);
when(response.asJson(SampleResponse.class)).thenReturn(sampleResponse);
to make it work.
I faced the same issue and spend a few hours attempting to understand the root cause. I have tried to change the memory limits as suggested above. Simply put, I have tried everything, but it didn't help me.
Then I got an idea that I should try to run another test and bingo! It worked as usual. Then I decided to rewrite the "problematic" test from scratch. During rewriting I caught myself thinking that I forgot to mock/define some dependencies of the class under testing.
Recently, I added Clock to my class
private final Clock clock;
After defining this dependency in the test class the issue has gone
var clock = Clock.fixed(Instant.now(), ZoneOffset.UTC);
I see that the question was asked a couple of years ago, but I believe it could be useful for someone.
This is solution for Microsoft 365:
[Sheet1!D2 and fill down]=TOROW(FILTER(Sheet2!$H$4:$H$9;Sheet2!$B$4:$B$9=C2))
Assuming the first picture is Sheet1, the second - Sheet2.
from my experience I can say best to avoid using in your code
new Date()
rather use new Date(Date.now())
and here is why, Date.now()
is easier to mock,
add script into watcher as in the picture, notice system date vs logged date
if(!document.querySelector('script#mock-date')){
const script = document.createElement('script');
script.id='mock-date';
script.innerHTML = `Date.now = ()=> new Date('2020-01-01T00:00:00+10:00').getTime();`;
document.head.appendChild(script);
}
In my case I had both files:
-jsconfig.json
-tsconfig.json
Next used tsconfig.json, but I edited jsconfig.json file. Basically, move your logic from one to another file and delete unused config.
I've been using MinIO, but in the latest versions of the Community Edition, they are removing a lot of functionality from the UI and shifting it to the paid AIStore version.
Because of this, I’m currently evaluating OpenStack Swift as an alternative. It supports an S3-compatible API, making migration from MinIO smoother while avoiding vendor lock-in.
Would love to hear if anyone else has experience with Swift in a similar use case!
i fix this by re-configuring the firebase.
TLDR: You need to manually uninstall the app on your debugging device to unblock the Gradle process if you have an app with the same package name but a different signature.
I had the same problem, which kept coming back day after day, without me knowing exactly where it was coming from. I finally identified the problem on my machine, so I'm sharing it here in case of it can help. I'm on Windows with Visual Studio Code for Flutter, and I also often work with Android Studio for native Java development. For me, the problem was VSC's inability to deploy a debug app if another app with the same package name but a different signature is installed on my debug device.
I'm used to how Android Studio works, which in the same situation, displays a clear message saying that the app will be replaced, and asks the user for confirmation. With VSC and Flutter, there is no message or confirmation request, and the Gradle process seems to run indefinitely, without ever displaying an error or telling the user (me) that the app deployment is blocked.
Specific case (or steps to reproduce): I'm currently rewriting an application from Java to Flutter. But I continue to maintain the Java app. At the beginning of the rewrite, I opted to maintain the same package name for both applications. The intention is to try deploying the Flutter app as an update to the existing Java app (I have not yet reached this point, and I am still uncertain of its feasibility).
Anyway, the problem appears when I switch from java to flutter on my debug device. If I need to do some tests on the Java app, while before I was working on Flutter, I have no problem with Android Studio: it detects that my previous build does not match and asks me to confirm uninstallation of the Flutter app to replace it with the Java app. Then, when I need to do the opposite (replace the java app by the flutter app), VSC does not warn me that it has a deployment problem, and I see the Gradle process running indefinitely. The solution here is to manually uninstall the java app, to be able to deploy the flutter app. I suppose, but I haven't tested it, that we could have the same problem if we test an app on the store (with a production signature) and try to go back to the app under development (with a debug signature) without manually uninstalling the production app on the testing device.
A good web online tool: https://evercoder.github.io/clipboard-inspector/
It is enough to paste inside a box and the clipboard will be expanded and explained.
You asked for a tool which doesn't require the paste operation, so this answer is not perfectly centered. But the reason behind this request is that you don't want that automatic formatting takes action. And with this tool, formatting doesn't interfere.
I think you should debug firstly, can you catch the file and then can you use it. If all statements are working, can you provide more codes to explain it ?
func startGame() {
// Check if the file "start.txt" exists in the main bundle
if let startWordsURL = Bundle.main.url(forResource: "start", withExtension: "txt") {
print("File found: \(startWordsURL)") // Debugging statement
do {
// Try to read the content of the file
let startWords = try String(contentsOf: startWordsURL, encoding: .utf8)
let allWords = startWords.components(separatedBy: "\n")
// Debugging statement to print all words loaded from the file
print("Words loaded: \(allWords)")
// If you want to set a random word as the rootWord
// rootWord = allWords.randomElement() ?? "november"
} catch {
// If there's an error reading the file, print the error
print("Error reading file: \(error)")
}
} else {
// If the file wasn't found, print a message
print("File 'start.txt' not found in the bundle.")
}
}
I am very new to this colour space conversion stuff,
and I dont even know if I have the right approach.
Your approach is fine and correct. You're doing a simple mistake of scaling down (the r/g/b values) but then later you don't scale them up for usage in the imgOut
part.
Using (r/255)
scales it down (or will "normalize" it) from being a value in 0 to 255 range, into now being a value in a 0 to 1 range.
Re-scale it up, into being within 0-255 range like this:
imgOut.pixels[index + 0] = ( 255 * computedC );
imgOut.pixels[index + 1] = ( 255 * computedM );
imgOut.pixels[index + 2] = ( 255 * computedY );
imgOut.pixels[index + 3] = 125;
If the new imgOut
colours are not exact:
Then try something like: Math.round( 255 * computedC );
Round down using: imgOut.pixels[index + 0] = Math.floor( 255 * computedC );
Round up using :imgOut.pixels[index + 0] = Math.ceil( 255 * computedC );
Now do you see multiple colours instead of just black?
I have same issue, did you solve it?
I'm getting the same error when reflectivity = 0
Changing reflectivity to 0.1 will fix this issue.
let floor = SCNFloor()
floor.reflectivity = 0.1
Steinbock: "In my case switching the Permalink (/wp-admin/options-permalink.php) from Post to Plain and back solved the issue!"
Thank you so much, Steinbock! I had been struggling with this issue for days and tried countless solutions, but this was the only fix that actually worked. Switching the permalink structure from 'Post' to 'Plain' and back again solved it instantly.
I even created an account just to upvote and thank you, but I didn’t knew I needed reputation first—so here’s my appreciation in a comment instead!