Tag Archives: ProgrammerAH

Lenovo-win7 system computer boot prompt error 1962: no operating

The above problem is mainly caused by the boot mode selection error (most of the problems are caused by the original UEFI boot, but the BIOS setting causes the boot failure).
(1) Press F12 and then select?Enter ?Setup?
(2) Then go to SETUP and then to STARTUP. Maybe the fourth or the fifth.
(3) Down to find CSM press enter, then select ENABLE.
(4) In this directory (my computer is, maybe different computers are different), go to BOOT PRIORITY, now go to UEFI FIRST
(5) Now press F10, now SAVE. Then try to restart it.
After this round, there should be no problem. If there are any other problems, you need to check to see if your boot option is selected to boot from hard disk.

Under win864 bit, install python, PyQt4 and sip. (final failure, only record)

The landlord needed to make a crawler because of the business requirement. Python was mainly used as the crawler on the Internet, so the environment was set up. There was no difficulty in installing Python 2.7 itself. On the contrary, when installing pyQT, I have encountered some problems. The mainstream voice on the Internet is to configure and install on the Linux side, less on the Windows side and even less on the Windows 64-bit side. The problems Encountered by the author have not been solved on the Internet. Write it down here and share it with you.

The author saw some examples of PyQt small programs for interface development, feeling simple enough to understand, so the idea of installation occurred. Because the virtual machine is not easy to use, so simply win864 on the busy.
The first step is to install python2.7 without too much difficulty, just download and install it from the official python web site.

Problems occur when install pyQT4 in the url: http://www.riverbankcomputing.com/news software TAB, you can find the pyQT4 download, and download the Windows version of the installer: PyQt – win – the GPL – 4.11. Zip.
When I unzip the package, I find a conap.py file, look up the installation guide, and find that it should be executed first to automatically generate makefiles for later use.

Error 1: PyQt4 installation failure prompt No Module named Sipconfig

Originally want to install PyQt4 even to install a SIP, SIP is also magic – http://www.riverbankcomputing.co.uk/software/sip/intro points out that Python is cow force, because it can use library written in C and C + +, and SIP is the C/C + + library into a Python library artifacts.

Also in the link of http://www.riverbankcomputing.com/news, a software of tag can download the SIP, we choose to download the SIP – 4.16. Zip

When you download and unzip, you’ll find a conap.py file in the package, the same one used to generate makefiles.
After producing the Makefile, we should use the Visual Studio command prompt to execute the nmake instruction.

Problem # 2 is encountered: Make failure — Fatal Error LNK1112: Module computer type “X86” conflicts with target computer type “x64”

Alas, the 64-bit system is no longer compatible with 32-bit software. (I’m not sure, but I probably got the native platform through SYS when I was doing configure, so I set the target platform to X64.)
To observe the configure. Py — — show – platforms. The supporting platforms are found as follows:


Configure.py — Platform Win32-MSVC2010 (my VS command line is version 2010)
Next, nmake compiles successfully!
Then nmake Install finds that the make has been copied to the Python installation directory.

Next, do the same thing for PyQt. Conconfigure. Py. At this point, I encountered problem 3:
Make sure you have a working Qt qmake on your PATH
Yeah, we still can’t, because we don’t have QT.

We installed QT and found that QT also required MinGW support, so we installed MinGW first and then QT.
Finally we have qmake, in the path of the environment variable, add the path of qmake. Exe

Qmake can’t use at this time, however, a problem 4: QMAKESPEC has not had the set, so configuration always be deduced.
The location of the g++ folder at qt needs to be configured as the value of the environment variable QMAKESPEC.
Make configuration: QMAKESPEC = E:\Qt\4.3.4\mkspecs\win32-g++
Execute qmake again, and it works.

Configure again, error. Confivure. Py — — verbose. It was found that there is no environment variable configured with g++, so we need to add g++ path: E:\Program Files\MinGW\bin to the environment variable path.
CMD input, g++ error, say stop working. A query later found g++ is incompatible with win8.

Abandon this path altogether. Turn to

