Can't open the Asset in IMB Watson Studio - assets

I added a .ipynb file in Asset Section of Projects of IBM Watson Studio, but when I try to open the file a pop up displays:
"Preview not available
This file type may not be supported."
I don't know how to fix this and I don't know how to proceed to submit my assignament for Coursera IBM Data Science course.
Please, help

The .ipynb file is for Jupyter notebook. Assuming you are trying to create new notebook to execute some code from that notebook file.
You need to use Add to Project -> Notebook option
Then use "from file" option to upload
For more information, refer to the documentation:- https://dataplatform.cloud.ibm.com/docs?context=cpdaas

Related

PyCharm failed when trying to read a big .csv file while spyder succeeded

I have both pycharm and spyder installed on our remote desktop. I personally prefer pycharm and having been developing using it.
Everything is fine until I found that I can not read a .csv file which is bigger than 1 GB in pycharm, it told me python crashed and the log shows "Process finished with exit code -1073740940 (0xC0000374)".
At first I thought maybe the .csv file has been broken. But in spyder, the pandas succeeded reading it. So the .csv file is good.
I do not know why, I did not change the configuration of my PyCharm, maybe someone did, because there are several other colleagues who also have access to this remote desktop.
I am somewhat sure that the file is OK and I had been reading .csv files which are even bigger than 20GB in pycharm using pandas, so anybody have any idea about this?
Try changing the
idea.max.content.load.filesize=20000
line in the ide.properties. It controls the
Maximum file size (kilobytes) IDE is able to open.
This should open a 30mb file.
You can get to your properties file from Help > Edit Custom Properties.
idea.max.intellisense.filesize=30000
idea.max.content.load.filesize=30000
You may need to increase the total memory allotment in pycharm after you do this. I know for me, pycharm slowed to a crawl while trying to read in a file this big.
More details on these settings: https://www.jetbrains.com/help/pycharm/file-idea-properties.html

automate image upload from windows explore with selenium and AutoIT

I have to automate a scenario like a upload an image from windows explorer to TinyMCE component using Selenium. Since Selenium does not support OS control, I used AutoIt to upload the image.
AutiIt sets the image path to "File name" and seems like it clicks on 'Open' button as well. But the image is not loading to my "source" field.
Here is my Selenium command:
Runtime.getRuntime().exec("C:/XXXXX/src/test/resources/uploadImage.exe");
// Path of the AutoIT script file
AutoIT script:
WinActivate("Open")
Send("C:\LCNGProjects\Screenshots\Images\GifImage1.gif")
Sleep(5000)
Send("{ENTER}")
Refer the attached screenshot
Not sure if I have got the questions correct, Did you compile the script.
Can you please go through link below for script compilation and step by step info how to upload a file.
https://www.guru99.com/use-autoit-selenium.html
You do not need to use AutoIt. Auto will make your script dependable on windows machine only.
Instead of it find element using locator(i.e. xpath) of upload button which is having tag as type="file". Now pass this simple sendKeys with absolute path of your image in your machine like below:-
button2.sendKeys("C:\\UsersDesktop\\logo\\Summit-Logo-900px.png");
Or use
System.getProperty("user.dir"));
Append the path of file exluding your project path and filename inside your project
Example :-
button.sendKeys(System.getProperty("user.dir")+"\\logo\\Summit-Logo-900px.png");
below link contains more option to upload file like below :-
Using SendKeys command.
Using AutoIt scripting.
Using Jacob com interface.
http://www.techbeamers.com/handle-file-upload-selenium-webdriver/#h3
Hope it will help you :)
I'm not going to add full source code here. You can call the AutoIT script using this command inside your test case.
// Call to AutoIT script to upload the image
Runtime.getRuntime().exec("C:\\xxxxx\\src\\test\\resources\\uploadImage.exe");
AutoIT Scrip
ControlFocus("Open","","Edit1")
ControlSetText("Open","","Edit1","C:\xxxx\Images\jpgImage")
ControlClick("Open","","Button1")
For more information refer the following link
https://www.guru99.com/use-autoit-selenium.html

Essbase dataload error

I'm on a Windows 10 box using Oracle Essbase Admin Services console 11.1.2.4. When I load data I get an error. My problem is that the dataload.err file will not write to my c:\ drive or any network drive to which I have access. If I manually create the dataload.err file in Windows Explorer and run the load data process, I can watch the dataload.err file disappear. I've tried a different file name and different directories, but it won't save.
Why won't the dataload.err file save? Any help would be greatly appreciated.

