Settting default import/export path Reactjs - reactjs

I need to build like some sort of input where you can set an import/export default path. To demonstrate what I'm trying to build I will use Chrome's default download location as example.
If anyone have any idea how I can start tackling this it will be very helpful.
Btw, I want to build this with reactjs
UPDATE:
When you click on the CHANGE button it will open the file system where you can set the path where the downloads will go. I want to do exactly that. I'm building a report UI where you can export/import reports.

Related

snowflake load csv file option not available or any file

I'm trying to upload a .csv file but there is no option to load or may be I'm not finding it. I watched many tutorials but the UI that they had is different to mine and I'm not able to change to the other UI like others that has load options.
this above picture is the UI that I have, and am not able to shift to another one as the classic UI button is missing. Am I missing anything here or the load option is missing temporarily?
The Load option is currently disabled and currently we are working on adding this feature to the Snowsight.
Also the classic Web UI is disabled for all new trial accounts.
However there is a workaround as of now.
Can you add ?disableDirectLogin=true to the URL you are currently using and let me know the results.
e.g. https://xxxxxx.snowflakecomputing.com/console/login?disableDirectLogin=true
This will get you the classic Web UI and you can use the load button in thus UI.
Hope this helps.

Remote-Containers: Can I create a standard default devcontainer.json?

So I have one local container that I want to use for the Remote-Containers support. But I can't seem to create a single default devcontainer.json to utilize this. Am I correct that it's a file per project or repository?
The idea is to have the devcontainer.json version-controlled in the repository, so that anyone checking the repo out can use the standard container configuration.
If you're cloning a 3rd party repo which you want to run locally in a container, you will need to create the config file yourself if it's missing.
If you find yourself in need of the same devcontainer config over and over again, consider submitting a pull request at https://github.com/microsoft/vscode-dev-containers.
Having said that, it should be straightforward to create the config. If you're going to use an existing Docker image it is as simple as creating a single file:
.devcontainer/devcontainer.json
{
"image": "local image name or remote url"
}
If you have a Dockerfile you want to build from, again it's a single option:
{
"dockerFile": "Dockerfile"
}
That's all you need. Fire Reopen in container VS Code command and you're set.
If you want to configure port mapping, or change the user you will need to add that of course, but anyway it will be quite minimal.

Adding local image in Jupyter SQL notebook

Started using Azure data studio and creating documentation for some SQL processes in our system.
As part of that I need to include a flow diagram in the document. Currently I have uploaded an image to a URL and am able to embed the image in document from the URL.
But is there any way to include an image from a local folder? Please assist.
I think this is what you want.
from IPython.display import Image
Image(filename='C:/your_path/your_image.PNG',width=200, height=100)
I was interested in this also. Syntax should be (if you store images in subfolder relative to notebook):
![ssms_subquery](images/16_ssms_subquery.png)
This didn't work for me initially: rendered as a broken image icon.
Things I tried:
Make sure you have a workspace defined for your root folder. Create the folder, then select "File > Add Folder to Workspace ..."
If that does nothing, try closing and restarting ADS. I've found the rendering to be flaky from time to time after awhile or if you have been opening/closing notebooks a lot.
Related topic has been discussed previously for markdown in general (but worth asking again for ADS!), eg. How to display local image in markdown

SocialEngine staticBaseUrl is not working in production mode

I am using socialengine as content management system, when i change the socialengine site to production mode it did not load the css file, I figured out that my $staticBaseUrl function is not returning the website name.
I manually added the path in default layout to load the css file, it works but a font family (centurygothic) is not loads. I am using SocialEngine's 4.2.4 version, please help.
I am using plesk panel for as hosting server.
If you use paths in your css file (theme_name/main.css or Modulename/externals/styles/main.css), you can use following way of indicating path:
~/application/..., where ~ will be automatically parsed and replaced by staticbaseurl.
Firstly no need to manually adjust the $staticBaseUrl in the layout. There is a setting in the admin panel (general settings) where you just specify what the URL is. This is commonly used to set the CDN URL.
Secondly, most of the CSS files in production get minimized and appended to each other, so you will only see one query similar to this: /application/css.php?request=application/themes/default/theme.css
Thirdly, if there is still an issue there may be a number of reasons. For example, are you using the http://example.com/home or http://example.com/index.php/home URL format?

Deploying AngularJS Seed application in WebStorm

I recently started to learn about AngularJS and came across WebStorm and the AngularJS plugin by John Lindquist. Started by creating a new project using the angular-seed project and imported to WebStorm using File -> Open Directory. My directory structure looks like this
Now when I try to Debug it I get a 404 error. If I move the file app/index.html to the root folder and adjust all URL's to begin with app then it works fine. Is there a way to keep the default folder structure without moving the index.html to the root folder and also make it work with WebStorm?
I am using WebStorm 6.0.2.
I use WebStorm 7, so there might be some discrepancy in comparison with version 6 that you're using, but the over-all functionality is the same.
Quick solution:
Open the file in the editor and right click in the code to access the context menu. Choose the "Debug" option, which should start a debug session pointing to the current page.
Configuration solution:
WebStorm supports configurations for setting up different debugging scenarios. From the "Run" menu, choose the "Configurations" option. Add a JavaScript debug configuration, and add the URL you want in the designated field within the dialog presented.
Then, when you initialize a debugging session (a general one, not one for a specific page), you're presented a small dialog that allows you to choose a debug configuration.
Maybe there are more options or ways to accomplish the same thing as well, but I've never really given it more thought. I hope this is a working solution for you, but if not there's alway the documentation. If you need further clarification with regard to my answer, just give me a comment.

Resources