As described in http://blo g.sina.com.cn/s/blog_913c0a8f01010fj7.html, the experience of debugging during a failure can prevent you from making mistakes again. I’m sorry I couldn’t solve the problem.

Failed to write output file ‘C:’ windows\ Microsoft.NET \Framework64\v4.0.30319\Temporary ASP.NET Files\root\106f9ae8\cc0e1

\ \Windows\ \Microsoft \ net \Framework64\ V4.0.30319 \Temporary ASP.NET Files\root\ 106f9AE8 \ CC0e1169 \ app_global.asax.haz99Mum. DLL “–” Denied access” “Error
 
Solutions:
 
1. Common solutions: the reason is that the Temp directory under the system directory does not have corresponding permissions, the specific operation is as follows: C:\Windows\ Temp –> Attributes – & gt; Safety – & gt; Edit – & gt; This can be resolved by adding read and write permissions for NETWORK SERVICE users.
 
2, open the server system C disk, open window, right click temp property security edit add IIS_IUSRS user control permission add modify and write permission. This is the Windows Server 2008 R2 standard edition SP1 64 bit Chinese version solution. That’s my question. This solves the problem. The network service above is ok without using it.)

Problems in the construction of CUDA environment (GPU parallel programming)

Installation environment: ubuntu14.04 + Hasee k550-i7 d1. Unique display: Nvidia GTX950. There’s also an integrated graphics card.
1. Install the cuda
1. Download CUDa Toolkit from nvidia official website, such as download runFile type. Installation steps. Complete the selection according to resources:

    Run ‘sudo sh cuda_8.0.61_375.26_linux.run’ Follow the command-line prompts

2. Since the Nouveau driver (nvidia open source driver) is installed by default on Linux system, it will conflict with cudA drivers, so nouveau driver needs to be disabled. Follow Resources -4.1.2.2. Runfile Installer.

Q1: After installing CUDA environment in accordance with the tutorial, the sample can be compiled, but it cannot be run. If the error is reported, the driver version is invalid for the running version. If the driver is replaced, the screen will be black. The reason is that my laptop is a dual graphics card and requires nvidia-Prime to perform the default driver selection. When the DPKG has Nvidia-Settings, it can also be executed to switch.
After installing Nvidia-Prime and Nvidia-Settings, it is found that the default driver is Nouveau. If the manual change is invalid, nouveau will be selected automatically. Changing Blacklist.conf to add it to the blacklist is also invalid, so the problem becomes how to disable nouveau driver and use the installed Nvidia driver.

List of questions:
Insufficient RUNNING of compiled CUDa sample: Cuda driver version is insufficient for CUDa runtime version
2. Download the new CUDA8.0 installation file and check checksum to be inconsistent. damn
3. My N card and integrated video card cannot be identified in the nvidia-Settings installation.

