Category Archives: Windows

How to Solve Apple Mac installs Axure to open error for the first time

Axure RP 9 Chinese version for Mac cracked version (interactive product prototype design tool)

An error is reported when installing Axure on Apple Mac for the first time, as shown in the figure

I tried to uninstall and reinstall. Axure9 can’t be replaced with axure8. What should I do? Here is the solutions. Let’s have a look!

  1. Select the menu bar and go-personallyclick to enter

  1. Go to the home directory, shortcut key shiftcommand+ to >open hidden files, then find the file in this directory  .config, right-clickShow Introduction

  1. Add your currently logged-in account in Sharing and Permissions at the bottom

Verify whether it is added: Double-click the .config test after adding it. If it can be opened, the addition is successful. Note that read and write should be selected for the permissions on the right. Until you can open the config folder

  1. After opening, you will find that there is a configstore folder in it. You can’t open it by double-clicking. The steps to change the permissions are the same as before.

  1. After the configstore folder is opened, then open the Axure software

OK, it’s done

Idea Run Scala Error: Exception in thread “main” java.lang.NoSuchMethodError:com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V

I.Description

Using idea + Scala + spark, the running program code is as follows:

package cn.idcast.hello

import org.apache.spark.rdd.RDD
import org.apache.spark
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext

/**
 * Author itcast
 * Desc Demo Spark Starter Case-WordCount
 */
object WordCount_bak {
  def main(args: Array[String]): Unit = {
    //TODO 1.env/preparesc/SparkContext/SparkContext execution environment
    val conf: SparkConf = new SparkConf().setAppName("wc").setMaster("local[*]")
    val sc: SparkContext = new SparkContext(conf)
    sc.setLogLevel("WARN")

    //TODO 2.source/read data
    //RDD:A Resilient Distributed Dataset (RDD): Resilient Distributed Dataset, simply understood as a distributed collection! It is as simple to use as an ordinary collection!
    // RDD [is a row of data]
    val lines: RDD[String] = sc.textFile("data/input/words.txt")

    //TODO 3.transformation/data manipulation/transformation
    //cut:RDD[one word]
    val words: RDD[String] = lines.flatMap(_.split(" "))
    //record as 1:RDD[(word, 1)]
    val wordAndOnes: RDD[(String, Int)] = words.map((_,1))
    //group aggregation:groupBy + mapValues(_.map(_. _2).reduce(_+_)) ===>group+aggregate inside Spark in one step:reduceByKey
    val result: RDD[(String, Int)] = wordAndOnes.reduceByKey(_+_)

    //TODO 4.sink/output
    //direct output
    result.foreach(println)
    //collect as a local collection and then output
    println(result.collect().toBuffer)
    //output to the specified path (can be a file/folder)
    result.repartition(1).saveAsTextFile("data/output/result")
    result.repartition(2).saveAsTextFile("data/output/result2")
    result.saveAsTextFile("data/output/result3")

    // For easy viewing of the Web-UI you can let the program sleep for a while
    Thread.sleep(1000 * 60)

    //TODO 5. Close the resource
    sc.stop()
  }
}

(forget the screenshot) an error is reported in the result: exception in thread “main” Java lang.NoSuchMethodError:com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;) V

It is said on the Internet that the jar package conflicts, but it does not solve the problem


II.Solution

Root cause of the problem: the scala version of windows is inconsistent with the scala version of spark, as shown in the figure:

This is spark’s own version, 2.12.10

I installed 2.12.11 on windows (forgot the screenshot), and later replaced it with 2.12.10 (reinstallation):

After that, it runs successfully without error

 

TS eslint angle bracket Error: Parsing error: Identifier expected

Today, I configured the next eslint. There was an error report, which made me neither know how to modify nor how to turn off the relevant inspection of eslint. I was very distressed. I pondered for a while and recorded it. After all, I just used a for loop. It’s not fun not to use it

Error reporting location

Error reporting reason

Angle bracket type assertions are used earlier, which is probably because eslint is not suitable for ts

Error modification

Replace angle bracket type assertion with as type assertion

No more error reporting

[Solved] Windows ADB devices port is occupied error: cannot connect to daemon

Windows ADB devices reports an error cannot connect to daemon because the port is occupied

Solution:

1. View the port occupation process

netstat -ano |findstr 5037

2. View the program corresponding to the process

tasklist |findstr 23568

