w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I only allow access to my MySQL database from my iOS app? (Using webapp as gateway to db)
As stated before, there is no 100 % security possible. But there are several solutions that put together give great security. Https As you point out, this is an important part , as it prevents sniffing. Sessions Use sessions and don't allow any request without a valid session ( except the first, that must authenticate the app ). Fingerprint Check the user agent and set extra http headers, to get a fingerprint unique to your app. ( Still someone could sniff, but he needed to use curl or similar. ) Obfuscate requests Build your query string and apply a hash function. The server needs to implement the reverse function. ?43adbf764Fz instead of ?a=1&b=2 Encrypt This goes a step further. Use a shared secret to calculate a hash. On the server repeat the same. This is already stro

Categories : PHP

How to access to a Message Event data variable into a Gateway costraint definition in jbpm5
Not sure what's happening exactly without seeing the actual bpmn2 xml, but it seems you're using variables called 'cnr_message' and 'emt_message' somewhere (in action scripts or conditions) but you haven't defined them as a process variable? The compilation error is not directly complaining about a_message so if you defined that as a process variable, that seems to be working correctly at first glance.

Categories : Java

How to configure database access during runtime with anorm?
Did you try to implement a delegate to the anorm driver? See this question for reference: Encrypting db password in application.conf for Play 2.0/anorm

Categories : SQL

WCF: Configure roles to access database resources
Well, this depends on many factors. You have to first answer at least those two questions: who is responsible of authentication: your active directory (user valid against AD), the database (SQL Server user), or do you use a custom authentication system (User table in your DB)? who is responsible of authorization: your active directory (user group), the database (SQL Server roles), or do you use a custom authentication system (Role, UserRole tables)? When you answer those questions, that are related to the way you want to manage security (not how to actually implement this with WCF), then you can find a way using WCF. More specifically, you'll have to choose the WCF security configuration for authentication: Message vs Transport security Windows (great to integrate your application

Categories : C#

Configure Drupal 7 using Domain Access module
Since you already can publishing in all domains and those changes are visible in all domains, I guess that you have the domains already well configured. This is, all domains pointing to the same Drupal project and using the same database. So, you have three different questions: DIFFERENTIATE THE CONTENT FROM EACH DOMAIN: Assuming that you have the domains well configured, and the domain access module is installed correctly, you can publish to a specific domain by selecting which domain to publish the Basic Page, a domain access option now available. (Be sure to test that with an user without permissions to see content from all domain - like the administrator). CHANGE CONTENT FROM A DOMAIN AND AFFECT ONLY THAT DOMAIN: If the content was published only to a specific Domain it should chang

Categories : Drupal

Configure WCF WebSite to support RESTful access from a browser
Mark the Operation in your contract (IService interface) with following attribute - [WebInvoke(Method = "GET", BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, UriTemplate="GetData/{id}")] And then try invoking your service from browser by adding GetData/[any number]

Categories : C#

Configure a sitecore role to access the system folder
First off, make sure the user has the Entire Tree and Hidden Items options ticked in the View tab. Also, to check if it's access rights you can use the Access Viewer to see whether the user has access rights. If they don't you can click on the Read right (for instance) and see why they don't have access to the System node (for example, which role Denies the read access). For more information, please check the Security Reference document on SDN.

Categories : Security

How to configure docker to be able to have internet access via wireless connection?
I see two possibility: 1) Make sure your ip_forward is set to 1 (sysctl -w net.ipv4.ip_forward=1) 2) Make sure it is not a DNS issue: try docker run base ping google.com, if it does not work, you can set custom dns server: docker run -dns 8.8.8.8 base ping google.com.

Categories : Misc