Reinstall 1. Change the default driver to X.Org Xserver(in system Settings -> Software and updates -& GT; Additional drive; Or search driver – & gt; As you can see, it should be set to Nouveau.
2. Switch to command line mode (CTRL + Alt +f1, aka tty1),log in; Sudo Service LightDM Restart. if restart to lightdm,open a terminal and use the next step,if not,use tty1, as before;

3. Delete Nvidia related files.

sudo apt-get remove –purge nvidia-*
4. Check for nvidia related file residue

DPKG –get-selection | grep nvidia ensures there are no nvidia residues

5. Look at the additional drivers again and select the one that is most available.

6.go back to tty1 and issue sudo service lightdm restart, lightdm should restart and you should have the latest driver, for your system.

___

7. Because my laptop is a dual video card, which is a very painful thing, I need to install nvidia-prime and nvidia-settings to switch the video card. (During installation, go to YouTube and listen to Linus say it again: “So fuck you, Nividia!” )

Note: another way mentioned to disable nouveau is to change the boot mode in grub. To:

edit /etc/default/grub file.

—-

the For Ubuntu 12.04 the setting is stored in/etc/default/grub. You add it to the line titled GRUB_CMDLINE_LINUX_DEFAULT. If the line says:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”

you would change it to:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash nomodeset”

After adding NOMODESET to this line you should run sudo update-grub to allow grub2 to see it the next time you boot.

——

### error message after changing the use of video card in nvidia-settings:

ERROR: NVIDIA driver is not loaded

ERROR: Error querying enabled displays on GPU 0 (Missing Extension).

ERROR: Error querying connected displays on GPU 0 (Missing Extension).

** Message: PRIME: Requires offloading

** Message: PRIME: is it supported?yes

ERROR: nvidia-settings could not find the registry key file. This file should

have been installed along with this driver at

/usr/share/nvidia/nvidia – application profiles – key – documentation. The

application profiles will continue to work, but values cannot be

prepopulated or validated, and will not be listed in the help text.

Please see the README for possible values and descriptions.

execute prime-select query to get information: unknow

finally passed
Prime -select Nvidia completed the selection of N card compiled to run CUDA samples through.

— — –

Cuda installation verifies the pre-installation conditions, such as whether the GPU is supported, whether the OS is supported, etc. It should be noted that this machine is a dual graphics card, which is specifically mentioned in the installation tutorial:

If the target system includes both an integrated GPU (iGPU) and a discrete GPU

(dGPU),
the –no-opengl-libs option must be used. Otherwise, the openGL library used

by the graphics driver of the iGPU will be overwritten and the GUI will not work. In

addition, the xorg.conf update at the end of the installation must be declined.

installation files: cuda-tookit and Nvidia drivers and official files are in the removable hard drive.

reference tutorial:

1. Runfile installation and disable nouveau driver: http://blog.csdn.net/masa_fish/article/details/51882183

WINDOWS 7 : SYSPREP 3.14 : A FATAL ERROR HAS OCCURRED DURING SYSPREP.(ZZ)

WINDOWS 7 : SYSPREP 3.14 : A FATAL ERROR HAS OCCURRED DURING SYSPREP. 
01/29/20148 Comments
 
Firstly, run this command on command prompt  slmgr. vbs /dlv 

Then check the re-arm counter value, if it’s 0 and you sysprep you will receive errors in the setupact.log and setuperr.log files like these:

Error [0x0f00a8] SYSPRP WinMain: Hit failure while processing sysprep generalize providers; hr = 0xc004d307
Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn’t update the recorded state, dwRet = 31
Error [0x0f0082] SYSPRP LaunchDll: Failure occurred while executing ‘C:\Windows\System32\slc. dll, SLReArmWindows’, returned error code -1073425657
Error [0x0f0070] SYSPRP RunExternalDlls: An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = -1073425657

Workaround: 

Open regedit and look for: 

HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState

Set to value: 2

HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState

Set to value: 7

And Run these command on elevated command prompt: 

msdtc -uninstall (wait a few seconds)

msdtc -install (wait a few seconds)

Reboot the system.

If this does not work, then last option is Windows Product Activation (WPA) vulnerability that was introduced in Windows 7

When the WPA registry key is deleted, the status of Windows 7 is re-initiated to the Initial Grace Period as if Windows 7 has just been installed. The deletion of the WPA registry key is achieved via the following method. 

·         Create a .bat file with following text and place it in C:, like C:\Reset.bat

reg load HKLM\MY_SYSTEM “%~dp0Windows\System32\config\system”
reg delete HKLM\MY_SYSTEM\WPA /f
reg unload HKLM\MY_SYSTEM

·         Restart the computer.

·         Press F8 right after the BIOS screen to get to the “Advanced Boot Options” and Select Repair Your Computer.

·         Select your keyboard input method, and click next.

·         Enter user name and password login credentials for local Admin user, and continue

·         In the “System Recovery Options”, open Command Prompt.

·         Run the Reset.bat file from C:

·         Restart the computer.

The system will be moved to grace period after the reboot. 

Non system disk or disk error

The cause of
Because there are two systems, I want to delete another useless system, and then Start dead ==
The formatted failure is because disk D is an active partition, so the failure of formatting cancel the disk partition marked as active:

You can only have the command line when you cancel because the Windows TAB has been lightened and can’t be checked. 1. Command line prompt, run DISKPART, run into prompt “DISKPART>” ; 2. Use the “LIST DISK” command to determine the ## of your removable hard drive; 3. Use “Select DISK 0” to set your removable DISK to the current operating DISK; 4. Use “Select PARTITION 1” to set the first PARTITION to the current operation PARTITION;
. Use the “INACTIVE” command to INACTIVE the current partition.

did according to this, and then restarted on non-system disk or disk error
The solution
When the machine guess is the D disk cancel active problem, why?Isn’t disk C the default system?Because the boot data is on disk D?Start with a U disk, enter the PE interface, the last item, called normal into the system?After entering the system normally, open the disk management, D disk mark active, restart the computer, normal

VBA “user defined type not defined” MSXML2.DOMDocument

When using a VBA tool written by a colleague in Excle, an error is reported as soon as it is run:
user defined type not defined
The error statement checked is:
Dim newFile As MSXML2 DOMDocument
My environment is windows10 + office2016, so I guess he used Microsoft XML V3.0, and I’m using V6.0.
The solution I found online is as follows: If in Tools> References: Microsoft XML V6.0 was selected. When declaring variables, use the following format:
Dim newFile As MSXML2 DOMDocument60

MySQL data import error 1227, acess denied

Author: Librarian, Tianyi Pavilion
Today, a former colleague in the group has asked MYSQldump for the SQL file which came out, and sent an error error1227 (42000) at line 18: Acess Denied; you need (at least one of) the SUPER privilege(s) for this operation
Set @@session.sql_log_bin=0; set @@session.sql_log_bin=0;
This does not normally happen. This statement simply controls whether the query in the current session writes to the binlog. Everyone in the group thought it was a strange question.
Solution 1:
you can see that this is a permission issue, so say it, or use root. However, the former colleague said that the skip machine passed over, and there was no way to use root, and the right to lift and grant also required root rights. Option 1 was rejected.
Solution 2:
since you can’t use root, you have to do something else, but I wonder why the user can’t control his or her session variable. So I did a search, went to the mysql website, and found this description:
sql_log_bin
This variable controls whether logging to the binary log is done. The default value is 1 (do logging). To change logging for the current session, Change the session value of this variable. The session user must have the [SUPER] (https://dev.mysql.com/doc/refman/5.7/en/privileges-provided.html#priv_super) privilege to set this variable. * Setting this variable to 0 prevents GTIDs from being assigned to transactions in the binary log*. If you are using GTIDs for replication, this means that, Even when binary logging is later enabled once again, the GTIDs written into the log from this point do not account for any transactions that in the Meantime -- in effect, Those transactions are lost.in MySQL5.7, it is not possible to set @session.sql_log_bin within a transaction or subquery. (Bug #53437)
note that the last line says MySQL5.7 has a Bug, Cannot execute set @@session.sql_log_bin in a subquery or transaction. But a book without a book is better than a book without a book. I’ve done it myself in mysql:

mysql> select version();
+-------------------------+
| version()               |
+-------------------------+
| 5.7.16-0ubuntu0.16.04.1 |
+-------------------------+
1 row in set (0.00 sec)

mysql> set @@session.sql_log_bin=0;
Query OK, 0 rows affected (0.03 sec)

Now that this bug has been fixed, is this colleague using the infamous version of mysql5.6?Let him confirm that it is 5.6. Once the root of the problem is found, the solution is there. Simply delete all the set @@session.sql_log_bin statements in the SQL.

VS 2010: An error occurred loading a configuration file: Failed to map the path ‘/’.

I was using the System.Web.Configuration. WebConfiguration class to open the configuration for the site from one of my logic dll’s and I got the wonderful error An error occurred loading a configuration file: Failed to map the path ‘/’.
I freaked out for a second, until I put more thought into it. This is running fine in production! What is the difference with my machine and the server?
Oh! My Visual Studio is running under UAC with limited privileges since I am in Windows 7. DUH!
So, I restarted Visual Studio 2010 under “Run as Administrator” and problem solved. So if you are on Vista or Windows 7, that’s the issue.
NOTE: If you develop with administrative rights, be careful you don’t make development mistakes that assume everyone will run your program as an admin. i.e. writing to program files directory, root directory, etc.
Happy Coding!

Error 0210: stick key 28 is displayed when ThinkPad E40 is turned on

Notebook boot prompt:
ERROR 0210: Stuck Key 24 Press to Setup

, “24” is Stuck, “J”
, find the J Key, cut off the Key cap, clean the base is generally ok. If you’re unlucky, you need to change the keyboard.
other error code reference:
[F1] 3A; F2 】 【 3 c; [F3] 3 d; “F4” 3 e; “F5” 3 f; [F6] 40; F7 41 】; “F8” 42; [F9] 43; F10 44 】; 【 F11 】 45; [F12] 46; [Q] 10; [W] 11; [E] 12; [R] 13; [T] 14; [Y] 15; [U] 16; [I] 17; [O] 18; [P] 19; 【 A 】 1 e; 1 f [S]; [D] 20; [F] 21; [G] 22; 23 [H]; [J] 24; 【 K 】 25; [L] 26. 27 [:] 27 [“] 28; [Z] 2 c; [X] 2 d; [C] 2 e; [V] 2 f; [B] 30; [N] 31; 【M】32 【<】 33. 【 & gt; 34. 35. “/” [Space] 39; 3 a Capslock 】 【; 1 c [Enter]; 【 Left Shift 】2A; 【 Left CTRL 】1D; [left Alt] 38

Reproduced in: https://www.cnblogs.com/lubing666666/p/4221394.html

error code 0x534. [SQLSTATE 42000] (Error 15404)).

Today, I found that the monitoring system kept reporting errors, indicating a Job execution error. Looking at the log, I found that a user who created this Job was deleted (because he left his Job), resulting in a Job error.     
 
Date 4/27/2010 12:00:00 PM
Log Job History (Backup_Diff.Subplan_1)

Server mxosv-tress01
Job Name backup_diff. Subplan_1
Step Name (Job outcome)
Duration 00:00:00
Sql Severity 0
Sql Message ID 0
Operator group Net Sent
Operator Paged
Retries 0
Unable to determine if The owner (MX\Randy. Admin) of job Backup_Diff.Subplan_1 has server access (reason: Could not obtain information about Windows NT group/user ‘MX\Randy.admin’, error code 0x534. [SQLSTATE 42000] (Error 15404)).
 
When our system user name changes, we will find that the previous good maintenance plan in the original SQL suddenly fails, with the above error message. The solution is to start with SQL security & GT; > Change the original system user name in the login name to the current user name, then delete the existing maintenance plan and rebuild the maintenance plan.
 

From “ITPUB blog” link: http://blog.itpub.net/35489/viewspace-661497/, if you want to reprint, please indicate the source, otherwise will be investigated for legal responsibility.

Reproduced in: http://blog.itpub.net/35489/viewspace-661497/

Parsing error: Unexpected token

When using VUE Cli3, I encountered the following problems:

error: Parsing error: Unexpected token < at src\views\index.vue:1:1:
> 1 | <template>
    | ^
|   <div class="index">
|     <router-view></router-view>
|     <TabBar :data="tabbarData"></TabBar>

Looking up many websites, can not solve this problem, finally, in
https://stackoverflow.com/questions/53601579/parsing-error-unexpected-token-using-vuecli3-and-airbnb-eslint?r=SearchResults
Find a way
Open your.eslintrc.js file and find the Parser
Here’s my.eslintrc.js

module.exports = {
    rules: {
        'no-console': 'off',
        "parser": "vue-eslint-parser"
    },
}

Note:
This error is reported when I write “import”. In this case, I only need to put the “.eslintrc.js”
“Parser” : comment out “Vue-Eslint-Parser” and restart the project. Then, uncomment it and restart the project again with no error.
Why that should be, I don’t understand. If you have a better solution, please leave me a message, thank you!!