Tag Archives: Miscellaneous

Two problems in OpenGL Programming

Error C2381: ‘exit’ : redefinition; error C2381: ‘exit’ : redefinition; error C2381: ‘exit’ : redefinition; __declspec (noreturn) differs. The solution to the problem is to include the #include< stdlib.h> On the # include & lt; gl\glut.h> Just before.

Error LNK2001: unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12

#define GLUT_DISABLE_ATEXIT_HACK

It is estimated that the reason for the above problem is the repeated definition problem.

Myeclipse10: one step error report solution for cracking replacejar

MyEclipse10 cracked the ReplaceJar one-step error reporting solution
Some time ago MyEclipse10 expired, so I went looking for a hack. There is a great cracker on the web, MyEclipse 9.x Crack. In the ReplaceJar step, following the instructions of the step should bring up a file selection box and select the MyEclipse directory ->; Common-> Plugins directory. However, the file selector cannot pop up here, and if you look at the console, you will find an error message:

It seems to have something to do with the operating system?
Look at the processing code after pressing the ReplaceJar button:

        JFileChooser jf = new JFileChooser();
        jf.setDialogTitle("Please Choose Myeclipse --> Plugin Folder");
        jf.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        jf.setMultiSelectionEnabled(false);
        jf.setFileFilter(dirctoryFileFilter);
        int returnVal = jf.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            File file = jf.getSelectedFile();
            meReplacer.replace(file);
        }

