How to set different proxies for each GeckoFX instance? - configuration

To set a proxy we need to change the GeckoPreferences.User[""] and this is the same for all instances, for exemple:
GeckoPreferences.User["network.proxy.http"] = "x.com";
Is it possible to set a different proxy for each geckoFX instance?
If this is not possible, are there any kinds of workarounds?

All GeckoFX browser controls running in the same application shares preferences (and cache, cookies etc). To run two GeckoFX web browser controls with separate preferences, the only options is to have them running in two different applications with two different profile directories.
Read here how to set profile directory: https://stackoverflow.com/a/20614986/2440

Related

Sharing logins across different devices

I am working on a project where we have multiple computers (running chrome) that are used to present webpages automatically.
Some of the webpages displayed on these computers require a login.
Currently we need to remotely login into every computer and enter passwords in order for them to load the pages. However, I would like to be able to login to a site only once and then share the logins throught the different computers.
Is there some way to synchronize sessions across chrome clients, so that I only log on to the machine once?
Or is it required to use something like Selenium to type in passwords. I don't really like selenium for this because:
1. It usually stops working when someone upgrades the browser
2. It seems like alot of work: Need to "reverse engineer" the login page for each site...
Are there any other approaches I can take?
Answering your Questions straight :
Is there some way to synchronize sessions across chrome clients : No, each chrome client will open a seperate session hence you have to login seperately. Inorder to synchronize these sessions you have to use Chrome Profiles and save them on each system.
Or is it required to use something like Selenium to type in passwords : This would be the most optimum way.
It usually stops working when someone upgrades the browser : You can uncheck/disable Automatic Updates to remain at a particular Chrome Browser Version
It seems like alot of work: Need to "reverse engineer" the login page for each site : Login Page for each site will render differently as a DOM Tree. Hence there is no short cuts.

Openshift - Redirect requests only on specific gear

I'm using HAProxy and I have more than one gear, but I have to use file system.
The problem is Gears don't share file system so I wonder if I have to setup HAProxy in way to let me redirect specific requests to a specific gear(the one that contains cronjobs).
Must I use HAProxy or have I alternatives?
Edit
Share the file system across gears would be great but not is completely necessary. My users don't need access. I just want the posibility to write files in the same gear. My using an specific URL o any other trick.
For example, it would be enough an specific URL go always to an specific(and why not the same) gear.
You should use something like amazon s3 to store your files, then they will be accessible to all of the gears in your scaled application.You would need to use an amazon s3 access library that is available for your language. If you are using Ruby on Rails, I would suggest using Paperclip.
I don't believe that you will be able to modify the haproxy configuration enough to always send a specific user to a specific gear within your application, and that also is a really bad programming practice to get in the habit of...

Firewall management on OpenShift

I am creating a SOA application and I would like to separate out logic in multiple OpenShift applications. The problem is, that some of the applications aren't supposed to be accessible from the internet -- only private services are going to use them.
I would like to allow access to those applications only from specific domains (lets say appB-domain.rhcloud.com and appC-domain.rhcloud.com). Is it possible to do that somehow on OS/OpenShift (like firewall rules and I haven't found about them in the docs)? Or must I do that in application level?
Thanks
You need to do that at the application level. There are no firewall rules that you can change, for instance, you can not update iptables.

Unable to access cross rider db data from other browser

I'm working on a new browser extension that will users to store data across browsers. I'm using Cross Rider API for storing this data.
So far, I'm able to store data that persists in same browser using cross rider's appAPI.db. But as i store some data to cross rider database in firefox, i cannot access this data from chrome or IE.
Any solution for this problem would be highly appreciated.
The Crossrider database is an easy to use local storage that provides an extension with its own private browser specific storage. The reason why the same extension installed on different browsers cannot share a single database between them is because each extension runs in a sandbox and is only aware of the environment of the browser it is installed on.
If you want to share data the different browser installation of the extension, you can emulate the behavior by setting up a web-based database server/API and use appAPI.request to send and receive data to/from the remote server.
[Disclosure: I am a Crossrider employee]

Single database for many domains approach

Good morning.
I have to build a system (php/mysql) that run in a 20 domains for 20 different cities (for example). The system that run in this 20 domains is identical, the database too.
My issue is: I pretend to create a single database to serve this 20 domains, controlling the cities by something like city_id.
I wish to know if this is the best practice, or if the right way is create one database to each city/domain.
The domains are hosted in the same server, the core system is out of public_html directory.
/mysystem_classes
/public_html/city1.com
/public_html/city2.com
/public_html/city3.com
/public_html/city20.com
To serve images, css and js I will work with something like a CDN.
Normally you would setup just one virtual host, install your application there and let all the domains point to that software. Which domain points to which website is not specified on the server level, but on the application level in that case.
TYPO3 for example works like that when building multiple sites with one instance of TYPO3 and the used MySQL database. (using TypoScript or the backend configuration to define which domain belongs to which site-ID)
Wordpress has a multisite feature, which could be set up easily to use several subdomains. It uses one database and a single software instance but can deliver multiple blogs to different domains. (e.g. city1.example.org, city2.example.org). You will need to setup a wildcard domain (i.e. *.exqample.org) to let all possible subdomains point to the single vHost. This is similar to how the basic Wordpress.com-Blogs work. See: http://codex.wordpress.org/Create_A_Network
I believe you are looking for Mysql replication.