Collection collection in Java (List class collection)

1. Differences between sets and arrays As a container, arrays have some inconveniences. They are inconvenient to add, delete and change operations. Arrays can only store the same data type, which can be either a basic data type or a reference data type.Java puts forward the concept of a collection, w ...

Posted by AnotherQuestion on Wed, 22 Jan 2020 17:08:43 -0800

Detect when the browser receives file downloads

I have a page that allows users to download dynamically generated files. Generation takes a long time, so I want to display a "wait" indication. The problem is, I don't know how to detect when a browser receives a file, so I can hide the indicator. I'm making a request in a hidden form, which is published to the server and results ...

Posted by MsShelle on Wed, 22 Jan 2020 06:12:26 -0800

Add value to C array

This may be a very simple method - I start with C and need to add values to the array, for example: int[] terms; for(int runs = 0; runs < 400; runs++) { terms[] = runs; } For those who use PHP, this is what I'm trying to do in C: $arr = array(); for ($i = 0; $i < 10; $i++) { $a ...

Posted by bogu on Wed, 22 Jan 2020 00:52:06 -0800

Applet chat session component

Chat session scene Chat and conversation for online customer service, etc 1, Layout circle 1. Triangle arrow Draw a 26rpx*26rpx rectangle, rotate it 45 degrees, and then hide the half to form a right triangle on the bubble. <!-- Draw triangle arrow --> <view class="triangle" style="{{item.myself == 1 ? 'rig ...

Posted by BobRoberts on Tue, 21 Jan 2020 09:55:31 -0800

DVWA series Brute Force

Article directory 1, low level 2, medium level 3, high level Token brief introduction In the experiment, bp was used to grab packets and crack them violently, and the account password dictionary was written in advance. 1, low level Safety measures: no protective measures 1. Using bp to grab bags ...

Posted by FrOzeN on Mon, 20 Jan 2020 23:48:26 -0800

How to redirect to 404 in Rails?

I want to "fake" 404 pages in Rails. In PHP, I only send headers with error codes as follows: header("HTTP/1.0 404 Not Found"); How does Rails do this? #1 building The selected answer does not work in Rails 3.1 + because the error handler has been moved to middleware (see github issue ). This is a solution that I am ve ...

Posted by woobarb on Mon, 20 Jan 2020 06:07:27 -0800

Laravel + laravel admin build website background

  Local environment: laravel version: Laravel admin version: Laravel admin excellent expansion pack!!   1, Install configuration laravel 6.11.0 1. installation composer create-project --prefer-dist laravel/laravel blog 2. changing the time zone 'timezone' => 'PRC' 3. change the l ...

Posted by Trojan on Sun, 19 Jan 2020 02:56:59 -0800

Use laravel framework and phantomjs for screenshots

Many of the screenshots you see on the web about phantomjs are used in conjunction with node s and require input commands to execute.So I want to achieve the function of entering a web address to take a screen and output pictures.Example: http://120.77.171.182:8080/laravel&phantomjs/public/, you can ...

Posted by lawnmowerman on Sat, 18 Jan 2020 17:20:32 -0800

IOC container and dependency injection of Laravel

We combed before Laravel inversion of control and dependency injection In this article, we combine the Laravel framework to see how it is implemented. 1. Entry document <?php /** * Laravel - A PHP Framework For Web Artisans * * @package Laravel * @author Taylor Otwell <taylor@laravel.com> */ define('LARAVEL_START', ...

Posted by ConcreteDJ on Fri, 17 Jan 2020 06:54:21 -0800

Learn OpenGL ES for Android - cube mapping

We have learned texture mapping before. We can build a cube from six 2D textures, and the cube map itself contains six 2D textures. Its advantage is that it can index / sample through a direction vector. As long as the center point of the cube map, the actual position vector of the cube can be used t ...

Posted by Bailz on Thu, 16 Jan 2020 11:15:58 -0800