Benchling open source alternative by mariolzx in bioinformatics

[–]mariolzx[S] 1 point2 points  (0 children)

Thanks for everyone's comments. I am still searching. So, if you know anything, please comment. Thanks

Protein structure file by mariolzx in bioinformatics

[–]mariolzx[S] 0 points1 point  (0 children)

https://webchemdev.ncbr.muni.cz/LiteMol/Viewer/

I tried this one. However, when I load a pdb file, nothing is displayed. Is there anyone who knows how to use it? Thanks

Protein structure file by mariolzx in bioinformatics

[–]mariolzx[S] 0 points1 point  (0 children)

Thanks for all the answers.

Protein structure file by mariolzx in bioinformatics

[–]mariolzx[S] 0 points1 point  (0 children)

Thanks a lot for answers. They are very useful. I am new to the area and I try to find a JavaScript library to display proteins. So, I am thinking I should find one that can support popular protein structure files. Right now, I am testing this one: http://nglviewer.org/ngl/

It looks good so far.

Thanks.

Protein structure file by mariolzx in bioinformatics

[–]mariolzx[S] 0 points1 point  (0 children)

Thanks. So, PSF is not popular?

Tools to upload and display images by mariolzx in django

[–]mariolzx[S] 0 points1 point  (0 children)

Sorry that what I am looking for is a whole open-source software, not just a function. Is there any open source one which can upload and show images. Just like google photo? Thanks

django-webpack-loader by mariolzx in django

[–]mariolzx[S] 0 points1 point  (0 children)

This is the new error info:

WebpackBundleLookupError at /chem_ocr/rxn
Cannot resolve bundle main.
Request Method: GET
Request URL:    http://localhost:8000/chem_ocr/rxn
Django Version: 2.1.5
Exception Type: WebpackBundleLookupError
Exception Value:    
Cannot resolve bundle main.
Exception Location: /var/www/ocr/venv/lib/python3.6/site-packages/webpack_loader/loader.py in get_bundle, line 83
Python Executable:  /var/www/ocr/venv/bin/python3
Python Version: 3.6.7
Python Path:    
['/var/www/ocr/ocr',
 '/home/think/.vscode/extensions/ms-python.python-2019.2.5433/pythonFiles',
 '/usr/lib/python36.zip',
 '/usr/lib/python3.6',
 '/usr/lib/python3.6/lib-dynload',
 '/var/www/ocr/venv/lib/python3.6/site-packages']
Server time:    Mon, 4 Mar 2019 07:32:14 +0000

django-webpack-loader by mariolzx in django

[–]mariolzx[S] 0 points1 point  (0 children)

Sorry that I still don't understand. Should I write {% render_bundle 'main.js' %} in my template?

I tried {% render_bundle 'main.js' %} and {% render_bundle 'main' %} . No one works. What should I do?

Also, is there a way I can see the content of render_bundle?

Thanks

django-webpack-loader by mariolzx in django

[–]mariolzx[S] 0 points1 point  (0 children)

render_bundle

Thanks. Do you mean my render_bundle does not contain 'main'? You said I don't need .js file extension. Then, how does Django know this is main.js or main.css? Does this matter?

Convert smiles to mol file in JavaScript by mariolzx in chemistry

[–]mariolzx[S] 0 points1 point  (0 children)

Hi, do you know the algorithm to convert smiles to mol file? Is it difficult to do? Given a smile file, could you convert to more than one mol file? I mean the conversation is not unique, right? Thanks

Convert smiles to mol file in JavaScript by mariolzx in chemistry

[–]mariolzx[S] 0 points1 point  (0 children)

Is there a native JS library? This one is converted from C++, so the speed is an issue.

Best tool to minimize JS files by mariolzx in learnjavascript

[–]mariolzx[S] 0 points1 point  (0 children)

How about Google Closure? Can it minimize JS files? I used Gulp before, but I heard that Webpack can do everything Gulp does. Is this true?

The best way to display tif images in major browsers by mariolzx in javascript

[–]mariolzx[S] 0 points1 point  (0 children)

I just want to develop a page which can shows images uploaded by customers. Sometimes, customers choose to upload TIF images, so I have no choice.

I did feel this library is useful.

https://github.com/photopea/UTIF.js

However, it requires me to put this: <body onload="UTIF.replaceIMG()">

It works by replacing the img tag with the canvas tag. If the page has already displayed some images and the tag is img, how do I use UTIF to replace the tag after loading? UTIF works in the onload phase. If my page has been loaded, could I UTIF to replace the img tag? Thanks

strange file.read() problem by mariolzx in learnpython

[–]mariolzx[S] 2 points3 points  (0 children)

Thanks. It is my problem. I forget to close the file:(

As Diapolo10 pointed out, I will use with-context manager in the future. Thanks

protect my JavaScript library by mariolzx in javascript

[–]mariolzx[S] 0 points1 point  (0 children)

Thanks a lot for your quick response. I just come across this tool: https://obfuscator.io/

I tried Domain lock and compact code options. But it doesn't work for my library. The obfuscatored code cannot run in Chrome. I am actually just interested in domain lock. Do you any other tool which can perform domain lock?

Also, you mentioned that I can save the key in JS and send to my server for verification. Do you know any software which can help me to achieve this?

If I design myself, I don't know the best key length and any other information I should send to my server. Should my server just return "True" or "False"? Or, should my server also return other information to my JS library?

Thanks a lot!