How to execute programs from geany using the GUI? - ide

well i recently installed geany .. the ide is great and worked great for python programs ,
but when i try executing c/c++ programs from the executed button i get an error saying ./geany_run_script.sh: 5: ./rsa2: not found ( rsa is the name of my program )
well i did try googling out but could find a case like mine.

If you want to run a program, you need to compile it.
By default, the compile key in geany is F8.
Then, you can run the program. (F5)
You can define flags in project>properties (click on the "construct" tab).

I tried doing F8 and F5 and the problem was same as yours. But then i did build, compile and run and it worked.(This post may help someone !!)

Related

error while improving Chromedriver undetectability

Using C#, I have
driver = new ChromeDriver();
It gives:
System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform.
It worked before I changed something.
This answer specifies that to improve undetectability of Selenium, you have to run a certain PERL script. I ran it like so:
perl -pi -e 's/cdc_/dog_/g' C:\Users\user\source\repos\SleeveAce\packages\Selenium.WebDriver.ChromeDriver.91.0.4472.10100\driver\win32\chromedriver.exe
What do I do now? Before, the C# app was working perfectly, now it has that error. When I open the .exe as a notepad++ and search for cdc_, I find multiple instances, so I suppose the script is not working? I might be wrong though if the script was not supposed to do that.
EDIT: I have just tried changing all the cdc_ values in a hex editor as well with dog_. They were modified successfully. However, the error is still there.
EDIT2: Solved! See comments for explanation.
Additional info
Using Perl 5 v32
After running the script, nothing was shown (no
errors too!)

Can I debug gem5 in vs code?

I connected to my server via ssh on vs code. When I debug gem5, I use gdb to debug, but I have to display variables through commands like p var every time. Can I debug in vs code? Or is there any other way that I can display the value of the variable just by pointing at the variable with the mouse, just like debugging in visual studio?
I realize that gem5 is just a c++ executable program.
So I run it like a normal c++ program, but it doesn't stop at the breakpoint, it executes all.
This problem arises:
&"warning: gdb: failed to set controlling terminal: operation not permitted\n"
I tried the solutions in this video, but none of them worked.
https://www.youtube.com/watch?v=w_fpGfjAdXg&ab_channel=RoelVandePaar
I use the Code runner plugin to debug other C++ programs normally. What should I do please?
Adding the following changes to launch.json should help you set up gdb in vscode with Gem5. I found using GDB to be very useful to determine the call-chain and find errors.
"program": "${workspaceFolder}/build/X86/gem5.debug",
"args": ["--debug-break=<timestamp>", "${workspaceFolder}/<path to config file>"],

"Compilation failed but no error lines" on working java program (jGRASP)

I'm an amateur programmer. I use jGRASP.
I made a lot of functional, running, zero-error programs and copied them to a new computer. Now, when I try to run them, I get that message: "compilation failed but no error lines."
What's going on here? I'd like any help as soon as possible, I have an assignment due.
Do you have the JDK installed (not just JRE)?
What is the compiler output? Any general messages there (not related to your code, but something like a missing javac or javac crashing)?
Is the source code in the correct package structure?
Are the source files in a directory where your login account does not have write access?

Running Go in Geany

I am trying to run go code in geany.
Unfortunately I get this error when I try to execute:
./geany_run_script.sh: 5: ./geany_run_script.sh: go: not found
I know some posts say that one must compile or build before running but the go run command compiles and runs at the same time, so ...
How does one run go code in geany?
The solution is to go to Build>Set Build Commands in the Geany options, under the Execute commands section, write the full path to your go executable, so /path/to/go/bin/go run "%f".

All tests did not finish - xcode 4.5

When i try to run the unit test for my projects, i get test succeeded. But in the log navigator i get warning saying 'All tests did not finish'. But the same code works fine in another machine and all tests succeeds without any warning. I searched for other posts related this and tried everything, but nothing works for me. And also all of a sudden some unit-tests fail without any reason, but succeeds when i run it again. I even tried resetting the simulator, nothing works.
Any suggestions?
Try this... open a Terminal in your project's folder and type the following:
xcodebuild -list
If you have Unit Tests in your project you should see at least two targets: ProjectName and ProjectNameTests.
Now type the following command (note: you will need quotes around the ProjectNameTests if it has spaces):
xcodebuild -target ProjectNameTests build
You will almost certainly see something like the following towards the end of the output:
/Applications/Xcode.app/Contents/Developer/Tools/RunUnitTests:68: note: RunUnitTests exited without running tests because TEST_AFTER_BUILD was set to NO.
You can fix this in Xcode by selecting your project in the Project Navigator (Cmd-1), selecting your ProjectNameTests target, selecting Build Settings and scrolling down to the Unit Testing section. Change the Test After Build setting from No to Yes and type Cmd-U to run your Unit Tests again. This time it should work.
Hope this helps!
Looks like you get this warning if you are using OCMOCK and you try to mock 'self'. Once i changed this, it fixed my problem.