3. Upon investigation, tadb was found Exe, Tencent computer manager is installed on the computer, and this program will be generated when he connects to the mobile device, so you need to kill this process, use taskkill, and use taskkill /?View its usage

C:\Users\Rivamed001>TASKKILL /?

TASKKILL [/S system [/U username [/P [password]]]]
         { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F]
Description:
    Use this tool to terminate a task by process ID (PID) or image name.
Parameter list:
    /S system Specifies the remote system to connect to.
    /U [domain\]user Specifies the user context in which this command should be executed.
    /P [password] Specifies the password for the supplied user context. If ignored, prompt for
                           Enter.
    /FI filter Applies a filter to select a group of tasks.
                           The use of "*" is allowed. For example, image name eq acme*
    /PID processid Specifies the PID of the process to be terminated.
                           Use TaskList to obtain the PID.
    /IM imagename Specifies the image name of the process to be terminated. The wildcard '*' can be used to
                           Specify all task or image names.
    /T Terminates the specified process and the child processes enabled by it.
    /F Specifies to force the termination of the process.
    /F                    Displays a help message.

Filter:
    Filter name Valid operators Valid values
    ----------- --------------- -------------------------
    STATUS eq, ne RUNNING |
                                            NOT RESPONDING | UNKNOWN
    IMAGENAME eq, ne Image name
    PID eq, ne, gt, lt, ge, le PID value
    SESSION eq, ne, gt, lt, ge, le Session number.
    CPUTIME eq, ne, gt, lt, ge, le CPU time in the format
                                            hh:mm:ss.
                                            hh - hours, mm - minutes, ss - seconds.
                                            mm - minutes, ss - seconds
    MEMUSAGE eq, ne, gt, lt, ge, le memory usage in KB
    USERNAME eq, ne user name in the format [domain\]user
    MODULES eq, ne DLL name
    SERVICES eq, ne service name
    WINDOWTITLE eq, ne window title
    Description
    ----
    1) The /IM toggle can only use the wildcard '*' if a filter is applied.
    2) Remote processes always have to be forcibly (/F) terminated.
    3) The "WINDOWTITLE" and "STATUS" filters are not supported when specifying a remote machine.

For example:
    TASKKILL /IM notepad.exe
    TASKKILL /PID 1230 /PID 1241 /PID 1253 /T
    TASKKILL /F /IM cmd.exe /T
    TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*"
    TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /IM notepad.exe
    TASKKILL /S system /U domain\username /FI "username ne NT*" /IM *
    TASKKILL /S system /U username /P password /FI "IMAGENAME eq note*"

Access denied during use

The reason is: the permission is not enough. Open CMD with administrator permission

4. Finally, the device is successfully connected

[Solved] Chrome Browser uploads files for a long time interrupts and reports an error: net :: ERR_NETWORK_IO_SUSPENDED

Upload large files, obtain the upload progress through the interface, and constantly update the progress. If the browser is not operated for about 20 minutes, the upload will be interrupted and an error net:: err will be reported_ NETWORK_ IO_ SUSPENDED

reason:

It is a protection mechanism of Google browser. If the web page is not operated for 15 minutes, the network request will be interrupted.

Solution:

Create a div with an interval of time to simulate the mouse click event and automatically trigger the click.

let  timeDiv = document.createElement('div');
document.body.appendChild(timeDiv);

interval = setInterval(()=>{
      timeDiv && timeDiv.click();
},1000*10);

[Solved] Docker hv-sock proxy (vsudd) is not reachable

Docker hv-sock proxy (vsudd) is not reachable

Docker hv-sock proxy (vsudd) is not reachable at Docker.Backend.ContainerEngine.Linux.ConnectToVsud(TaskCompletionSource1 vmId)
at Docker.Backend.ContainerEngine.Linux.DoStart(Settings settings)
at Docker.Backend.ContainerEngine.Linux.Restart(Settings settings)
at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.b__0(Object[] parameters)
at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

An error is reported when docker for windows is started. The environment is win10 1607 (14393.0)

Windows update is prohibited. The above error occurs and kb4013418 and kb4019472 are updated normally.

FileZilla path must be absolute [How to Solve]

The FileZilla server is downloaded. When setting the FTP directory, the software reports path must be absolute

I have set the absolute path F:\Users\Administrator\PycharmProjects\python_switch\ops\

Why do you report an error?

Solution:

Virtual path use /

Native path use \

virtual path  /ops/

Native path  F:\Users\Administrator\PycharmProjects\python_switch\ops\

[ftp]get /ops/ops_demo.py