精华内容
下载资源
问答
  • Adding SSL-support to MagentoWe have got many requests lately about howto add SSL (https)-support in Magento. Here is instructions on how toadd SSL-support to a Magento-installation.Who need

    Adding SSL-support to Magento

    We have got many requests lately about how to add SSL (https)-support in Magento. Here is instructions on how to add SSL-support to a Magento-installation.

    Who needs SSL?
    SSL is important for stores who want their customers to be sure everything they enter in the Account-area and Checkout-area is encrypted along the way from their browser to your server. Stores with payment-gateways where the customer type in their creditcard-information directly in Magento and is not transferred to a secure page at the creditcard-providers servers will also need SSL.

    So what do I need to get started?
    First of all, setting up an SSL-certificate can be complicated depending on your hosting-company’s facilities and it can also mess up the Magento-store - so make sure you know what you are doing at any time. We do NOT take any responsibility for the setup, blabla. You know the deal.

    So, back to what you need. First of all you of course need a valid SSL-certificate . You also need a dedicated  IP-address on the server you’re running Magento on. And last, you need proper access to the Magento-server (SSH-access).

    Step 1: Get the SSL-certificate and install it
    There are many companies offering SSL-certificated. Some cost a lot of money (those displaying your company’s name in green text in the left side of the URL in the browser - which most Online banks use. The cheaper ones, which are just fine for your needs offer a plain, secure certificated. RapidSSL is a company who sell the cheap ones, which works perfectly well.

    Installing the certificate is different on most hosting-systems so this you’d need to check with your hosting-provider or give Google a  try .

    Step 2: Get your own IP-address
    If you’re not very much into servers, Apache and hosting in general I’d recommend you just asked your hosting-provider to give you a dedicated IP address for your particular site. Tell you are going to use SSL and they should know what you’re talking about. Most hosting-providers charge a few extra bucks per month for a dedicated IP address and as long as they’re not talking about tens of dollars every month it should be fine.

    One important thing with the dedicated IP address is that it makes thing much easier if you get the IP set up on your domain before  you install Magento, as you’d most likely need to move Magento to a new location on the server if you decide to add SSL at a later time.

    Step 3: Adding SSL-support in Magento
    Ok, this is maybe the easiest part. First you should, depending on your server-setup, symlink your “secure” directory to your “public” directory. SSH into your server and - if you are using DirectAdmin - go to the following folder:
    ./domains/yourdomain.com/

    Now type “ls -l” and you should see a list of the folders. Now type the following command:
    “ln -s private_html public_html”

    This command might need be run as ‘root’ so make sure you have proper access to your box.

    Alternative in DirectAdmin:
    If you have the proper permissions in DirectAdmin you can go to Domain Setup -> Click your domain, and then enable “Make private_html symbolic link to public_html”. Click on Save and it should be symlinked automatically.

    Now you must log into Magento Admin -> System -> Settings -> Web and make sure the Secure Base URL is set to https ://www.yourstore.com (the Unsecure URL must not be changed to https).

    Congratulations! If you’ve done everything correct you should now see that you automatically get https in the address-bar on both the Account-pages and Checkout-pages.

    To see a working site with this functionality, add some Magento-goodies from our site in the cart and proceed to checkout, and buy it

    展开全文
  • How To Add Google Apps and ARM Support to Genymotion v2.0+ Original Source: [GUIDE] Genymotion | Installing ARM Translation and GApps - XDA-Developers ATTENTION(April 11th): Sadly Dropbox has in

    How To Add Google Apps and ARM Support to Genymotion v2.0+

    Original Source: [GUIDE] Genymotion | Installing ARM Translation and GApps - XDA-Developers

    ATTENTION(April 11th): Sadly Dropbox has informed me I've surpassed reasonable Bandwidth Usage and has temporarily disabled my Public Links. I don't blame them considering I've reached a steady 1400+ downloads per day, which equals an impressive 12.5+GB of bandwidth per day. Part of this is probably because people started Hot Linking my file for their guides. So for the foreseeable future I can't provide direct downloads of the ARM Translation, but I'll have plenty of Mirrors. I'm sorry to the numerous people that created Guides in numerous languages, since I have to kill the link in your Guides. Please don't hesitate to use one of my new links.

    Note(Feb 2nd): Contrary to previous reports, it's been discovered that Android 4.4 does in fact work with ARM Translation, although it is buggy. Follow the steps the same as before, just make sure you download the 4.4 GApps.

    UPDATE-v1.1: I've gotten more up-to-date builds of libhoudini and have updated the ZIP. This fixes a lot of app crashes and hangs. Just flash the new one and it should work.


    This guide is for getting back both ARM Translation/Support(This is what causes the "INSTALL_FAILED_CPU_ABI_INCOMPATIBLE" errors) and Google Play apps in your Genymotion VM.

    1. Download the following ZIPs:
    2. Next Open your Genymotion VM and go to the Homescreen
    3. Now Drag&Drop the Genymotion-ARM-Translation.zip onto the Genymotion VM window.
    4. It should say "File transfer in progress", once it asks you to flash it click 'OK'
    5. Now Reboot your VM using ADB or an app like ROM Toolbox. If nescessary you can simply close the VM window, but I don't recommend it.
    6. Once you're on the Homescreen again Drag&Drop the gapps-*-signed.zip(the name varies) onto your VM, and click 'OK' when asked
    7. Once it finishes, again Reboot your VM and open the Google Play Store.
    8. Sign in using your Google account
    9. Once in the Store go to the 'My Apps' menu and let everything update(fixes a lot of issues), also try updatingGoogle Play Services directly.
    10. Now try searching for 'Netflix' and 'Google Drive'
    11. If both apps show up in the results and you're able to Download/Install them, then congrats you now have ARM support and Google Play fully setup!


    原文地址: http://stackoverflow.com/questions/17831990/how-do-you-install-google-frameworks-play-accounts-etc-on-a-genymotion-virtu

    展开全文
  • How to add MyFaces support to a Sun JSF RI applicationIntroductionMyFaces does have its own implementation of the JSF specification. But if you already have a working JSF web app based on the Su

    How to add MyFaces support to a Sun JSF RI application

    Introduction

    MyFaces does have its own implementation of the JSF specification. But if you already have a working JSF web app based on the Sun JSF 1.1 reference implementation, you may want stay with it. The following describes the minimal steps necessary to add the MyFaces extensions to a Sun JSF 1.1 web app.

    • Versions these steps should work for:

      • Sun JSF 1.1.01

      • MyFaces 1.0.9 (success with version 1.1.1 has also been reported)

    • Notes:

      • The MyFaces version of Tiles Support will not work with this approach, but other components should work fine.

    Steps

    • Put the myfaces-extensions.jar and the commons-fileupload-1.0.jar in your WEB-INF/lib directory (or in the classpath of your application server.)

    • Add the following lines to your web.xml file:

    <!-- Extensions Filter -->
    <filter>
            <filter-name>extensionsFilter</filter-name>
            <filter-class>
                    org.apache.myfaces.component.html.util.ExtensionsFilter
            </filter-class>
            <init-param>
                    <description>
                            Set the size limit for uploaded files. Format: 10 - 10
                            bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
                    </description>
                    <param-name>uploadMaxFileSize</param-name>
                    <param-value>100m</param-value>
            </init-param>
            <init-param>
                    <description>
                            Set the threshold size - files below this limit are
                            stored in memory, files above this limit are stored on
                            disk.
                            Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
                    </description>
                    <param-name>uploadThresholdSize</param-name>
                    <param-value>100k</param-value>
            </init-param>
            <!--
            <init-param>
                    <param-name>uploadRepositoryPath</param-name>
                    <param-value>/temp</param-value>
                    <description>Set the path where the intermediary files will be stored.
                    </description>
            </init-param>
            -->
    </filter>
    <filter-mapping>
            <filter-name>extensionsFilter</filter-name>
            <url-pattern>*.faces</url-pattern>
    </filter-mapping>
    <filter-mapping>
            <filter-name>extensionsFilter</filter-name>
            <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    

    Note: you may need to change the url-pattern to match whatever pattern you are using (e.g. *.jsf instead of *.faces).

    • Add the following to your JSP page in order to use one of the MyFaces custom components:

    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> 
    

    That's it! You should now be able to add MyFaces components to your .jsp page.

     
    展开全文
  • Using Spring 4 WebSocket, sockJS and Stomp support to implement two way server client communication January 19, 2014 1 Comment One exciting new feature of Spring 4 is the support for We
    

    Using Spring 4 WebSocket, sockJS and Stomp support to implement two way server client communication

    One exciting new feature of Spring 4 is the support for WebSocket, SockJS and STOMP messaging. This allows two way communication between the server and its clients in a Spring MVC web application using the standard point-to-point and publish-subscribe messaging protocols. In this post, I will demonstrate how to set up a basic boilerplate project to start using this new feature. It is in part based on this article.

    Maven Setup

    First we need to add the Spring messaging modules in the POM file:

    <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring-messaging</artifactId>
     <version>4.0.0.RELEASE</version>
     </dependency>
     <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring-websocket</artifactId>
     <version>4.0.0.RELEASE</version>
     </dependency>

    Spring MVC Configuration

    Next, we need to add the message broker config to the Spring MVC config XML file.

    <beans
     ...
     xmlns:websocket="http://www.springframework.org/schema/websocket"
     xsi:schemaLocation="
     ...
    
    http://www.springframework.org/schema/websocket
    
     http://www.springframework.org/schema/websocket/spring-websocket-4.0.xsd">
    <websocket:message-broker application-destination-prefix="/app">
           <websocket:stomp-endpoint path="/hello">
                <websocket:sockjs/>
           </websocket:stomp-endpoint>
           <websocket:simple-broker prefix="/topic"/>
    </websocket:message-broker>
    <!-- Other MVC config omitted here-->

    The main thing here is the set up of the message broker for handling the message exchange between the server and its clients. This is done via the <message-broker> and its child tags. The tag <websocket:simple-broker> indicates we are using in-memory message broker.

    It is easy to understand together with the server and client codes so I will include them below first before attempting to give a bit more explanations by cross-referencing the client and server codes.

    Spring MVC Controller

    Below is my Spring MVC Controller

     @Controller
     public class MessageController {
          @MessageMapping("/hello")
          @SendTo("/topic/greetings")
          public Greeting greeting(HelloMessage message) throws Exception {
               return new Greeting("Hello, " + message.getName() + "!");
         }
    }

    The method argument HelloMessage and output Greeting are just POJOs representing the body of the messages being sent and returned.

    public class Greeting {
        private String content;
        public Greeting(String content) {
               this.content = content;
        }
        public String getContent() {
          return content;
        }
    }
    public class HelloMessage {
        private String name;
        public String getName() {
            return name;
        }
    }

    Client sockJS and STOMP codes

    On the client side, I use the sockJS protocol fallback option as outlined in the Spring documentation. The javascript codes are included below

    // Create stomp client over sockJS protocol (see Note 1)
     var socket = new SockJS("/hello");
     var stompClient = Stomp.over(socket);
    
     // callback function to be called when stomp client is connected to server (see Note 2)
     var connectCallback = function() {
          alert("connected!");
          stompClient.subscribe('/topic/greetings', function(greeting){
               alert(JSON.parse(greeting.body).content);
          });
     }; 
    
     // callback function to be called when stomp client could not connect to server (see Note 3)
     var errorCallback = function(error) {
          // display the error's message header:
          alert(error.headers.message);
     };
    
     // Connect as guest (Note 4)
     stompClient.connect("guest", "guest", connectCallback, errorCallback);

    Note

    1. The client starts by create a sockJS by specifying the endpoint (ie. /hello) to connect to and then a stomp client is created over the socket. The endpoint here should match that defined in the Spring MVC configuration in the lines. Note also the 2nd line referring to sockJS.

      <websocket:stomp-endpoint path=”/hello”>
      < websocket:sockjs/>
      < /websocket:stomp-endpoint>

    2. Then a callback function is created and assigned to a variable connectCallback. This is called when a successful connection is made by the stomp client. This allows us to start making subscriptions to messages (as in codes, repeated below) and sending messages. Note the subscription is for the topic “/topic/greetings”

      stompClient.subscribe(‘/topic/greetings’, function(greeting){
      alert(JSON.parse(greeting.body).content);
      });

    3. A error callback function is defined if stomp client fails to connect to server.
    4. This line makes the connection registering the callback functions.

    Now we are ready to send messages from the client, e.g. using the following javascript function

    // function to send message
     function fnSayHi() {
           stompClient.send("/app/hello, JSON.stringify({ 'name': 'Joe' }));
     }

    The message will be sent to the Spring MVC message handler method greeting() as defined via the annotation @MessageMapping(“/hello”).

     <websocket:message-broker application-destination-prefix=”/app”>

    Note the prefix “/app” is defined in the Spring config as  application-destination-prefix attribute of the message broker: Note also, the use of @SendTo annotation to direct the message to a given destination. I repeat the controller method below

     @MessageMapping("/hello")
     @SendTo("/topic/greetings")
     public Greeting greeting(HelloMessage message) throws Exception {
          return new Greeting("Hello, " + message.getName() + "!");
     }

    That’s it for now.

    About these ads
    展开全文
  • add exfat support to RHEL7

    千次阅读 2014-09-02 18:00:06
    Installed exfat support for RHEL7, based on the link below:
  • iPad 免费美国帐号 解决Please contact itunes support to complete this transaction问题
  • http://www.arckid.com/blog/amfphp/how-to-add-install-json-support-to-php-on-centos-in-10-steps/ We are using staging server inside ou
  • 原文地址::https://stackoverflow.com/questions/41178048/xcode-8-1-says-try-signing-in-again-or-contact-apple-support-to-resolve-account
  • Q. I am using Apache server and PHP5. How do I install install php gd support? A. PHP is used mainly in server-side application software
  • Before you begin to config your application, please ensure you have installed MS Outlook NOT Outlook Express. Ensure the following are set in uagent.cfg in client/bin directory: [InfraUIFramework]
  • 今天Norton Antivirus 2005忽然不知道怎么搞得,只要一打开Word文档,就蹦出标题上说的错误,而且还跳出来个Installer,不知搞什么鬼。Google了一下,发现是我昨天清理开始菜单中的快捷方式造成的。...
  • For years, support centers have focused on reacting to problems. According to research from SDI (Service Desk Institute), 67% of of a service desk’s time is spent firefighting. This reactive approach...
  • 报错Failed to resolve: support-v4

    千次阅读 2018-10-23 18:25:31
    Failed to resolve: support-v4 #记录一个旧工程,编译报错Failed to resolve: support-v4 Clean Build报错如下 Could not find support-v4.aar (com.android.support:support-v4:27.1.1). Searched in the ...
  • Introduction to Support Vector Machines

    千次阅读 2013-12-22 22:27:11
    In this tutorial you will learn how to: Use the OpenCV functions CvSVM::train to build a classifier based on SVMs and CvSVM::predict to test its performance. What is a SVM? A Su
  • http://stackoverflow.com/questions/2061094/importing-maven-project-into-eclipse http://www.mkyong.com/maven/how-to-convert-maven-java-project-to-support-eclipse-ide/
  • 完整错误信息如下: Failed to resolve: com.android.support:support-v4:23.1.1 Install Repository and sync project  Show in FileShow in Project Structure dialog
  • 通过Android Studio打开工程时报错“Failed to resolve: com.android.support:support-v4:19” 是Android Studio中的Support版本出现错误。 下载Support Library 21.0.3(当前最新版本),其中包含supportive、v7...
  • tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'NcclAllReduce' used by node AllReduceGrads/NcclAllReduce (defined at /home/zw/anaconda3/envs/tf_...
  • failed to resolve: com.android.support.support:appcompat-v7:29.+ 报错:failed to resolve: com.android.support.support:appcompat-v7:29.+ 这个一般就是SDK版本太高了,file—>settings—>updates查看你...
  • 我在Android工程中新建了一个Java library,在dependency中加入了"com.android.support:support-annotations:25.3.1"这个依赖库,结果在编译时报错: 在网上找的原因说是因为和android其他库的版本号不统一,但是...
  • Failed to resolve: support-fragment错误。今天在github上下载了一个项目,导入到android studio的时候,出现了 这个错误 百度了很多遍也找不到原因,后来博主想会不会是依赖冲突了,就先注释掉一部分依赖。编译...
  • Error:Failed to resolve: com.android.support:support-annotations:26.0.2 Install Repository and sync projectOpen FileShow in Project Structure dialog 解决方法:在项目的build.gradle里面最上层填写这样...
  • 出现该问题的环境: ...在编译成功后,试图调试某些工具时出现“Failed to determine path to Apple Application Support directory”, 解决方法是编辑注册表,见图   新添加Apple Application Sup
  • 之前在从git上拉下来的新项目,发现编译的...Failed to resolve: support-core-ui Open File Failed to resolve: runtime Open File 后来在项目下的build.gradle中加入 maven { url ‘https://dl.google.com...
  • 今天在开发工程中碰到了这样的一个问题,Error:Failed to resolve: com.android.support:support-annotations:27.0.1,报错信息如下图: 奇怪的是早上还好着下午突然就报错了,经过一番测试找到问题...
  • ERROR: Failed to resolve: support-media-compat Affected Modules: app ERROR: Failed to resolve: support-core-utils Affected Modules: app ERROR: Failed to resolve: support-compat Affected Modules: app ...
  • 在项目的build.gradle里面最外层添加configurations.all { resolutionStrategy.force 'com.android.support:support-annotations:23.1.0' } 使用指定版本的support-annotations
  • Error:Failed to resolve: support-media-compat 找不到??? 我的build是26

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 468,123
精华内容 187,249
关键字:

supportto