Author Archives: Robins

PHP Error

I encountered this error while using the thinPHP framework is_array function today. You cannot use the return value of a function as an argument

Baidu solution is thinkPHP bug, more reliable said that the PHP version of the problem, 5.4 not, 5.6 is OK, but I use the version of 5.6.

The solution, is_array,empty, is to pass as many variables as possible.

Fatal error C1010: unexpected end of file encountered while looking for precompiled header. Did you forget to add “ා include” StdAfx. H to the source

Fatal Error C1010: Unexpected end of file encountered while looking for precompiled headers. Did you forget to add “#include” stdafx.h “to the source?
Error analysis:
this error occurs because the compiler is looking for a precompiled indicator header (default #include “stdafx.h”) when the file does not end as expected. The header file “stdafx.h” with precompiled instructions was not found.
(because the project of every CPP file attributes the default is to use the precompiled header (/ YU), but add a third party documents not # include “stdafx. H” precompiled directives, so the compiler in the CPP file until the end did not find it)
my this problem occurred in, by means of adding files to add to existing within the MFC one big tuo. H and. CPP file. These.h and.cpp files belong to the standard C++ open source code category and have no deeper relationship with MFC.
Solution: a.

1) in the solution explorer, right-click on the corresponding. CPP file, click “properties”
2) on the left side in the configuration properties, PM on “C/C + +”, click “precompiled header”
3) changes on the right side of the first line of “create/use precompiled header,” option from the “use precompiled header (/ Yu)” to “do not use the precompiled header”
4) note:
2.
(not recommended)
1) in the solution, right click on the project, click on properties
2) in the configuration properties -> c/c++ -> Changing “use the precompiled header (/YU)” to “do not apply the precompiled header”
in the precompiled header will make every compilation process very slow
Refer to the blog: http://blog.csdn.net/zrm_1995/article/details/68490749?locationNum=2& fps=1

Event resolution of component {b3118b2-1f49-48e5-b6f5-bc21caec56fb}

2019/03/31
Component {b31118B2-1F49-48e5-b6f5-bc21CAec56fb} event Load configuration file notification failed, error code is See Tracelogging for error details.
component {b31118b2-1f49-48e5-b6f5-bc21caec56fb} event Unload configuration file notification failed, error code is See Tracelogging for error details.
event ID: 1534
 
