GitLFS using GoogleDrive, Dropbox, etc.?

I’m developing a game in Unity, so my project contains art assets. Therefore, I have to use Git LFS, but I will run out of 1 GB very quickly. (This is given by BitBucket. +1 GB is not a lot, and it is also expensive.) Is there a way to store my LFS content in Google Drive, Dropbox, some Azure service or capacity over 1 GB similar Content? (Dropbox is not a first choice as the cheapest plan they offer is 1 TB which I think is a bit steep after the 2.5 GB free plan) Edit: I just migrated to GitLab since it comes with 10 GB for free.

Please tell me how to sort character fields by numeric values ​​in Django, such as ‘12,123,1111,133’. The result after sorting is 12,123,133,1111, online, etc.

How can Django sort character fields by numeric values, such as ‘12,123,1111,133’, the result after sorting is 12,123,133,1111, wait online Cannot be sorted in template. It needs to be done in the view. Here’s the solution. How to sort character fields by integer in Django sorting I have been working on this problem for a long time, and finally figured it out myself. Although this question has been asked for so long, but maybe in the future Some people will encounter the same problem, and they found it here after searching, so I will attach my own method. I use a MySQL database. There is a time field in the chart table, which is character type. I want the query results to be in accordance with the whole time field. Type sorting list=Chart.objects.extra(select={‘t’:’time+0′})list=list.extra(order_by=[“t”]) is equivalent to the sql statement SELECT *,time+0 AS t FROM chart ORDER BY t problem is perfectly solved How to modify the order of Django background apps Django changes the name of the app displayed in the Admin background The name of the application displayed by Dajngo in the Admin background is the name when the app is created. App_label is no longer used from Django…

The table header is fixed and compatible with IE, Firefox, Google, 360, etc.

Table header is fixed, compatible with IE.Firefox, Google, 360, etc. Work order flowOrder statusConsigneeReceiving addressContact number Buyer’s messageSeller’s message Order datePayment time10112062753**Success Yang* Fujian Province Xiamen City Siming District Xiamen University Student Apartment** 15260****** 12-06-24 13:3712-06-24 13 :37 10112062753**Waiting for user confirmation of receipt Hole** Sichuan Province Chengdu City Wenjiang District No. 251 Wenhua Road Guanlan Peninsula************ 13880****** 12-06-25 21:5612-06-25 21: 57 10112062753**Success Liu* Shandong Province Weifang City Kuiwen District Intersection of Yuqing Street and Beihai Road************ 15094****** 12-06-23 18:1112-06-23 18:12 10112062753**Shipping in progress 马** Jiangsu Wuxi Yixing City Dongshan West Road, Yicheng Street, Yixing City************ I I want one pink, one beige, and one white 12-06-27 08:27 12-06-27 08:29 10112062753**Success 李** Beijing Beijing City Haidian District Taiping Road, Haidian District, Beijing*****—1-801 18210**** ** Buy three, get one free for each color and get one pill for 6.18 12-06-18 20:1912-06-19 09:41 10112062753**Success Xie** Hunan Province Yiyang City Nan County Datong Lake Estuary************ 13762****** 12-06-13 00:4512-06-13 11:19 1011206275335Success Thank you** Hunan Province Yiyang City Nan County Datong Lake Estuary********** 13762*** *** The size is still the same, buy two get one free, two pieces of apricot color and one black Luwan 6.13 12-06-13 00:4812-06-13 00:48 10112062753**Success Thank you** Hunan Province Yiyang…

Video resources recorded by myself (C/C++, Go, Qt, Linux, etc.)

Continuously updated… C language development practice: http://pan.baidu.com/s/1qXAP4x2 C Language Snake: https://pan.baidu.com/s/1pLRZIuJ C improvement: https://pan.baidu.com/s/1bEaK6E Learning new features of C++11: https://pan.baidu.com/s/1eRHTS1W 20-hour quick introduction to Go language video: https://pan.baidu.com/s/1jJPsThk GUI Programming Qt graphical interface programming 1: https://pan.baidu.com/s/1o8HS0uI Qt graphical interface programming 2: https://pan.baidu.com/s/1o80ynd4 Qt version of Othello (flipping chess): https://pan.baidu.com/s/1nvbWVix Linux related Raw socket: https://pan.baidu.com/s/1kUQ5K1L Configuration file Usage of protobuf: https://pan.baidu.com/s/1pLC1hb1

Understanding of common concepts such as streaming media code stream, resolution, gop, qp, fps, cvbr, etc.

