Tag:method

  • Collection of development issues

    Time:2020-7-10

    1. Calling init / initwithframe method The system will call 2. The third party library is repeated Problem performance duplicate symbol _OBJC_METACLASS_$_JKSerializer in: /Users/tony/Desktop/XXXProject/Lib/libMiPushSDK.a(JSONKit.o) /Users/tony/Library/Developer/Xcode/DerivedData/XXXProject-boqkajmzatzxohbyrrhklfiuknic/Build/Products/Debug-iphoneos/libPods.a(JSONKit.o) ld: 24 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) Solutions Third party library found Make a replica View […]

  • WPF: (2) thread example

    Time:2020-7-10

    Source project address: https://github.com/Microsoft/…The following is the conversion of the sample into a brief description, and gives the actual operation effect and key code: 1 MultiThreadingWebBrowser private void Browse(object sender, RoutedEventArgs e) { placeHolder.Source = new Uri(newLocation.Text); } private void NewWindowHandler(object sender, RoutedEventArgs e) { var newWindowThread = new Thread(ThreadStartingPoint); newWindowThread.SetApartmentState(ApartmentState.STA); newWindowThread.IsBackground = true; newWindowThread.Start(); […]

  • The difference between struts1 and struts2

    Time:2020-7-10

    1) Both frameworks are MVC web frameworks, 2) Struts1 is an old-fashioned framework, which is widely used and has a good mass base. It has a small development risk and low cost. The core design idea of Struts2 is mainly derived from webwork, which is more elegant and easy to expand 3) Struts2 modifies and […]

  • Ten Python interview question traps to see if you’re going to hit it

    Time:2020-7-10

    The peak of job hopping is from March to April every year. Whether it’s a job application for Python web development, crawler engineer, data analysis, or automatic operation and maintenance, it involves some basic knowledge! I selected some basic interview questions of Python to see if you can answer them, and maybe the interviewees can […]

  • The principle and use of sel

    Time:2020-7-9

    concept SEL:Method name (number)IMP:A function pointer that holds the address of the [email protected] (method name)Gets the number of the method. The result is a sel type. His behavior is basically equivalent to the function pointer in C languagedifference In C language, you can directly assign a function name to a function pointer, and the function […]

  • Tomcat project supports cross domain access

    Time:2020-7-9

    stay web.xml Add the following filter to the <filter> <filter-name>CorsFilter</filter-name> <filter-class>org.apache.catalina.filters.CorsFilter</filter-class> </filter> <filter-mapping> <filter-name>CorsFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> Refer to CORS filter for specific configuration There is an answer in access control allow origin: * in Tomcat that the common method in Tomcat6 is to add <dependency> <groupId>com.thetransactioncompany</groupId> <artifactId>cors-filter</artifactId> <version>1.3.2</version> </dependency> Configure the filter as follows <filter> […]

  • Complete interpretation of react transaction

    Time:2020-7-9

    preface ReadingreactSource code, found that a large number of them usedtransaction(Chinese translation for affairs) this writing method, so do a separate analysis.In factreactintransactionIn fact, it is a kind of design pattern, and its idea is very similarAOPSection programming: Add a series of pre and post functions to the objective function to enhance the function or […]

  • Promise first experience

    Time:2020-7-9

    PromiseWhat is it? JSIt is to operate the properties and methods of an object. For an object, we can start with its properties and methods directlyconsole.dir (object)Print out From the above printed properties and methods, you can seePromiseIs a constructor that has its own privateall,reject,resolve,receThere are also methods on the prototype that belong to instance […]

  • Summary of IOS tips, absolutely what you want (continuous update)

    Time:2020-7-9

    Recently, I summarize some tips in IOS development, which can greatly facilitate our development. Group style top blank handling of uitableview //Group list header blank processing UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0.1)]; self.tableView.tableHeaderView = view; In the plain style of uitableview, cancel the stagnation effect of the header – (void)scrollViewDidScroll:(UIScrollView *)scrollView { […]

  • Context introduction and source code analysis of golang

    Time:2020-7-9

    brief introduction In the go service, for each request, a collaboration process will be set up to process. In the process of processing coroutines, there will also be many coroutines to access resources, such as databases, such as RPC. These procedures also need to access some information of the request dimension, such as the identity […]

  • [ asp.net Unitofwork and custom code generation

    Time:2020-7-8

    Preface In the previous article, we created a data query interface implementation base class based on EF. In this article, I’ll show you how to add some functions to EF and provide a solution to avoid writing a large number of configuration classes. 1 When introducing EF core, we mentioned that using EF requires calling […]

  • Spark implementation of gradient descent algorithm

    Time:2020-7-8

    The realization of gradient descent in spark is in the method runminibatchsgd in gradientdescent 1. The first step is to sample and calculate the gradient The sample is RDD.sample method //The sample method gets a subset //Calculate the gradient from the sample // RDD.aggregate Method introduction https://www.jianshu.com/p/15739e95a46e //Aggregate treeagggregate differences https://www.cnblogs.com/drawwindows/p/5762392.html val (gradientSum, lossSum, miniBatchSize) […]