mercredi 2 janvier 2019

How do I achieve a similar effect is this map while scrolling?

I really like the effect MapBox are using for their features page. I have seen this before, where the content on the right is scrollable, but the content on the left is fixed animated.

See this example: https://www.mapbox.com/maps/streets/

If anyone can point me in the right direction for how to achieve this, it would be most appreciated.

Thanks.




YouTube Video to MP3 Conversion using website

I'm trying to make program that can download YouTube videos as mp3 files.

I used this site fbtube.biz in order to achive that.

So, i downloaded content of https://fbtube.biz/?c#?v=JePnQ1gSagc where JePnQ1gSagc is video id, now i have to get link to mp3 file(in this case https://fbtube.biz/get?video_id.....) but there is no link in downloaded content.

I noticed that chrome developers tools(ctrl+shift+j, tab Elements) show that link and view source(ctrl+u) option in chrome gives me the same result which i get by downloading page using java.

How can i get that link?




Can not read response from server. Expected to read 4,739,923 bytes, read 17 bytes before connection was unexpectedly lost

The following error message occurred when I used Eclipse to connect Mysql in the cloud server So far, this problem has not been solved. I don't know why this happened. Using Navicat, MySQL can be connected.

 

    ** BEGIN NESTED EXCEPTION ** 

    com.mysql.jdbc.CommunicationsException
    MESSAGE: Communications link failure due to underlying exception: 

    ** BEGIN NESTED EXCEPTION ** 

    java.io.EOFException
    MESSAGE: Can not read response from server. Expected to read 4,739,923 bytes, read 17 bytes before connection was unexpectedly lost.

    STACKTRACE:

    java.io.EOFException: Can not read response from server. Expected to read 4,739,923 bytes, read 17 bytes before connection was unexpectedly lost.
        at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997)
        at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:611)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1044)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2775)
        at com.mysql.jdbc.Connection.(Connection.java:1555)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:247)
        at com.minlu.basedao.BaseDao.(BaseDao.java:33)
        at com.minlu.basedao.MainCalss.main(MainCalss.java:5)


    ** END NESTED EXCEPTION **



    Last packet sent to the server was 0 ms ago.

    STACKTRACE:

    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: 

    ** BEGIN NESTED EXCEPTION ** 

    java.io.EOFException
    MESSAGE: Can not read response from server. Expected to read 4,739,923 bytes, read 17 bytes before connection was unexpectedly lost.

    STACKTRACE:

    java.io.EOFException: Can not read response from server. Expected to read 4,739,923 bytes, read 17 bytes before connection was unexpectedly lost.
        at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997)
        at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:611)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1044)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2775)
        at com.mysql.jdbc.Connection.(Connection.java:1555)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:247)
        at com.minlu.basedao.BaseDao.(BaseDao.java:33)
        at com.minlu.basedao.MainCalss.main(MainCalss.java:5)


    ** END NESTED EXCEPTION **



    Last packet sent to the server was 0 ms ago.
        at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:641)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1044)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2775)
        at com.mysql.jdbc.Connection.(Connection.java:1555)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:247)
        at com.minlu.basedao.BaseDao.(BaseDao.java:33)
        at com.minlu.basedao.MainCalss.main(MainCalss.java:5)


    ** END NESTED EXCEPTION **

 

Is the "user name" the current library name or the'root'name? Is'PASSWORD'the current library password or'root' password here?

  

    package com.minlu.basedao;

    import java.io.IOException;
    import java.io.InputStream;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import java.util.Properties;

    public class BaseDao {
        private static String USER = "minlu_****"; 

        private static String PASSWORD = "*******3aFCDi";//自己创建数据库所设置的密码 

        private String MYSQL_URL="jdbc:mysql://47.244.***.***:**/minlu_****"; 

        private static Connection conn = null; 

        PreparedStatement pre = null;// 预编译对象 

        public Connection getConn() { 
            return conn; 
        } 

        public static void setConn(Connection conn) { 
            BaseDao.conn = conn; 
        } 

        public BaseDao() 
        { 

            try { 
                Class.forName("com.mysql.jdbc.Driver");//加载驱动 
                System.out.println("加载驱动成功");
            } catch (ClassNotFoundException e) { 
                // TODO Auto-generated catch block 
                System.out.println("找不到驱动程序类 ,加载驱动失败!"); 
            }

            try { 
                conn = DriverManager.getConnection(MYSQL_URL, USER, PASSWORD);//创建数据库链接对象 
                System.out.println("数据库链接成功2");
            } catch (SQLException es) { 
                // TODO Auto-generated catch block 
                System.out.println("数据库连接失败!!!"+es.getMessage()); 
            } 
        } 
    }

  



mardi 1 janvier 2019

I have renamed my old URL but google is showing "Duplicate, submitted URL not selected as canonical"

I have recently renamed my website pages URL and now when I submit my new sitemap google is not indexing my new URL it is showing "duplicate, submitted URL not selected as canonical". It is still showing old URL in google search so I block the old URL using google webmaster. How to solve this issue how to index my new renamed URL and also how to remove old URL from google index ?




Android webview not working for particular websites

In my app I have developed webview for my college website. But some websites are runing good. But some websites such as cit.studentportal.in is not working Home page is showing... But Login inside is not working not opening homepage for my student ID.

Please, Please Some one help me;

I refered HTML5test it shows websql is diabled. I Think it may be the problem.

Please help me!!!




Security vulnerabilities involved with Base64 encoded url

I have an API, when trying to access it through a web application , I am making ajax get and post requests.

As I am new to this, I am wondering what the security concerns are with respect to the content type.

Right now I know of two content types I can POST the data as:

  • Base64enoded URL.

  • JSON

If I am passing the data as encoded url, the data will appear in the query string.

Even if Base64encoded would'nt it be a bad way of passing sensitive information?

I read several articles and most of them said JSON or URL encoded wouldn't matter much in terms of security.

What are the security breaches that I must be concerned with , when looking at the content type used to pass data between the application and the API?




How to open link in external browser instead of in-app (LINE APP)?

I'm doing a task where on click on a link in LINE APPS it needs to open in external browser instead of LINE APP in app browser. Is there any code to do that kind of conditions?