Author Archives: Robins

How to avoid OrderSend Error 130 in MT4

If EA is running, you may receive an error”
OrderSend Error 130 “.


OrderSend Error 130 “is because the constant is”
ERR_INVALID_STOPS “(= invalid loss stops) in the following cases.

Reason # 1: Loss cutting (profit fixing) prices are too close to current price data.

Reason 2: The formula used to calculate the profit and loss reduction (profit determination) price is incorrect.

Reason 3: Loss reduction (profit determination) prices have not normalized.

the reasons for the occurrence of “OrderSend Error 130” are described above, but the first reason may be the cause of Error in particular, so the possibility is relatively low.

we checked to avoid cause 2 and 3, so we could basically avoid the Error “OrderSend Error 130”.

Linux mounting errors (Error mounting /dev/sda8 at /media)

Mount an NTFS partition that cannot be accessed from Windows under Linux
About Windows 7, the computer installed Ubantu in the other partition (not allocated space under Win7). After installing Ubuntu, the user was not allowed to access the Windows 7 partitions by myself. Error mounting /dev/sda8 at /media/my/XXX: commandline ‘mount-t “ntFs-o” was not allowed
Solution:

Open terminal: If ntFS-3G is not installed, sudo Apt-get install NTFS-3G

Fix the appropriate partition for mounting errors such as /dev/sda8 in the prompt, enter:
sudo ntfsfix /dev/sda8
Just hit enter.

Rstudio drawing problem