How to access the user object in the form configure method
You shpuld pass the user object as an option. Here is an exapmle: class ProductForm extends BaseProductForm { public function configure() { // or use an instance variable if you need the user in an another method too $user = $this->getOption('user'); if (!$user instanceof sfBasicSecurityUser) { throw new InvalidArgumentException('A user object is required as "user" option in ' . __METHOD__); } // do something with the user... } } $form = new ProductForm(array(), array('user' => $this->getUser()));

Categories : PHP

How to configure embedded jetty to access Jersey resources?
You're mixing 2 versions of Jersey in your code together - ServletContainer from Jersey 2.x (package org.glassfish.jersey.*) and properties from Jersey 1.x (package/prefix com.sun.jersey.*). To deploy your app using Jersey 2.x change these two lines h.setInitParameter("com.sun.jersey.config.property.resourceConfigClass", "com.sun.jersey.api.core.PackagesResourceConfig"); h.setInitParameter("com.sun.jersey.config.property.packages", "resources"); from your main method to h.setInitParameter(ServerProperties.PROVIDER_PACKAGES, "resources"); and check the other ServerProperties you may find useful.

Categories : Java

Symfony, configure firewall to grant access to authenticated and anonymous users
You can use twig's is_granted() function to show different content to users and guests. {% if is_granted('IS_AUTHENTICATED_ANONYMOUSLY') %} {# ... only non logged-in users content ... #} {% endif %} ... or ... {% if is_granted('ROLE_USER') %} {# .. user's content ... #} {% endif %}

Categories : Security

How to configure the virtual host in apache to let the users access those resources with certain file extensions only?
you can set the apache directories by allowing access for images folder and deny the access to the others <virtualhost> Documentroot /var/www Alias /images /path/to/images <Directory "path/to/images"> Options Indexes FollowSymLinks AllowOverride None Allow from all # allow access to images only </Directory> <Directory "path/to/apps"> Options Indexes FollowSymLinks AllowOverride None Deny from all </Directory> </virtualhost>

Categories : Apache

TFS 2012 Configure Features Error - Unable to configure Planning Tools
Try this: Rename your User Story to "Product Backlog Item". Set the Initial State of you "Bug" to "Active". Try the Upgrade Rename your User Story Type back to "User Story". Remove the "Active" Initial State. Export your Common Process Config and add in your "Proposed" State into the Bug Configuration (see below). Import your Common Process Config. Example BugWorkItems <BugWorkItems category="Microsoft.BugCategory"> <States> <State type="Proposed" value="Proposed" /> <!-- more --> </States> </BugWorkItems>

Categories : Tfs

Any way configure to configure visual studio mvc build views release mode
Are you specifically setting something to compile the views like the Razor Generator? (http://razorgenerator.codeplex.com/) If not views in MVC are not compiled.

Categories : Asp Net Mvc

how to configure multiple users to access multiple ressources with different rights?
Spring Security has a special ACL module to handle such situations. The basic idea is that each domain object / ressource may have separate access control list. You need to fill this list with appropriate permissions and add corresponding checks in your code. You can have parent -> child relations between the objects to reduce number of permissions. Check it out.

Categories : Authentication

Zend_Db_Profiler_Firebug get 502 bad gateway
This is related to the problem of nginx with the Wildfire protocol headers. See this Nginx 502 Bad Gateway error ONLY in Firefox The proposed solution given there is to change the nginx configuration to increase buffer size proxy_buffers 8 16k; proxy_buffer_size 32k; Bug database of FirePHP Project https://code.google.com/p/firephp/issues/detail?id=128

Categories : PHP

Get mac address from gateway
Please try netstat -nr | grep default | awk '{print $1}' If you do lots of bash scripting, you should probably get familiar with awk, which does this type of things (and is pretty mighty by the way).

Categories : Osx

502 Bad Gateway HAproxy
First, enable haproxy logging. It will simply tell you why it is giving the 502's. My guess is that the backend "localhost:8080" is simply not able to keep up or is not able to get a connection within 4000ms "timeout connect 4000".

Categories : Linux

php loop 502 Bad Gateway
I think the problem is that your script is timing out, you can overcome this by using set_time_limit(0) in you script or by changing the max_execution_time in your php.ini: while(1) { set_time_limit(0); // do something } You also need to increase your memory_limit by editing your php.ini and restart your webserver. Read documentation for set_time_limit()

Categories : PHP

502 Bad Gateway Django
It sounds like your uWSGI instance has died or is failing in such a way that it does not know how to answer. Start by watching the nginx logs in addition to the uWSGI logs and see how far it gets. Perhaps the file you are uploading is so large it is choking some front streaming portion. Edit your post to indicate the output of the two log files and we will see.

Categories : Django

502 Bad Gateway TimeOut
Can you get the substatus of the 502 errors (from the IIS logs)? Also, not sure how you're doing it but have a look at the following question (linked below) to see how to write to Excel ranges quickly. Using the interop methods is devastatingly slow. If you are, then maybe changing to this strategy will help you solve your problem. Write Array to Excel Range

Categories : C#

Configuring SMS gateway?
Before you go on implementing something by yourself, I suggest that you check services that already do it well. Maybe you can just use them? One such easy-to-use service is Twilio.

Categories : Misc

How to use iphone as a gateway in SMSLib?
You can't access any of iOS SMS settings nor the messages. Java is also not support natively on iOS. It is also not possible to do any low level GSM calls like SMS. If you want to send a SMS in iOS you will need to use the MFMessageComposeViewController

Categories : Java

How to use Conbase API as a payment gateway?
This is the un-official library for coinbase api that is in node.js https://github.com/otakup0pe/nodecoinbase. Coinbase has a very nice documentation with their api here: https://coinbase.com/api/doc/1.0.html and you might be interested in the transactions. Also if you just planning to sell items, you can just use the "Bitcoins Accepted Here" button VIA the Merchant tools > Tools page.

Categories : Node Js

SMS gateway integration with Tigase
There is no SMS gateway out of the box, but it is very easy to implement one. Just create a Tigase component which intercepts messages and forwards them as SMS. Some of our customers have implemented SMS, iPhone, Android, BB gateways already.

Categories : Misc

GCM push notifications cause 502 Bad Gateway
According to the GCM guide, all 5xx error codes should be treated as temporary errors, and requests that get these errors should be retried : 5xx Errors in the 500-599 range (such as 500 or 503) indicate that there was an internal error in the GCM server while trying to process the request, or that the server is temporarily unavailable (for example, because of timeouts). Sender must retry later, honoring any Retry-After header included in the response. Application servers must implement exponential back-off. I don't think 10 messages a second is too quick. As long as your code handles this error and retries, I don't think there should be any problem.

Categories : Android

Payment Gateway Android and iOS
Use http://www.zooz.com/ (can use for paypal and credit/debit integration). And its simple.. Aslo https://stripe.com/

Categories : Android

Sending an SMS via sms gateway in delphi
Read the documentatation again more carefully: Send a POST call to http://www.FreeSMSGateway.com/api_send with the following POST variables: access_token: Your API Access Token from your account dashboard message: The url encoded message, 160 characters or less send_to: This value need to be "existing_contacts" to send to all your existing contacts in your account or "post_contacts" to supply a custom list of contacts post_contacts: A JSON array of contacts to send the message to instead of your existing contacts. Only required is "send_to" is set to "post_contacts" Your send_to param value does not meet the requirements stated. You are passing the specific contact number in the send_to field, but that contact must be passed in the post_contacts field instead, e

Categories : Delphi

Sms gateway foreach error
foreach($fields_string as $key=>$value) $fields_string is a string, not an array, and you've just initialized it to be empty. Perhaps you're meaning to iterate over $fields here?

Categories : PHP

mvc4 acting as a gateway
Since nobody gave me an answer i'm gonna suggest myself to try with this: http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing seems that reverse proxy can do the trick, but i need to do it with two separate iis

Categories : Asp Net Mvc

Does setConnectTimeout not affect the gateway timeout?
You should set read timeout by setReadTimeout. If you got a 504, it means that the connection is ok, but waiting too long to read something from it. See more here: http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html#setReadTimeout(int)

Categories : Java

502 Bad Gateway on WSGI app using Nginx + Cherrypy
When I've seen this (not with CherryPy, but with Gunicorn/others), it's been because the server is restarting and Nginx can't connect to it. Is anything else happening on the server which might be causing CherryPy to restart?

Categories : Python

Using Spring EL to decide which outbound gateway to use
If you have two separate web service end points and a way to determine which one to use per message then a Spring Integration router would be better suited to directing your messages around. This has the added advantage that you can do further processing on your messages specific to the endpoint prior to sending. There are many many ways to configure a router, including writing an entirely custom one, so I suggest reading through that whole section to see what will work best for you. A quick example based on message type: <int:payload-type-router input-channel="requests"> <int:mapping type="my.business.WebServiceARequest" channel="wsA" /> <int:mapping type="my.business.WebServiceBRequest" channel="wsB" /> </int:payload-type-router> <int-http:outbound-g

Categories : Spring

Nginx + FastCGI + C throws 502 Bad Gateway
Its look like your php5-fpm is not running om 8000 port as you included in nginx conf fastcgi_pass 127.0.0.1:8000; You can verify your php5-fpm is running on that port by using following commands grep -Hr "8000" /etc/php5/fpm/pool.d For setup php5-fpm on 8000 open following file and change listen to 8000 port vim etc/php5/fpm/pool.d/www.conf now search listen and replace it with following line listen = 127.0.0.1:8000 Save the file and restart php5-fpm

Categories : C

first data payment gateway (premium)
you have to take SSL licence from your web hoster for yor site After installation if that will not work then try to add below code in your function.php of theme for particular page with ssl add_action('wp_head', 'apply_ssl_to_specific_page'); add_action('admin_head', 'apply_ssl_to_specific_page'); add_action('login_head', 'apply_ssl_to_specific_page'); function apply_ssl_to_specific_page(){ <?php if ( is_page('your-checkout-page-slug') ) { if($_SERVER['SERVER_PORT'] != '443') header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); } else { if($_SERVER['SERVER_PORT'] == '443') header('Location: http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); } } replace your-checkout-page-slug with your page sl

Categories : Wordpress

504 Gateway Time-out Error on PHP Script
write a info file on server <?php phpinfo(); check max whats comes here if its return 0 then there is something different to do else make sure you changed on correct ini file You can check your ini file location also from phpinfo() function If you still can't fix it please response again :)

Categories : PHP

WP Ecommerce Payment Gateway for Belgium
There is very limited document for creating your own payment method in wp-ecommerce, Best method i would suggest, Look at default payment like authorize.net , paypal and see , Which methods/class they have used. Make clone of this functions with your Belgium Payment API & Response.

Categories : Wordpress

How to use payment gateway in phonegap android
Here's the link to PayPal Plugin. If it helps. I have used it in one of my projects earlier !

Categories : Android

https Request for CSS file gives 502 Bad Gateway
try calling your css by just <link href="./test/Style/Secure/en/BodyStyle.css" rel="stylesheet" /> When you are using https, it binds it to your whole entire domain name. If want your css3 to be hidden from the rest the public, this is impossible when you are importing through html. Browsers need this file to render ur html designs properly.

Categories : Asp Net

ICICI Payment Gateway Integration in Magento
I got the problem if any body face this problem. First if your OS is Linux then replace backslash with forward slash in PostLibPHP file and on line 27 in this file as $fp = fopen (realpath($_SERVER['DOCUMENT_ROOT'] . "/magento/app/design/frontend/default/default/template/testssl" ) ."//sfa.properties","r"); remove /magento or correct it so that given path point to correct testssp file path.

Categories : Magento



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.