new FileChooser() It seems to have something to do with the operating system. A workaround, however, is to manually enter the path to the plugins directory instead of the fileChooser. Comment out the above code and replace it with the following:

        // some errors occur, so change to this manual way
        String path = JOptionPane.showInputDialog("please input the path in a manual way...");
        if (path != null) {
        File file = new File(path);
        if (file.exists()) {
            meReplacer.replace(file);
        } else {
            JOptionPane.showMessageDialog(this, "The path is not exsit!Please try again", "error", JOptionPane.ERROR_MESSAGE);
        }

Installing markdown viewer 3.9 plug-in for Chrome

Download at https://github.com/simov/markdown-viewer/archive/3.9.zip. Unzip the Markdown-Viewer 3.9.zip and put the folder in place.
Open extensions in Your Chrome browser: Chrome :// Extensions /.

To install the MarkDown Viewer plug-in, open developer Mode in the upper right corner, click the Load Unzipped Extension button, and select the Markdown-Viewer directory.

Then drag the extension *.md file into the Chrome browser to view the Markdown document.

Disk read error solution for new hard disk installation

below first said the process of the problems I encountered and the process of solving, more detailed and verbose, if you are more urgent, directly see the last summary.
 
(Problems arise)
In response to my mother’s strong request, I bought some accessories on JINGdong two weeks ago and installed a new machine. I officially eliminated the old desktop computer that I had used for nearly 10 years at home. My mother said that I would not be able to play QQ dream now.
The neighbor saw, also want to update his machine, I basically the same as before and under a single (at the request of the neighbor to add an OPTICAL drive, my home machine is not equipped with optical drive), the weekend back home to install the machine. The installation went well, but there was a very strange problem when installing the OS.
Listen to me slowly.
The hard disk USES Seagate 1TB (ST1000DM003) disk, and the motherboard USES Giga GA-A75KM-D2H disk. At first, I found some problems with these models, but I found it has nothing to do with the hard disk model after I studied it.
First of all, everything worked fine when I installed the system myself.
In the neighbor installed, I use my pre-carved rain forest wind Win7 Ghost plate, the first use of a key in four areas, four areas. (In fact, this function is to do a complete partition image, disk to disk, ghost will automatically adjust the size of the partition in proportion). Then use a key will win7 Ghost to c disk installation, but ghost is always a failure, generally go less than 50% of the card is dead, after a while optical drive read disk also stopped.
Later, if you boot from hard Disk, sometimes failure will prompt that OS cannot be detected, and sometimes failure will prompt “A Disk Read Error Occurred. Press Ctrl+Alt+del to RESTART”.
 
(Disc-Mounted system)
But the hard disk can only be unplugged, attached to my machine as a slave disk, the system installed in.
Now that I’m hanging them all off the slave disk, I’ll use Disk Genius to reprogram the slave disk partitions.
(The knowledge of primary partition, extended partition, logical partition is very important in manual partition, also not complex, a diagram plus three or two sentences can be explained, do not understand the students please baidu yourself first)
Specific methods:
1, copy win7 ghost from the disc image to the hard disk (or mount the image to the virtual optical drive)
2, if you use GHost32, you can directly ghost-> To partition – & gt; From image, when you select the target hard drive, don’t select your own hard drive or it will be a tragedy
(This is what I did for the first time since I already use Disk Genius.) To use the disk image widget, you need to first use software like Disk Genius to convert the primary partition from the disk to a logical partition and assign a drive letter.
3, ghost, note that the drive letters from each partition are probably not in order, need to pay attention to who is the first partition (Disk Genius, Win7 comes with disk management tools can be).
4. Convert from the first partition of the disk to the primary partition and set it to Active.
 
(New questions)
Restart and start from Disk. Once again, “A Disk Read Error Occurred. Press Ctrl+Alt+del to RESTART”. At first I thought I had damaged the hard drive, so I was taken aback (I had just dropped it accidentally). However, after starting with the master disk and entering the system, it was found that each partition of the slave disk was working normally and the files could be read and written normally.
Suspect is the new motherboard problem, will my hard disk unplug, put the neighbor’s disk on my motherboard to restart again, still invalid.
Put my hard drive on the neighbor’s machine and everything’s fine. It’s not the motherboard.
Things have come to an impasse.
 
(Real solution)
When depressed, use Disk Gunius to observe the partition parameters of two hard disks. Because I used to practice assembly when I wrote the operation of the partition table program, on the disk structure and various parameters or more familiar, boring want to calculate the partition capacity and it is not the same. Suddenly it is found that the starting head and sector from the first partition of the disk is not 1,1, but 31,1. This is not normal!
While the normal should be something like this (this picture was re-cut by the laboratory machine when I posted to illustrate the point) :

This means that after the BIOS has read Boot Sector, the primary partition of the boot partition should start at an abnormal position, with an inexplicably blank space in front of it. Disk Read Error occurs when the BIOS loads the operating system with a strict check and thinks it has read something wrong.
This explains why the BIOS will load the OS incorrectly, while the BIOS will load the OS correctly when it is suspended from the disk (follow the boot Sector start/stop parameter, regardless of OS loading).
I think: this may be caused by my conversion of the primary partition to logical partition, and then to the primary partition. Since this logical partition needs an extended partition header to record the starting and ending positions of each logical partition under it, naturally its real free space is moved back, and the primary partition is not moved back.
After knowing this is easy, I manually modify the partition parameters in the software, will start magnetic head and sector to 1,1, so the partition of the natural thing is not, with a new ghost into a system. Mount startup, everything is OK!
 
 
Some other information on the Internet is summarized as follows:
Occurred: “A Disk Read Error Occurred once again. Press Ctrl+Alt+del to RESTART”, there are generally several possibilities:
1. Hardware failure: Data line aging, interface loosing, motherboard aging (capacitor)
Performance: normal use, sudden occurrence of this problem, on and off.
Solution: Clean the ash and reinsert. Check the capacitance. In addition, someone on the Internet said that UDMA support was cancelled in the BIOS. I found the original post, and the original author said that the capacitor was found to swell, and this capacitor is UDMA circuit, so this method is not common, or fix the motherboard/replace the motherboard.
2. Hard disk failure:
Performance: normal use, suddenly this problem, and then continue to do so, and recall the case (hard disk) recently received a large impact.
Solution: Hard disk low grid.
3. Hard disk setup:
Performance: the new system appears, and is likely to be normally accessible from the slave disk on other machines.
Solution: Check the hard disk partition parameters, set the partition of the operating system installation as the primary partition, Active, non-hidden, start cylinder: 0, start head: 1, start sector: 1.

#How to handle the installation rollback and 1205 connection error of pulse secure ා

To use the school server to run data before deciding to VPN client xiaonei.
I didn’t expect all kinds of problems to happen…
I am a Win8 system. I installed Pulse Secure and have been rolling back. I tried various methods on the Internet, such as changing MaxFilternum, uninstalling anti-virus software and adding administrator privileges, but all failed.
Check the local services – Enable Device Install Service and Device Setup Manager, and the installation is successful again!

processing on 1205 error unable to set virtual adapter:
This is generally a problem of installation. My error may be caused by the mismatch between the file pulse Client setup.exe downloaded when I used the web VPN… In short, uninstall Pulse Secure and then reinstall it. Be sure to uninstall it clean!! Can not uninstall or uninstall the process error must have a file residue, check your task manager to see what relevant procedures are running, and then right-click to close (I am through this method to find a client setup program) find the root directory uninstall clean, and then reinstall!

SSIS package error report login failed for user’nt authority\anonymous logon’ solution

Question link: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/35139786-12bd-424a-9a60-27b5de981cd6/login-failed-for-user-nt-authorityanonymous-logon
This problem is called a Kerberos problem
The current credential cannot be passed to another server due to executing SSIS Package or other reasons in the database when you are currently logged into a database using Windows authentication. Therefore, your identity becomes anonymous Logon

Solutions:
Log in remotely to the server where the database is located and then perform the relevant actions
Or upgrade anonymous users of remote servers

An undetermined call to function ‘shell’: missing ‘. Stop. Problem encountered when using shell command in makefile

Calling a shell command in a

Makefile if the command has the character ‘#’, this can cause the following problem:

Makefile:3: *** unterminated call to function `shell': missing `)'. Stop.

possible reason: “”#" is parsed as a comment in a Makefile.

so if you want to use “#” you can just add the escape character “\#”.

MySQL creates tables and sets auto increment of primary keys

mysql创建表:

mysql>创建表用户(
->userid int(4)主键not null auto_increment,
->用户名varchar(16)不为空,
->userpassword varchar(32) not null
-&gt

创建表log(
logid int(4) primary key not null auto_increment,
logtitle varchar(32) not null,
logcontent varchar(160) not null,
logtime datetime not null,
userip varchar(64) not null
)