“‘
Error in RStudioGD() :
Shadow graphics device Error: r Error 4 (r code execution Error)
in addition: Warning messages:
1: IngrDevices: : : PNG (” C:/Users/ADMINI ~ 1/AppData/Local/Temp/RtmpWYc8MO/95 c0efe47bfb41aab3df215bc1db0f37. PNG “, : Unable to open ‘C:/Users/ADMINI ~ 1/AppData/Local/Temp/RtmpWYc8MO/95 c0efe47bfb41aab3df215bc1db0f37. PNG’ text written
2: IngrDevices: : : PNG (” C:/Users/ADMINI ~ 1/AppData/Local/Temp/RtmpWYc8MO/95 c0efe47bfb41aab3df215bc1db0f37. PNG “, :
opening device failed
“`
two days appear this problem, because before the computer with two versions of the R, appears the question, said online because Rstudio cannot identify, unload the unused version, later. This problem appears again today, I do not know what the reason is, it is OK to uninstall and reinstall.

Solve the error 70 or 64 when brushing GApps

Report 70 indicates insufficient partition space, Google family bucket is too large to install, you can choose to install smaller bags
Packet 64 indicates a packet with a specific number of bits to install, such as the device ARM64
 
To solve the 70
Create a new TXT file
Named gapps – config
Content:

# Read more about gapps-config file here:
https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options


# Prevent automatic removal
# +Browser     # Stock Browser
# +CameraStock # Stock Camera
# +Email       # Stock Email
# +Gallery     # Stock Gallery
# +Launcher    # Stock Launcher(s)
# +MMS         # Stock SMS
# +PicoTTS     # the Stock PicoTTS app


# Remove CM/stock apps
(Gello)
(BasicDreams)             # Basic Dreams Wallpaper
# (CMAccount)               # CM Account Application
# (CMAudioFX)               # CM AudioFX
(CMFileManager)           # CM File Manager
# (CMMusic)                 # CM Music
# (CMScreenCast)            # CM ScreenCast app
# (CMSetupWizard)           # CM Setup Wizard (see Notes for CMSetupWizard)
# (CMUpdater)               # CM Updater
# (CMWallpapers)            # CM Wallpapers
# (CMWeatherProvider)       # CM Weather Underground
# (DashClock)               # DashClock Widget (found in certain ROMs)
(Galaxy)                  # Galaxy (also known as BlackHole) Wallpaper
(Hexo)                    # Hexo Libre Theme
(HoloSpiral)              # Holo Spiral Wallpaper
(NoiseField)              # Noise Field Wallpaper
# (OmniSwitch)              # OmniSwitch recent apps switcher replacement
(Phasebeam)               # Phasebeam Wallpaper
(PhotoPhase)              # Photo Phase Wallpaper
(PhotoTable)              # Photo Table Wallpaper
(Browser)                 # Stock Browser
# (CalculatorStock)         # Stock Calculator (automatically removed when Google Calculator is installed)
# (CalendarStock)           # Stock Calendar (automatically removed when Google Calendar is installed)
# (CameraStock)             # Stock Camera
# (ClockStock)              # Stock Desk Clock (automatically removed when Google Desk Clock is installed)
(Email)                   # Stock Email Client
# (ExchangeStock)           # Stock Exchange Services (automatically removed when Google Exchange Services is installed)
# (MzFileManager)           # Stock FlymeOS File Manager
# (MzPay)                   # Stock FlymeOS Pay system (because MzPay services works only in China)
# (MzSetupWizard)           # Stock FlymeOS SetupWizard
# (MzUpdater)               # Stock FlymeOS Updaters
# (MzWeather)               # Stock FlymeOS Weather (because MzWeather service work only in China)
# (FMRadio)                 # Stock FM Radio (not found on all devices or ROMs)
# (Gallery)                 # Stock Gallery
# (KeyboardStock)           # Stock Keyboard (automatically removed when Google Keyboard is installed)
# (Launcher)                # Stock Launcher(s)
(LiveWallpapers)          # Stock Live Wallpapers
# (LockClock)               # Stock Lockscreen Clock Widget
# (Studio)                  # Stock Movie Studio
# (TagStock)                # Stock NFC Tags (automatically removed when Google NFC Tags is installed)
(PicoTTS)                 # Stock PicoTTS
# (PrintServiceStock)       # Stock Print Service Recommendation Service (automatically removed when Google Print Service Recommendation Service is installed)
# (SimToolKit)              # Stock SimToolKit
# (MMS)                     # Stock SMS (automatically removed if Google Messenger and/or Hangouts is installed)
# (StorageManagerStock)     # Stock Storage Manager (automatically removed when Google Storage Manager is installed)
# (Terminal)                # Stock Terminal
# (Themes)                  # Stock Theme Engine (Will break the Settings Entry and can cause unexpected reboots on some ROMs)
(VisualizationWallpapers) # Stock Visualization Wallpapers
(WhisperPush)             # Stock WhisperPush support


# Install GApps
include

# Pico+
DialerFramework        # Dialer Framework
CalSync                # Google Calendar Sync (except if Google Calendar is being installed)
GoogleTTS              # Google Text-to-Speech (Micro+ on 5.0-, Pico+ on 6.0+)
PackageInstallerGoogle # Google Package Installer

# Nano+
# FaceDetect             # FaceUnlock
# FaceUnlock             # FaceUnlock
Search                 # Google Search (including includes Hotword, excluding excludes GoogleNow and PixelLauncher)
Speech                 # Offline Speech Files
# Hotword                # OK Google Hotword Enrollment

# Micro+
# Gmail                  # Gmail
CalendarGoogle         # Google Calendar
ExchangeGoogle         # Google Exchange Services
# GoogleNow              # Google Now Launcher (requires Search)
# GoogleTTS              # Google Text-to-Speech (Micro+ on 5.0-, Pico+ on 6.0+)

# Mini+
CalculatorGoogle       # Google Calculator
ClockGoogle            # Google Clock
# Maps                   # Google Maps
# TagGoogle              # Google NFC Tags
# Photos                 # Google Photos
# GooglePlus             # Google+
# Hangouts               # Hangouts
# YouTube                # YouTube

# Full+
# Chrome                 # Google Chrome Browser
CloudPrint             # Google Cloud Print
# Docs                   # Google Docs
# Drive                  # Google Drive
# Fitness                # Google Fit
# Keep                   # Google Keep
# NewsWidget             # Google News & Weather
# Books                  # Google Play Books
# PlayGames              # Google Play Games
# Movies                 # Google Play Movies & TV
# Music                  # Google Play Music
# NewsStand              # Google Play Newsstand
# Sheets                 # Google Sheets
# Slides                 # Google Slides
# Talkback               # Google TalkBack

# Stock+
CameraGoogle           # Google Camera
ContactsGoogle         # Google Contacts
DialerGoogle           # Google Dialer
KeyboardGoogle         # Google Keyboard
Messenger              # Google Messenger (except on tablet devices)
# PixelIcons             # Google Pixel Icons
StorageManagerGoogle   # Google Storage Manager
# VRService              # Google VR Services
# WebViewGoogle          # Google Webview
# PixelLauncher          # Pixel Launcher (requires Search and Wallpapers)
PrintServiceGoogle     # Print Service Recommendation Service
Wallpapers             # Wallpapers

# Super+
# AndroidPay             # Android Pay
# DMAgent                # Google Apps Device Policy
GCS                    # Google Connectivity Services (excluding also excludes Project Fi)
# Earth                  # Google Earth
# Indic                  # Google Indic Keyboard
# Japanese               # Google Japanese Input
# Korean                 # Google Korean Input
# Pinyin                 # Google Pinyin Input
# Street                 # Google Street View
# Translate              # Google Translate
# Zhuyin                 # Google Zhuyin Input
# ProjectFi              # Project Fi by Google

# commented out indicates no installation
Then drag this file to the same directory as your GApps installation package
So you can install it normally

brew link sip error

Problems with BREW installing SIP:

$ brew install sip
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/sip.h
/usr/local/include is not writable.

You can try again using:
  brew link sip

$ brew link sip
Linking /usr/local/Cellar/sip/4.19.5... 
Error: Could not symlink include/sip.h
/usr/local/include is not writable.

Find /usr/local/ there is no path /usr/local/include
need to create this path and modify the permissions
Solution:

$ sudo mkdir /usr/local/include
$ sudo chown $(whoami):admin /usr/local/include

Success:

$ brew link sip
Linking /usr/local/Cellar/sip/4.19.5... 10 symlinks created

standard_init_linux.go:178: exec user process caused “no such file or directory”

Golang Docker Build runs an error after making the input
The problem arises because the environment in which you are compiling is different from the environment in which you are running, and may have dependencies on dynamic libraries
1. By default, go USES static linking and dynamic compilation is used in Docker’s Golang environment.
2. If you want to compile +alpine to deploy with docker, you can do so by disabling cgoCGO_ENABLED=0.
3. If you want to use cgo, make GCC statically compiled by go build --ldflags "-extldflags -static".
 
 
 
Reference: https://yryz.net/post/golang-docker-alpine-start-panic.html
 

Reproduced in: https://www.cnblogs.com/davygeek/p/10969434.html

R language loading xlsx error error: JAVA_HOME cannot be determined from the Registry

OnLoad failed for ‘XLSX’ :
loadNamespace() calculate ‘rJava’; onLoad failed,
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
This is because my computer is not installed the JAVA environment, right now I need to download and install the JDK, website download address: https://www.oracle.com/java/technologies/javase-downloads.html, the website need to register account and download speed is slow, there are baidu network location 64 downloads: link: https://pan.baidu.com/s/1WQvo3UyVPtBypGcCLLCLzQ extracted code: wg5o
After downloading, which contains the method to install the JDK, introduce a public number, commonly used in all kinds of software download source and installation methods ~
After installing the JDK, first find the location of R installation package. Generally in the library document under R-4.0.2, delete the packages that were not installed successfully before. Here, I will delete RJava, Xlsxjars, and XLSX

After you delete it, go back to the Rstudio window and install it in the order rJava, XlsXJars, and XLSX. There are two ways to install the Package of R, either way
Method 1: Run the script
Install. Packages (” rJava “)
install. Packages (” xlsxjars “)
install. Packages (” XLSX “)
Method 2:


After installing library(XLSX), there will be no errors!!

emulator: ERROR: x86 emulation currently requires hardware acceleration! Abnormal problem solved

Start this exception after the AS configuration simulator:
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Because you need an Intel hardware Accelerator, check the three steps
1, check the Intel x86 Emulator Accelerator(HAXM installer) in SDK Tools is installed;

Go to the SDK \ Extras \ Intel \Hardware_Accelerated_Execution_Manager folder and double-click to install Intel HaXm-Android.exe.
if the installation is successful, just go to AS to reinstall the emulator.

Ubuntu fixes the missing dependency packages of the system (Error: Broken Count>0)

If ubuntu has a package that does not meet the dependency criteria, Error is reported :Broken Count> 0, as shown below:

The following command will automatically fix the packages on which the installation package depends:

    $ sudo apt-get install -f 

The -f parameter stands for Fix Broken.
If the fix fails and there is still a problem, confirm which application was installed earlier and then execute the following command to uninstall:

    $ apt remove xxx

After the unloading is completed, it is found that no error is reported. The figure is as follows:

Ubuntu fixes the system’s missing dependency package to this solution.

Tomcat9 Error: Could not find or load main class org.apache.catalina.startup.Bootstrap

First I login is tomcat website, select the source package download, wget HTTP:// http://apache.fayea.com/tomcat/tomcat-9/v9.0.0.M26/src/apache-tomcat-9.0.0.M26-src.tar.gz
The tar xf – apache tomcat – 9.0.0. M26 – SRC. Tar. Gz
Mv apache tomcat – 9.0.0. M26 – SRC/MNT/tomcat
cd /mnt/tomcat/bin
Perform/startup. Sh
The results show that the startup is normal
Using CATALINA_BASE:/MNT /tomcat
Using CATALINA_HOME:/MNT /tomcat
Using CATALINA_TMPDIR:/MNT /tomcat/temp
Using JRE_HOME: /usr/ Java/JDK 1.8.0_77
Using CLASSPATH: /mnt/tomcat/bin/bootstrap.jar:/mnt/tomcat/bin/tomcat-juli.jar
Tomcat started.
But with netstat LNTP | grep 8080 will find no start tomcat, view/MNT/tomcat/logs/catalina out, an error:
Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
I feel very strange, first check the/MNT/tomcat/bin/bootstrap jar does not exist, and then use the find/-name the bootstrap. The jar can’t find it in the local. So where does that come from?
 
After looking at the post on the Internet, I realized that the source package in the official website of Tomcat was incomplete. The logs folder and some important files of bootstrap.jar were not available. The correct Tomcat should download its bin package

Write it down so you don’t waste time checking your journal!

Cannot find module ‘body-parser’

bug:Cannot find module ‘body-parser’
For obvious reasons, this module isn’t available, and if you look in the node_modules directory, it isn’t

Solution: Reinstall the module;
CMD switch to node installation directory:

npm install --save body-parser

​​​​​​​(Copy python package, the problem generated) pip Fatal error in launcher: Unable to create process using

Today I cut the Python installation from disk C to disk D,
The corresponding disk character in the Path environment variable is then modified: D:\Python27\; D:\Python27\Scripts;
In either directory, Python is ready to execute, but Pip is an error!
D:\Python27\Scripts> PIP
Fatal error in launcher: incapable of creating process using ‘”C:\Python27\python.exe
“”D:\Python27\Scripts\pip.exe” ‘

The Path environment variable has been changed, and I’m surprised that it’s still looking for the C disk.
It’s ok to try “Python PIp.exe install”, but it’s a bit of a hassle to use, so you want to figure it out! I don’t want to reinstall it!
A web search for “where did PIP read the Python installation directory from?” failed, and an error message was found!
Some netizens in CMD under the implementation of “Python-M PIP install — Upgrade PIP” to solve the problem, I this is not.

Oh, I didn’t add the -m parameter.
My solution, which is a little more barbaric, is to use the binary editing tool “pip.exe,”
Reference: http://stackoverflow.com/questions/24627525/fatal-error-in-launcher-unable-to-create-process-using-c-program-files-x86
Open with HEdit, search for “C:\”, find the corresponding location, change the disk to “D”, save, and then execute the “PIP” command.

There are multiple files in the “D:\Python27\Scripts” directory that do this, so it’s easy to change them.