I am working on a project which requires me to give the user a list of do/dont's which shouldn't be edited.
So is it possible to make read-only comments.
Any help would be appreciated thanks!!!
(Note: its not a rshiny script)
This is not possible. R scripts are regular files, all parts of them are editable.
Maybe you should use a read only repository and put your code there?
How to make a git repository read-only?
I never had to use sections of the code with read only access, and I am not sure if we can make this kind of thing.
Related
I am pretty new to R, so I have probably done a newbie-fail. I can not write anything in my different scripts. The only thing I can, is to write directly to the console. Can someone please help? I have some task that has to be done soon, so every help would be appreciated.
I am only allowed to write when I make a new script....
Thanks
If you're in a hurry:
Copy all your files to a new folder and work with them there. It should take case of most problems like this.
Basically i want it to import data from a SQL database and Display it as graphs. Having said that i also want it to be dynamic,responsive as in the users should have filtering options. Any leads would be definitely helpful.
Please note that i am just a beginner with drupal.
Yes, But I recommend you to work on your own framework. Or even you can use some data visualization framework
Maybe this one is useful for you if you want to do it on your own:
http://www.sitepoint.com/twelve-javascript-libraries-data-visualization/
Why do you need Drupal for that?
I would make some PHP script which would read SQL and generate image out of that data, by using GD or ImageMagic lib. I guess you know that PHP can shoot out image file header and dynamically generate image, on fly. That PHP script could also read filter parameters to have influence on generated image.
We have a couple of relatively simple websites running on Adobe CQ 5.5 that were developed by a third party. I'm pretty familiar with how CQ works, but I'm working with somebody else's code here and I need to be able to search through all components in the system for a particular string.
The issue is that I can't seem to find a way to search across all of the various .jsp files stored with the various system components. I would have figured that the query tool in CRXDE Lite would have done the trick with something like this:
/jcr:root//*[jcr:contains(., 'Find this exact string in a JSP')] order by #jcr:score
But I've had no luck.
What I am looking for is some sort of global search that includes JSP files. Is that possible? Were I using a regular Java system, any IDE worth the download would be able to do this.
Thanks.
Might not be easiest way, but you can use the VLT tool to checkout the repository into your filesystem. Then you can lookup using whatever tool you prefer. It might even be faster in the long run
I don't have the actual answer but I suppose the JSPs are indexed via a filter that strips out some of their content.
It should be possible to configure the repository to index them as is instead, based on the info at http://wiki.apache.org/jackrabbit/IndexingConfiguration and http://jackrabbit.apache.org/jackrabbit-text-extractors.html
Sorry about the vagueness of this answer - I know the basic principles but to provide the details I would need more time than I can afford now ;-)
I have read the main idea of how Create a custom directory namer on github. But, I did not manage to know how to start. So, I am wondering if there is simple example for it.
Thank you very much.
You can find a sample DirectoryNamer here:https://github.com/dustin10/VichUploaderBundle/issues/242#issuecomment-44566041
I need to merge various PDF and Excel documents in one PDF. For example I have:
- A.pdf
- B.pdf
- D.xlsx
- E.doc
Whats I need is to merge all 4 documents content to a one result.pdf document.
There is any bundle/library to achieve that? or maybe the best option is to create a python script and call it from symfony2 (how?) to generate that pdf?
Any help or clue?
Thanks in advance
Symfony provides a Process component that wraps nicely wraps around the native php exec/system functions.
Check it out on: https://github.com/symfony/Process
Another option would be to use the PDF Component from Zend Framework. I'm not sure if it allows merging of PDF's but it should only be a matter of reading through the documentation to find out.
Check out this tutorial about ZendPDF in symfony: http://www.craftitonline.com/2011/06/pdf-generation-with-symfony2-part-ii-zend-option/
Hope that helps.
The #DucTa's dead link was talking about pdftk, a binary with which you can merge multiple PDF documents.
Download it on your server using apt-get install pdftk.
For now, I think it doesn't exist any bundle using pdftk, but you can use something like exec() or passthru() to do the trick.
Example :
exec('pdftk doc1.pdf doc2.pdf doc3.pdf output merged.pdf');