Solutions:
Finally found a FIX for 1534 error !
1. Open Regedit and navigate to the following two keys (looking for ProfileNotification)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ profilenob1 HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\ProfileNotification
2. Under profilenokey if you have the TDL key (confirm TDL exists at the next level of ProfileNotification)
3. Export the TDL key at each location (Export TDL backup)
4. Delete the TDL key at each location (right-click TDL-> Permissions – & gt; Advanced – & gt; Owner change to your account confirmation -& GT; Secure add your account for full control confirmation. Reboot PC to verify (Reboot into effect)
Note:
You’ll need take ownership of the TDL Key to be able to delete it.
Works for me like a charm with no downsides.
After this fix the 1534 baragge has stopped in my OS 🙂
 
Refer to https://social.technet.microsoft.com/Forums/en-US/50a24520-2ea6-47e7-995b-c2de46d2401d/user-profile-service-event-1534?forum=win10itpronetworking

[MySQL] the solution of MySQL workbench “error code: 1175”

When performing a batch database update using MySQL Workbench, executing a statement will encounter the following error:
Error Code: 1175 You are using safe… without a WHERE that uses a KEY column
Because MySQL Workbench’s default security Settings do not allow batch table updates. This error is prompted when the SQL statement to be executed is batch update or delete.
The solution is as follows:
Open the Workbench menu [Edit]-> [Preferences…] -> Switch to the [SQL Queries] page -> Remove the [Safe Updates] check -> Click the [OK] button
Finally, just restart the SQL Editor and make a new connection.

Or before I make a query,
Execute the following statement:

SET SQL_SAFE_UPDATES = 0;

error MSB6006: cmd.exe “exited with code 3

Using VS2012 and QT5.5.1, the following error occurred when compiling the example:
C: \ Program Files \ MSBuild \ Microsoft (x86) Cpp \ v4.0 \ V110 \ Microsoft CppCommon. The targets (172, 5) : error MSB6006: “CMD. Exe” have quit, code is 3.
The picture is as follows:

The solution is as follows:

Right-click on the project and select Convert Project to Qt Add-in Project.

ArcGIS desktop experience. Similar to: error 000732 output Geodatabase

Until the release of ArcGIS Desktop 10 SP1
 
1: in the desktop ArcGIS9, inside the Geodatabase (PGDB, FGDB, ArcSDE GDB) create a Table (Table), if the Table name begin with GDB (GDB, gdb1, GDBSDF, gdb_3d, etc.) after creating all could not see the form, and in fact is the existence of this Table, if you create a Table with the same Table will be prompted to exist, can use PGDB open Access to view, create a class there is no problem. There is no problem with ArcGIS10.
Problem analysis: currently, just a guess, because ArcGIS9 GDB Schema are GDB_ table in the beginning, the Schema are invisible to users in ArcCatalog, speculation is likely the GDB to block out the beginning of the table, don’t show, but while streamlining the GDB with ArcGIS10 Schema, but there are still four tables, starting with the GDB ArcGIS10 create tables can be seen, a bit surprised, may ArcGIS10 write these four table table name directly in the dead into the program.
2: when using ArcGIS desktop import export data, because the default using ArcGIS to create objects and other elements of the system will create a ObjectID fields, is a unique identifier, some users will use this ObjectID, may record the corresponding ObjectID to correspond to the specified elements, but in the process of data import and export, especially the import, the user will be very depressed these ObjectID rearrangement, so users will not be able to come here to use the ObjectID, how should do?
The ObjectID is rearranged by the Import/Export tool. It is suggested that users use Copy/Paste directly to the data set or element class object. In this way, ObjectID is not rearranged.
3: In the process of data Import using ArcGIS desktop, take Import as an example, “Output Location” in the Import box prompts a small Red Cross, such path does not exist or error-000732 Error occurs?
Solution: the relative path “Database Connections/Connection to lish. Sde” is modified to the absolute path “C:/Users/gis/AppData/Roaming/ESRI Desktop10.0 ArcCatalog/Connection to lish. Sde”, because the problem some machines have similar problems, some machines have no, the reason is still unknown.
4: When SDE creates or imports data containing the field name “AREA”, the field name is automatically prefixed.
Question: This problem exists in ArcGIS9 software, but not in ArcGIS10, for unknown reasons!
5: When creating a LoadRaster dataset, if the whole Raster was loaded and the InputRaster prompted the Red Cross, the Raster object had to be double-clicked and opened into three bands to be loaded. How could the whole Raster object be loaded without being loaded in the form of bands?
Problem analysis: The default Rand Number selected by the user when creating a RasterDataset was “1”. Setting the Rand Number to “3” would solve the problem.
6: Users are using joins to mount tables (element classes versus normal tables), but sometimes a library cannot be mounted on a non-Windows operating system. What can be done?
Problem analysis: Because the Join is using Ole mechanism for articulated, but the Windows operating system default Ole drive, but not the Windows operating system, so the Windows operating system does not support Ole, which does not support the use of the Join, so users can completely change the way in which different using sde commands to complete (sdetable – o create_view), effect is the same, and taking advantage of sde command to create a view can be saved, read-only, This view can be treated as a read-only element class.
sdetable command reference: http://wenku.baidu.com/view/16c6362acfc789eb172dc8c2.html
7: Use ArcCatalog to export ArcSDE data to PGDB and import it in. Some field ranges change.
Problem analysis: Import field for text, for example, because PGDB is usually Access, the text field’s biggest support for Access to 255, more than the value into the remark field, so if a user ArcSDE text field length is 1000, then imported into the PGDB inside because of greater than 255 into the remark field, then pour into ArcSDE, note field does not record length, directly convert note length to CLOB (in Chinese version is more than 2000 of Oracle database with CLOB storage), so, If the user does not want to encounter this phenomenon during the data import and export, please replace the exported PGDB with FGDB.

8: when using ArcMap or ArcGIS Engine for simple operations such as map enlargement, the following phenomenon occurs: the map is blank, “gsrvr.exe” Error or “Network IO Error” Error is prompted?
Problem analysis: First, check whether the user’s database matches the version of your ArcSDE. This error is typical ArcGIS9.3/9.3.1 and Oracle10.2.0.1 (note the small version number of the database). It is suggested that the database should be Oracle10.2.0.3.
9: In the editing process of using ArcCatalog, when saving data, prompt: “Create: An unexpected failure in Dimension”, OrA-20092: Maximum number of Grids per feature(8000) excplug.Ora-06512: In “SDE_ST_DOMAIN_METHODS” line 1487 and so on.
Problem analysis: ArcGIS defaults that an object cannot exceed 8000 grids, which is a hard and fast rule, so it means that the grid setting of the layer edited by the user is too small or an object edited by the user is too large. Either the user deletes the index, rebuilds the index, or the user edits the grid value and replaces it with a larger grid value.
10: Null character missing at the end of the ArcMap import datagram ORA-01480 STR bound value.
Problem solving: if the user has this problem, the user’s machine configuration should be
operating system: Windows Server 2003/2008 Enterprise x64 SP2
Oracle version 10.2.0.4.0-64bit
ArcSDE version: ArcSDE 9.3.1 for oracle10g64
DeskTop version: 9.3.1
vector storage mode: ST_Geometry
this has no way, if the user’s configuration completely meets the above configuration, congratulations, you are so lucky, this is all encountered by you, as of press ArcGIS9.3.1 also did not solve the problem.
The user could either use a direct connection to derive the data, or use BLOB storage instead of ST_Geometry storage, and presumably more people would choose the first option.
11: ArcMap USES Identify figure to find both length and area are 0?
The user must be using SDO_Geometry geometry to store geometry data. The structure is not at all like the ST_Geometry structure where length and area can be recorded, so this is normal.

JS error: require is not defined

Reasons for error:
The browser side cannot recognize the require keyword, which is required under node.js environment. It is common to require modules in node_modules folder
Solutions:
Compile the JS file with the tools Browserify or WebPack to make it browser-aware.
// Install Browserify, which I’m using as a global installation
npm install -g browserify
//compile
browserify ./source/module.js -o ./dist/dist.js
You can see the packaged Dist. Js file in the dist directory. The first parameter after
browserify represents the entry of the front-end program to be packaged, -o or > Represents the packaged output file. Browserify automatically completes dependency analysis based on require or Import (ES6, need to install Babel) in the entry file and packages the dependency file into a single file.

Analysis of “RSL error 1 of 1”

Recently, I participated in a virtual community Project, in which I made a farm game and video conferencing application module. The whole Project has several Flex projects, including the main program, public library and various functional modules. Because I was a late participant, I did not know much about the development mode of the Project, and of course because the two applications I made were independent, So I used the independent Flex Project to build the two applications.
The project used RSL(Runtime Shared Library) to link external libraries, so I also used RSL when making those two applications. At the beginning, everything was normal. After the project was launched, the customer service staff occasionally received a call from the customer saying that the farm could not be opened, and the location of the farm appeared “RSL Error 1 of 1”, with a paragraph below “Error #2032: flow Error”. URL: http://www.xxx.com/XXX.swf/ [[DYNAMIC]]/framework_3 2.0.3958. SWF.
For a period of time, I was quite confused. At that time, I found the cause of the problem and came up with a solution.
First make a brief introduction of RSL, RSL is to compile multiple Project to create classes to multiple SWF, which includes the class library Project, the Flex framework library (framework_xxx. SWF), so that you can put the SWF contained in class sharing for multiple projects, on the client side load when it is ok to only need to load a (if not using RSL, all use class will compile into a SWF, if there are multiple SWF, repeat each part is contained inside the class, increase the user downloads). In the case of only one Project, the effect of using the RSL is not obvious because the generated SWF needs to be loaded for all other SWF Shared libraries that are used; However, if there are multiple projects, the advantage will emerge. After the first SWF loads the Shared library, the later SWF will not need to be loaded again, which can improve the access speed.
After using RSL, there will be two framework files “framework_3.2.0.3958. SWZ” and “framework_3.2.0.3958. SWF” in the root directory of the generated project (using different Flex SDK, the latter version number of these two framework files will be different). If the framework.swz file fails to load, Flash Player will go to the framework.swf file, one of the two is successfully loaded, and the project will run correctly.
In the event of a “RSL Error” Error, I tried to reproduce this Error on your computer, operating system, using XP when I cancel the SWZ files from the Flash Player cache, and built an empty read-only SWZ files, name and just delete the SWZ file name, to run the project again, and sure enough the “RSL Error”, below, write a new framework for Flash Player to the cache. SWZ failed, at the same time framework. The SWF also failed to load. The solution was to manually save the framework.swz file to the client’s Flash Player cache. I didn’t think much about why the file didn’t load successfully on the client’s computer (maybe it was a permission issue), but I just posted on the forum to see if anyone had a similar problem.

Everyone has a lazy side, which was exactly what I did at that time. If you think about it carefully, there are at least two questions that should be explored: 1. The whole project is using RSL, why only the two applications I wrote have RSL errors, and what is the difference between the application I wrote and the whole project; 2. 2, my application in framework. SWZ failed to load, framework. SWF also failed to load, so it can not run, the whole project in SWZ failed to load, but can run, later look, IE cache does exist framework. SWF, then this can be the whole project file load framework. SWF.
For a while, no one on the forum was sure of a solution to the problem. Once again, let me dig into this problem to help a customer solve the farm can not be opened, that is, there is an “RSL Error”. The client’s computer is Vista and Internet Explorer 8. When I put the framework.swz used in RSL into the client’s Flash cache, it occurred to me that it might be caused by the operating system. We are developing on XP. Because there is no SWZ file in the client’s Flash cache, the previous access failed to load the SWZ at all.
I installed Win7 in the virtual machine to do the test (Win7 and Vista kernel), sure enough, under Win7 can not normally access the farm, Flash cache without SWZ file. Because the project of other modules can be normal visit, so I think framework. The SWF file should be loaded successfully, but when I open the IE cache, find IE cache is framework. SWZ, rather surprised, as the chart, because always thought before the SWZ framework cache files will be saved to Flash, never think under Windows 7 will be put into IE cache (I Flash Player version is 10.0.45), which is why no SWZ framework in the Flash cache files. (If frame. SWZ is in Flash cache, SWFS in multiple domains can be Shared; if in IE cache, SWFS in the same domain can only be Shared).

Discovering this has certainly given me a better understanding of the RSL bug, which could be a bug in Flash Player, or a manipulation of Adobe by Microsoft, but this cannot be confirmed at this time.
Question to this, of course, is not the end, because we have a question: framework. SWZ loading failure, and framework. The SWF can choose ah, why the second choice is also failed, I use firefox HttpFox plugin to view the request to the server client, finally found the problem, and it is concluded that the second question framework. SWF loading failure has nothing to do with the operating system. Summary of the cause of the problem: “Loading an external SWF file that USES an RSL causes an error path to the Framework file that the external SWF points to.”
Firefox browsing, and open the HttpFox plugin to view the Http request, after loading the main routine, can detect the client request the framework. SWZ file (if the SWZ cannot load may be loaded framework. The SWF file), when I disable the SWZ file after loading, into the farm, found the farm reload framework. SWZ and framework. The SWF, but these two files are failed to load, the two pictures below the first one is the main process successfully loaded framework. SWZ, The second path to the Framework file that shows the farm loaded is an error.


The problem is clear, the farm is a separate Project and USES the RSL and is loaded into the main program using Loader. It looks as if this changes the URL path of the farm program, but the resource path used by the farm does not change. So the conclusion should be that only the path of framework file used by this application is changed, and this path is only used in Flash Player, I don’t know if there is any other place to set it, is this another Flash Player bug?
I hope to further study the RSL.
 
PS: I forgot to write the solution in this article. At present, I know of two solutions. One is to stop using the RSL. The second is to manually copy the FlashPlayer cache file to the client. The disadvantage of this method is that sometimes we cannot operate the client. For the second approach, the cache directory of FlashPlayer is: XP system is C:/Documents and Settings/user/Application Data/Adobe Flash Player/AssetCache/H7UC3H3Y, VISTA and Windows 7 system is C:/Users/username/AppData/Roaming/Adobe Flash Player/AssetCache/RAU4Y963, this the end of the two paths a folder name is random, Another copy SWZ file also need to pay attention to in the past, such as FlexSDK3.2 SWZ filename in the cache is 1 c04c61346a1fa3139a37d860ed92632aa13decf. SWZ, this files need to be from a flashplayer cache is a problem with the copy machine to machine.

Error Code: 2006 – MySQL server has gone away

SQLyog reported an error when importing the database
Error Code: 2006-mysql Server has gone Away
Max_allowed_packet (a parameter of MySQL) is not set to a large enough value.
Modify directly using SQL statements:
The SET GLOBAL max_allowed_packet = 671088640;
This works well, after the change, there is no need to restart the service, it works directly