any method to export dashboards on pentaho and reused on another pentaho BI server?

I have made some dashboards on pentaho BI server. I want to export them and import on another pentaho BI server. Is there any method to realize this? we have the same datasource.
In Pentaho 5 version, you can use User Console to Download the Dashboard files. It will get download in zip format. Once it is done, take these codes to the New BI Server, use the user console and UPLOAD it.
For e.g : If you have a project folder named "PROJECT_XYZ" then open the user console, select the project folder >> on the right hand screen you will find "DOWNLOAD" option. Just click on it and the project folder will get downloaded in .zip format. Take this .zip file and UPLOAD it in the new Server using the user console (of the new server).
Hope it helps :)
For Exporting:
import-export.bat --export --url=http://localhost:8080/pentaho --username=admin --password=admin --charset=UTF-8 --path=/public --file-path=E:/pentaho/shaz.zip --overwrite=true --permission=true -retainOwnership=true
For Importing:
import-export.bat --import --url=http://localhost:8080/pentaho --username=admin --password=admin --charset=UTF-8 --path=/public --file-path=E:/pentaho/anyfile.zip --overwrite=true --permission=true -retainOwnership=true

SQL Server Management Studio error "Saved settings file cannot be found"

Here is my problem:
Every time I start the "Microsoft SQL Server Management Studio", I get a warning
The automatically saved settings file "\\Settings\CurrentSettings-2012-02-13.vssettings' cannot be found.
The message goes on to say :
"You can change this file on the 'Import and Export Settings' Tools Options page". The IDE will use your most recent settings for this session.
Where is this setting? How to fix this?
thanks!
you can try with theses steps :
In the Tools menu, select Options.
Select Environment folder, choose Import and Export Settings
In Automatically save my settings to this file, enter the location you will backup.
Select OK.
This file is in : %userprofile%\Documents\Visual Studio 2008\Settings\CurrentSettings.vssettings
Nota : if you don't find file, you can get another file from your coleague
If SQL Server Management Studio is open close it
Open Registry Editor Navigate to the location
_HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL
Server\100\Tools\Shell_
Edit the value of the Reg Key "VisualStudioLocation" to
%USERPROFILE%\Documents\SQL Server Management Studio
Close Registry Editor and check if the problem is fixed
In my case: we have Documents folder as mapped network drive and it seems SQL management studio has issues with that. As a quick workaround I created settings file outside this network drive and it works. Only downside is settings are not synchronized but honestly I don't care :)
Use your favorite registry editor, or use regedt32.exe if you don't have a decent one. Navigate to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<vsver>\profile, where <vsver> is the numeric version of visual studio that you are using, e.g. 6.0, 7.1, 8.0, 9.0. In there, you will find an entry AutoSaveFile. Edit this entry to point to a vssettings file that you want as your default settings file. If you don't have such a file, create one via "Tools->Import and Export Settings...->Export selected environments settings" first. Typical value for AutoSaveFile is %vsspv_visualstudio_dir%\Settings\CurrentSettings.vssettings, and typical value for DefaultSettingsDirectory is %vsspv_visualstudio_dir%\Settings\.
The statement in the error message "You can change this file on the 'Import and Export Settings' Tools Options page" seems to be incorrect. In particular, I was unable to reset the defaults no matter how many different ways I saved or loaded settings using the 'Import and Export Settings' Tools Options page. I had to resort to modifying the registry.
I had the same problem.
Turns out I had renamed the drive and this was causing the problem. Renaming it back to the original (as seen in the path in the error message) fixed the issue.
I managed to fix it with no registry changes.
Based on the instructions from this site:
http://sebastian.expert/the-automatically-saved-settings-file-currentsettings-vssettings-cannot-be-found/
Basically you need to change the default path in options.
Go to Tools/Options then Environment/Import and Export Settings
Change the path to existing one.
I found a lot of solutions which suggested to edit the following registry: HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\100\Tools\Shell\VisualStudioLocation
If there are people(like me) who do not have that entry, I managed to fix it by editing this one:
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\100\Tools\Shell\Profile\AutoSaveFile
I run MS SQL Server 2008 R2