rstudio server and access of remote databases [closed] - r

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I understand that several users can use an rstudio server. usually when we work locally we are already connected the to our databases (sql server) via active directory. How would this work in the server scenario. Would users have to enter credentials? I think one can also deploy plumber apis. How can they issue credentials to the remote database please? Thanks.

It probably depends if your solution is a free or a pro server. If pro, then better ask RStudio for sure.
For free server, some hints to answer something in case it helps you.
Docs are available here about that:
ODBC pro drivers: https://docs.rstudio.com/pro-drivers/installation/ there is a point for MS server
You can specify databases in odbc config file or just use odbc::odbc function inside R
Then credentials can be passed in odbc package. You can prompt for pwd interactively, see here for instance (in this case on an oracle db).
For credentials related to AD auto connect, I don't know, for me, users needs to identify to the database individually. It depends, first question is maybe: is your server configured to use the AD?
For plumber apis, unsecure ones are easily done but securing it yourself (jwt token or other IDs) without Rstudio pro seems not so easy.

Related

Publish r shiny application in intranet [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am trying to build a Rstudio/Shiny App and post it in our intranet so that everyone else in our office could see it. I am a windows person, and the instructions online about how to setup a shiny server within Linux environment is a bit difficult for me. Is there an easy way that I can could accomplish this goal without messing up with Linux. Even if I have to do so, is there an easy way to just have my webpage available to people within our company, not everyone on the internet. Thanks!
You can use shinyapps.io and add a password authentication by using, for example, shinymanager Link here.
If you have a computer that's always on, you can run R on it and run the command shiny::runApp(host="0.0.0.0", port="xxxx")". You can experiment a bit with the port in xxxx.
You will have to know the computer's ip-address. You can then direct your colleagues to http://<ip-address>:<xxxx>, where you replace <ip-address> and <xxxx> with the respective ip-address and port. You might have to unblock the port in Windows Firewall.
If you do not have a computer available that is always turned on, you can actually install R onto a network drive, install required packages on the network drive, and then have users run R from the network drive and run the app themeselves.

How to sync firebase with android room local db? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have an application that has a remote database(firebase) and local database(room). I get my data from firebase and save it in android room. Also, I use rxjava2 to do that. All posts is get from local database. Everything is okey until here. When I put new child to firebase, it doesnt appear in my application instantly. It is not put in local db. I know that I have to update my remote database every time such as every six hours. I had some researxch to do that. Work Manager and JobScheduler can be used but I dont know how to use that. Is there anyone that give me an advise?
WorkManager, part of Jetpack, is a library by Google, that handle deferrable work that requires a guaranteed execution.
You can read this blog to see if it covers your requirements. The documentation is an excellent starting point and there's a codelab that you can do to try the library itself available both in Java and Kotlin.
WorkManager uses JobScheduler when it runs on API Level 23+, for older Android versions (WorkManager supports API Level 14+) it uses AlarmManager and Broadcast receivers.

Can I install New Relic on a Bluehost Shared Hosting Plan? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want some more insights into my wordpress site so I signed up for a New Relic account. But they're asking me to install some agent by typing in commands and I have no idea where to do that or how to access a command line.
I use shared hosting with Bluehost so I have access to cPanel. I've never typed anything into a console to manage the server - the icons have covered everything I need. So far.
Is it even possible to install this on my shared hosting plan? If so, where do I get the command prompt, do I need FTP? I've tried to follow the instructions, but there're some strange words like "yum", "rpm" and what not. What are these, and how do I run them?
Is there a wordpress plugin that I can just install and have everything done automatically for me?
If anyone could point me to some clear step by step instructions as to how to go about this, I'd be very grateful...
Thanks!
What you need is shell access. According to their features page at http://www.bluehost.com/cgi/info/hosting_features, they support shell access via SecureShell (SSH). This is fairly common.
Download an SSH client like PutTTY and connect to yourdomain.com, or if you are on a Mac, open the Terminal app and type "ssh yourdomain.com" (with your web site's domain name). You can then run commands.
However, this probably will not get you what you need. You mentioned yum and rpm commands, which are system-level software installation tools. You'll need root access to do that, which you certainly cannot do on a shared hosting account.
These types of tools are really intended for application service providers. I'm fairly familiar with New Relic's products. I'm guessing you are trying to install the server monitor tool. You probably don't need to worry about that one since Bluehost should be monitoring their servers for you.

using Amazon-EC2 or Linode for hosting a debian server with R regularly extracting information from the web [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have hacked my NAS-01g into a debian server and use it to regularly download stock quote and earthquake information from the web. I was on a trip last week and I turned off my sever at home, but when I come back, I can no long gain access to the server. Considering re-configuring the server as very time-consuming, I am thinking of migrating my existing server to cloud.
I have a few requirements here:
server on 24/7
use cron to hourly call R to extract data from somewhere, say yahoo finance
(optional) backup and encrypt my gmail account
(optional) host django server and I am learning to use it now
I am thinking of using amazon-EC2 or Linode. I have tried amazon-EC2 a bit, but the pricing scheme seems very complicated for me, and I want the server to be as cheap as possible as it is not really that mission critical work. I wonder Linode is simpler for a non-system admin like me.
Hope my question won't be considered as off-topic here.
Thanks in advance.
Belongs on ServerFault, but I think Linode is a good candidate. They have monthly plans that don't cost a fortune and you can get a debian install on it. (we just installed one for work and selected Debian, so I'm 100% sure).
Pricing scheme for Amazon is more complicated, but more transparent.
They separate in Machine Hours (EC2 Hours), Data Transfer In/Out and storage.
You can have too Elastic IPs (static IPs) and Load Balancers (LBs).
And you can choose if you want reserved instances (1yr/3yr term) or on-demand instances(more expensive but able to terminate instances whenever you want).
They have their own monthly calculator, you can check it here: http://calculator.s3.amazonaws.com/calc5.html

Cannot access my web server [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I just subscribed for shared hosting plan on ASPHOSTCENTRAL. I changed my Domain settings and pointed to the name servers as they said(10hrs ago). Since then I've been trying to access my website's default page but I can't. It prompts me to enter a User name and a password.
When I asked the help desk, they said it's working on their end and they can see the default web page.
This is an ASP .Net web application (3.5 framework) with Crystal reports (V12) and MS SQL server database.
The support team said when I try to ping ebolamedia.ae(my domain) then I should get 208.43.160.193 but on my end I see 174.37.255.233.
I don't understand what is wrong. Can someone help me... I can't access my FTP too.
I just check it now and see 208.43.160.193, so probably you are the problem, and its probably the dns cache on your computer.
There maybe a dns cache from your web browser or a dns cache from your computer. To clear the dhs cache of your computer open a dos prompt, (start | run | cmd) and run
ipconfig /flushdns
and probably is going to reread the dns and works.
Alternative open your windows/system32/drivers/host file with text pad and check or add manually the correct ip for your web address, just to make it play and you make your work until all dns flush and clear.

Resources