vendredi 27 octobre 2017

Apache re-direct from HTTP to HTTPS

All, I'm having a issues with redirecting from http to https. My site comes up without any issue when you use either protocol. But my redirect will never work. I'm using Ubuntu 17.04 and Apache 2.4.25. I have executed sudo a2enmod rewrite and have restarted apache via sudo restart apache2.

In addition, I have created an .htaccess in the root of the directory that my index.html exists. The contents of my .htaccess file is below. Is there anything wrong with the syntax or how I'm trying to enable redirect on my ubuntu server? Thanks for any help!

NameVirtualHost *:80

DocumentRoot /var/www/html # the final correct redirect RewriteEngine on RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteRule . https://www.abcdef.com [L,R=permanent]




I need help web a website and domain ideal

I purchased a domain name: www.pricebop.com
I am thinking of creating a website which is similar to ebay or a website where people can find the lowest price from local stores. The stores can index the company and we receive commission from local store

Can anyone provide any suggestion what I should use the domain for




Eclipse, Dynamic web project, Deployment Assembly NoClassDefFoundError

I built a Dynamic Web Project in eclipse and Added a console application to the build path as well as the Deployment Assembly.

The project compiles fine, but in runtime, when I use a method from the added project, the I get error - NoClassDefFoundError: org/kie/remote/client/api/RemoteRuntimeEngineFactory

The console application runs fine when I run locally.

Is there something else I'm missing?




Edit text in Facebook Messenger contenteditable

To compose messages in Messenger, Facebook uses <div contenteditable="true"></div> as the input element. When I open browser devtools and change the text of the message I'm currently composing, it immediately reverts back to the previous text.

I'm making a Find & Replace extension (http://ift.tt/2yMiElQ) that needs to be able to insert text into the contenteditable but simply changing the DOM node is immediately reverted by their JavaScript.

Is there any other way to simulate typing in the input text (using a browser extension or JavaScript in general)?

UPDATE: I can duplicate the DOM node and then the JavaScript listeners are removed, but then the internal JavaScript variables are never updated with my new text.




Simulate GPS Tracker

I need help finding a tool that simulates the behaviour of a GPS Tracker that sends location data (coordinates) based on the NMEA Protocol to a TCP/IP server. The GPS Simulator should ideally run on windows.

I essentially need a way to generate location data and send it to my server. I am testing my the geofence component of my web application.




Is it possible to create web pages in C++?

I see on some Wikipedia pages of the websites such as Quora that they are written in C++. If the web languages are HTML, CSS and JavaScript what is the reasoning behind creating web pages in C++?




Make the Link NOT Editable asp.net c# Page

I have a page there is a button that generates a Link like this.

  private string GenerateLINK(string NameID)
    {

        string NameID= ds.Tables[0].Rows[0]["FName"] + " " + ds.Tables[0].Rows[0]["LName"];

        string sQS = ID+ "|" + ClientName;

        var xCrypto = new CryptoServer();
        string Vector= null;
        string sEncrypted = null;

        xCrypto.Encrypt3DES(sQS, ref sEncrypted, ref Vector);

        string sURL = sEncrypted + "#######" + Vector;
        sURL = Server.UrlEncode(sURL);
        sURL = "http://ift.tt/2zJXggo" + sURL;
        return sURL;
    }

This then gets sent to a user who clicks on it and goes to a page. Now the issue is I take the link like this and DCode it.

   private void DecryptQuerystring()
{
    var sQS = Request.QueryString["s"];
    sQS = Server.UrlDecode(sQS);

    var idelim = sQS.IndexOf("###X####", StringComparison.Ordinal);

    var sIv = sQS.Substring(idelim + 8);
    sQS = sQS.Substring(0, idelim);

    var xCrypto = new ICECrypto.CryptoServer();
    sQS = xCrypto.Decrypt3DES(sQS, sIv);

    string sID = sQS.Substring(0, sQS.IndexOf("|"));
    studentID = sID;
    Name = sQS.Substring(sQS.IndexOf("|") + 1); 
    Welcome.InnerText = "Welcome " + sQS.Substring(sQS.IndexOf("|") + 1);

}

The Problem is when the User gets there and if he puts in any word in the link it breaks the whole page showing the Server Error. I want user to NOT to be able to Edit the Link insert any thing in it. Any clue? Thanks in advance!