IDR Instantaneous Decoding Refresh, instantaneous decoding refresh. In order to distinguish the first I frame from other I frames, the first I frame is defined as an IDR frame. It is different from For the differences between I frames, P frames, and B frames, see http://blog.csdn.net/sphone89/article/details/8086071. GOP Group of Picture, the period of the key frame, that is, the distance between two IDR frames, the maximum number of frames in a frame group, generally speaking, Each second of video needs to use at least 1 key frame. Increasing the number of key frames can improve quality, but at the same time increase bandwidth and network load. In a GOP, P and B frames are predicted from I frames. When the I frame When the image quality is relatively poor, it will affect the image quality of subsequent P and B frames in a GOP, and it will not be possible to recover until the beginning of the next GOP, so the GOP value should not be set too large. At the same time, since the complexity of P and B frames is greater than that of I frames, too many P and B frames will affect the coding efficiency and…

Django calls static files such as JS, CSS, images, etc.

zz In the following example, we use media as the directory of static (CSS\JS\image files) files Method 1, 1. First customize the parameter STATIC_PATH=’./media’ . (meaning the media folder in the current file directory) in the settings.py file. 2. Importimport settingsin the urls.py file, and then add a sentence(r’^site_media/(?P.*)$’, ‘django.views.static.serve’,{‘document_root’: settings.STATIC_PATH}) Method 2. 1. Set STATIC_PATH=’./media’ in settings.py (the directory where the static files are located)2. Import settings.py in urls.pyimport settings3 .Set in URLpartterns of urls.py(‘^site_media/(?P.*)’,’django.views.static.serve’,{‘document_root’: settins.STATIC_PATH}), Methods for calling static files in files:For example: In these two methods, the main purpose is to set the directory of static files. site_media must be the same as the name in STATIC_PATH. In this way, when a request starting with site_media is parsed, the specified static file directory will be called. Django calls static files such as JS, CSS, pictures, etc.

In Golang, is there some kind of access control mechanism? (Similar to Java’s private, etc., if OOP programming is used in Go)?

Actual phenomenon Assume that OOP is the main abstraction method for me to write code Hypothesis: Access control must be strict (Reference: Java) Want to implement 12345678 1) If the outside is not allowed to create objects directly through new, then the constructor must be private. 2) Tool classes are not allowed to have public or default constructors. 3) Class non-static member variables and shared with subclasses must be protected. 4) Class non-static member variables are only used in this class and must be private. 5) If a class static member variable is only used in this class, it must be private. 6) If it is a static member variable, you must consider whether it is final. 7) Class member methods are only for internal calls within the class and must be private. 8) Class member methods are only public to inherited classes, so they are restricted to protected. Expected phenomenon Learned: In Go, the first letter is capitalized, That is public, and the rest are private But the method is not “fine-grained” enough

CDN tool GoEdgev0.3.1 released, adding domain name ranking, origin site grouping, etc.

CDN tool GoEdgev0.3.1 released, adding domain name ranking, origin site grouping, etc.

GoEdge is a tool that can help you quickly build a CDN & WAF platform, supporting HTTP, HTTPS, TCP, TLS, UDP, IPv6, WAF and other features. The v0.3.1 version mainly enhances functional details such as origin site grouping by domain name and domain name ranking. EdgeAdmin Function Dashboard adds domain name rankings, cache traffic trends, and attack traffic trends Reverse proxy adds domain name grouping function You can set up a CNAME record that automatically joins DNS in the cluster You can set the cluster’s DNS record TTL Display the tasks being executed in Domain Name Resolution – Cluster Details You can set some global configuration options in the service group, and these options will automatically apply to all services under it When creating a new WAF policy, in addition to the limit on the number of IP+URL requests, add a rule set for limiting the number of IP object requests Optimize node setting interaction Bug fix Fixed the bug that the node DNS information cannot be modified when the cluster is not bound to a DNS domain name Fixed the problem that the initialization format of the date control may be incorrect Modify the bug that the generated YAML…

Use GoAccess log analysis to view site logs in real time, etc.

Sometimes during server operation and maintenance, it is necessary to observe site logs, Nginx logs and other scenario requirements at all times. At this time, the real-time function of GoAccess log analysis can be used. The author has successfully tested it on my own server. It feels very good and I will share it and record it! The premise of this article is that the GoAccess program has been installed and deployed. If it has not been installed yet, you can refer to VPS Detective‘s [ Nginx log analysis/chart generation tool – goaccess] can be installed and deployed in one article. Of course, you can also go directly to the GoAccess official website (https://GoAccess.io/) and follow the latest installation tutorial on the official website to install and deploy GoAccess 1.2 The latest version, the latest version has more complete support for viewing real-time logs, especially the configuration is relatively simple, I highly recommend it! First of all, you can According to [GoAccess 1.2 How to use scheduled tasks (Crontab) to generate log analysis reports regularly], first set up the log analysis report generation of your own site. It is still beneficial to check the log analysis report frequently. Malicious mirrors…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索