How to save the output of Eclipse in a different file in every run for sap abap - json

i have a run a program and i got some output on the console as
{"CUSTOMER_ID":"0000010001","CUSTOMER":"IDADMIN","ADDRESS":"Chennai"}
{"CUSTOMER_ID":"0000010004","CUSTOMER":"IDADMIN","ADDRESS":"Bangalore"}
now i need to save the output of Eclipse in a different file
when i checked in google for this i found few steps to achieve it.
Write a program as usual in eclipse.
While on the program screen, click on Run -> Run Configurations…
Navigate to “Common” tab
Check “File:” and “Append” box and enter the file path and apply
Run the test as usual, check the file at specified path…
the file is creating in the path but instead of the output in console some text has been saving in it like the process of transfering.

Related

when i convert pygame file to .exe file pyinstaller says can't open script

I made a simple flappy bird game. I wanna convert it to .exe file, and I did it with pyinstaller but when I try to open the .exe file in the dist folder it says can't run script
I then copied my assets folder and pasted it into the dist folder, then too its not working.
How do I make it work?
If you are converting a .pyw file, then PyInstaller will only show the game window when you will run it.
If you want to convert a .py file, it will also show the Command Prompt.
If you are getting an error in the form of a message box, that means that an error has stopped your code. Because you converted a .pyw file, the error will not be shown in the Command Prompt. A message box will appear instead.
To see what was the error in a more explicit way, you can:
1. Convert your file from .py to .exe to see the error in the Command Prompt instead of in a message box.
Then, you can record your screen and see what was the error.
2. Show the message box by yourself
Before converting your file, edit it like that:
from tkinter.messagebox import showerror
try:
# your ENTIRE code here
except Exception as error:
showerror('Error detected', error)
This way the error will be shown in a Tkinter message box like that:
Common errors:
You forgot to put an image in the .exe directory
pygame.font.SysFont does not work: use pygame.font.Font instead and use a .ttf file (more information here)
exit() is not recognised, use sys.exit() instead (and import sys of course)

Extracting Revit files (Autodesk Forge Example):

I have completed the Autodesk Forge extracting Revit file example (https://github.com/Autodesk-Forge/model.derivative-csharp-context.menu)
but still have an issue.
To get the program to extract the file I have to
run > click extract > stop > Run(Again)
for the file to actually extract. I am just unsure as to why I have to run the program twice for the process to fully complete?
Notes: The windows notification shows as complete in the first run, but the file isn't created with the extracted data, it is only once the program is ran again I get the new file and a popup notification for it being created.

How to run JM reference software using visual studio 2010

I have downloaded the H.264 source code and I can view it in Visual studio 2010. I don't know how to run the JM Reference software. How can I do that, and how to view the output?
First of all right click on the project in VS and rebuild solution.
After that from command prompt go to bin folder of JM reference software.
Which is in JM->bin.
Now write lencod.exe in command prompt.
This will run your encoder for default video file selected in encoder configurations. And same goes for decoder that is ldecod.exe.
For other encoding/decoding parameters read manual.
These slides will also help you to get started.
Firstly, I recommend you to download the latest JM reference software for H.264/AVC form this link. After downloading just click on jm_vc11.sln file (solution file) and it will open in Microsoft Visual Studio (MVS) as this:
Solution Explorer Image in MVS
Then from toolbar menu, click on Build>Batch Build and you will see something like this:
Batch Build in MVS
Then click on Rebuild button and it will compile and build all of the projects of this solution in your current folder. After seconds or so, you can go through a folder called "bin" in the current folder. In this folder you see lots of config files which are in .cfg format. Please open encoder.cfg file and you can see all the encoder configuration for you H.264 codec and at first lines of it there is InputFile name, FramesToBeEncoded, FrameRates and the deafult values is as this picture. Just please make sure the file "foreman_part_qcif.yuv" existed in the bin folder. Then just open command prompt (type cmd in windows search bar) and go to the current directory>bin folder where you can see lencod.exe file. Type this in your command line: "lencod.exe -d encoder.cfg" and it will encode your InputFile and generate test_ref.yuv as a reconstruction file that you can see the result of your encoding process. Also you can see your .yuv files using third-party apps like "yuvplayer". For decoding, Please open bin>decoder.cfg and check that the inpuFile is "test.264" and the output is "test_dec.yuv". Then in command prompt type: "ldecod.exe -d decoder.cfg" and the decoded output file will be generated as "test_dec.yuv" which you can play it in yuvplayer, for example.
For more details about the parameters of encoders and decoders please check the documentation file in your currnet directory>doc folder.

Selenium ide to locate a file and store its path info from any computer

currently in my test scripts for automated file upload to browser, the paths are already defined in the value column
command type
target //input[#type='file']
value /Users/.../.../.../filename.extension
in such cases, this script is unable to run on other computers because the path would be different.
my question will be is
is there a way to locate the file in a general folder (for example file is downloaded and in the "download" folder), by using selenium ide can we get the path of the file (/Users/.../downloads/filename.extension)
store the path of the file with its extension into a notepad which i will be using it for multiple test of file uploads later on.
right now if my colleague needs to run the script from his computer, he have to manually change the value to his path.
You could use a suite file that contains a "setup" file to only change the file name in 1 place and the variable is shared across tests in the suite. You could also select an agreed up on place to store the files: c:\test_info\image.jpg.
Or you can make the file available by URL & not local, Unfortunately javascript prevents that for security: How to get the current file path in javascript
Unfortunately I can't think of any other good way unless you all have the same path in a home directory and could do something like ~/test_dir/photo.jpg

Error trying to parse settings: No data in ~/.config/sublime-text-2/Packages/User/CTags.sublime-settings:1:1

I am using ubantu and trying to configure ctags on sublime text 2 for rails.
I am getting the above error message on opening my sublime text.
On re building ctags its completing within a flash without generating a .ctag file in the specified location.
My guess is that is an empty file right now. Open the file (possibly through another editor) and insert {}. The settings files are JSON objects. That just looks like it's failing the JSON parse.
You could run cat ~/.config/sublime-text-2/Packages/User/CTags.sublime-settings to see if there is anything in the file. If there is not you could freely delete it.
Though this error could be caused by a plugin that requires some configuration looking for its preferences file and failing.