iOS - three ways to change the color of the Placeholder of UITextField

Sometimes, the color of placeholder text brought by UITextField is too light or does not meet the requirements, so it needs to be modified. However, UITextField has no direct attribute to modify the color of placeholder text, so it can only be modified indirectly. For example: the default placeholder text color is too light Ne ...

Posted on Tue, 31 Mar 2020 02:50:15 -0400 by skylert

Within the tymeleaf tag, expressions are used in js

Using expressions in text Of course, we can also assign values in tags. <p>Hello, [[${session.user.name}]]!</p> The effect is the same as the following: <p>Hello, <span th:text="${session.user.name}">Sebastian</span>!</p> [... ]]The content between can be assigned. For it to ...

Posted on Tue, 31 Mar 2020 01:03:29 -0400 by Katanius

JavaScript - object. Create() uses

Object.create() Class inheritance with Object.create Use the propertyObject parameter of Object.create Syntax: Object.create(proto, [propertiesObject]) proto The prototype object of the newly created object. propertiesObject Optional. If it is not specified as undefined, it is the attribute descriptor and corresponding ...

Posted on Tue, 31 Mar 2020 00:57:53 -0400 by huhn_m

Chapter 9 set, Comparator, Comparable

About Comparator Comparator example Entity class Classes dedicated to comparison Function Result The difference between Comparable and Comparator Some skills of Java comparator About Comparator There are two kinds of comparators in Java. Before, we said comparable, but now we use Comparator; Using the comparator, yo ...

Posted on Mon, 30 Mar 2020 15:07:09 -0400 by dsds1121

Multithreading Tour (ThreadPool thread pool)

1, What is ThreadPool thread pool( Source code) 1. As the name implies, our system creates a container to hold our threads, which is shared by all AppDomain s controlled by CLR. Thread pools can be used to perform tasks, send work items, process asynchronous I/O, wait on behalf of other threads, and process timers. Therefore, using thread pool ...

Posted on Mon, 30 Mar 2020 12:59:31 -0400 by avvishnu

Spring some problem records

1. Injecting beans into non spring beans Sometimes in a project, you need to get Spring in your own new object, or in some util methods or properties Bean object to complete some work, but because the new object and util method are not managed by Spring, if you directly use @ Autowired on the dependent attribute, you will report an error that ...

Posted on Mon, 30 Mar 2020 12:42:37 -0400 by uncleronin

[translate] bug s encountered in the project (web front end - continuous update)

Writing code is easy to encounter various strange bugs, recommended Fundebug Do online bug real-time monitoring. Put input in the a tag and click the cursor that can't get input (under IE environment) Double click to get focus. Currently, there are solutions: Do not add the a tag's href attribute; Don't put a label on the out ...

Posted on Mon, 30 Mar 2020 12:18:08 -0400 by snoopgreen

openGL learning notes -- face elimination

openGL mainly distinguishes the positive and negative sides through the vertex drawing order to achieve the effect of face culling. It is difficult to understand both sides. How to judge? Positive and negative distinction: 1. Front: triangle faces connected in the order of anticlockwise vertices 2. Back: triangle face connected in clockwi ...

Posted on Mon, 30 Mar 2020 11:05:44 -0400 by drath

C ා compare two objects for equality (depth comparison)

Last article Comparison of C Chen's equality (conventional comparison) Write the instructions for the use of the general method of comparing the equality in C ා, but in the actual development, two reference type objects are often used for comparison, and the reference type contains the properties or fields of the reference type ...

Posted on Sun, 29 Mar 2020 14:15:01 -0400 by oyse

nginx tcp load balancing, replacing alicloud slb

We know that nginx was only used for http load balancing, while TCP and UDP used lvs or haproxy for load balancing, but both of them need to be bound with logical addresses. So the problem is that public virtual machine cannot be bound with logical addresses, so we can only use SLB provided by alicloud, so there will be two problems. 1. Spend ...

Posted on Sat, 28 Mar 2020 12:59:44 -0400 by yumico23