May182021
Composer 国内全量镜像大全
composer的部分配置文件:
{
//....... "repositories": {
"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}
}
}
镜像使用:
$ composer config -g repo.packagist composer 镜像地址
$ composer clearcache
$ composer update || install
说明:若项目之前已通过其他源安装,可以删除 composer.lock...阅读全文
抢沙发
May142021
攻防世界-crypto-Decrypt-the-Message(Poem Codes-诗歌密码)
题目来源:su-ctf-quals-2014题目描述:解密这段信息!
下载附件,内容如下
The life that I have
Is all that I have
And the life that I have
Is yours.
The love that I have
Of the life that I have
Is yours and yours and yours.
A sleep I shall have
A rest I shall have
Yet death will be but a pause.
For the peace of my years
In the long green grass
Will be yours ...阅读全文
May132021
云原生监控体系构建:Prometheus+Grafana+Loki全栈监控解决方案设计与实施
云原生监控体系构建:Prometheus+Grafana+Loki全栈监控解决方案设计与实施
引言
随着云原生技术的快速发展,Kubernetes已成为容器编排的事实标准。然而,复杂的微服务架构和动态的容器环境给系统监控带来了前所未有的挑战。传统的监控方案已无法满足云原生环境下的可观测性需求。本文将详细介绍如何构建一个完整的云原生监控体系,通过Prometheus、Grafana和Loki的有机结合,实现对Kubern...阅读全文
May122021
Android应用程序中的底部导航栏的实现技巧
底部导航栏是现代Android应用程序设计中常见的一种导航方式。它不仅可以提供方便的导航功能,还可以改善用户体验。在本博客中,我们将分享一些底部导航栏的实现技巧。
1. 使用BottomNavigationView
Android提供了BottomNavigationView组件来实现底部导航栏。它是一个横向布局的菜单选项集合,每个选项可以绑定一个对应的Fragment或Activity来展示不同的内容。
<com.google.android.mat...阅读全文
May112021
Implementing Dark Mode in Mobile App Development
In recent years, dark mode has gained popularity among users as a visually appealing alternative to the traditional light mode. Dark mode not only reduces eye strain but also conserves battery life on devices with OLED screens.
If you are a mobile app developer, adding a dark mode feature to your app can greatly enhance the user experience. In this blog pos...阅读全文
May082021
Vue 3 Composition API状态管理最佳实践:Pinia与Vuex 4的深度对比分析
Vue 3 Composition API状态管理最佳实践:Pinia与Vuex 4的深度对比分析
引言
随着Vue 3的发布,开发者们迎来了全新的Composition API,这为组件开发带来了更灵活的逻辑复用方式。在这一背景下,状态管理作为Vue应用的核心组成部分,也面临着新的选择和挑战。本文将深入对比Vue 3生态系统中的两种主流状态管理方案——Pinia和Vuex 4,通过详细的对比分析和实际项目案例,为开发者提供选择和...阅读全文
May072021
Android推送通知:将消息推送到设备
在现代移动应用开发中,推送通知是一种常见而重要的功能。它可以让开发者将消息或通知实时地推送给用户,让用户及时获得重要信息,而不需要用户主动打开应用程序。Android平台提供了多种方式来实现推送通知功能,下面将介绍其中一种常见的方式。
前提条件
要实现推送通知功能,首先需要在Android设备上安装一个名为“Firebase Cloud Messaging(FCM)”的服务。FCM 是 Google 提供的一种跨...阅读全文
Apr262021
Redis缓存穿透、击穿、雪崩解决方案:从布隆过滤器到多级缓存架构设计实践
Redis缓存穿透、击穿、雪崩解决方案:从布隆过滤器到多级缓存架构设计实践
引言:Redis缓存的三大“天敌”与系统高可用挑战
在现代分布式系统中,Redis作为高性能内存数据库,广泛应用于缓存层以提升数据访问速度、减轻数据库压力。然而,随着业务规模的增长和请求量的激增,Redis缓存系统也面临一系列经典问题——缓存穿透、缓存击穿、缓存雪崩。这些问题若不加以防范,可能导致数据库瞬间过...阅读全文
Apr212021
How to Handle Out of Memory Errors in Your Code
Out of memory errors can be a frustrating issue to encounter when developing a program. These errors occur when a program runs out of available memory to allocate for new objects or data. In this blog post, we will discuss some strategies to handle out of memory errors in your code effectively.
Understanding Out of Memory Errors
Before diving into the soluti...阅读全文
Apr192021