Feb112019
Building Robust Web Applications: Best Practices in JavaScript
JavaScript has become the de facto language for building web applications. It offers a wide range of tools, libraries, and frameworks that allow developers to create robust and scalable applications. However, without following best practices, JavaScript code can quickly become messy and difficult to maintain. In this blog post, we will discuss some best prac...阅读全文
作者:绝缘体.. | 分类:html, javascript, react, scala, webpack, 前端技术, 编程语言 | 阅读: | 标签:html, javascript, react, scala, webpack
抢沙发
Jan062019
MXNet入门指南:环境搭建与第一个神经网络实践
简介
MXNet是一种深度学习框架,可以用于构建、训练和部署各种类型的神经网络模型。本篇博客将指导你如何搭建MXNet环境,并通过一个简单的例子来实践构建一个神经网络模型。
环境搭建
1. 安装Python
MXNet支持Python作为编程语言,所以首先需要安装Python。可以通过Python官方网站下载并安装最新版本的Python。
2. 安装MXNet
可以通过pip命令来安装MXNet:
pip install mxnet
如果你在国...阅读全文
Aug102018
kafka4 副本机制
概述
每个分区有n个副本,可以承受n-1个节点故障。
每个副本都有自己的leader,其余都是follower。
zk中存放分区的leader和 follower replica的信息。(get /brokers/topics/mytest2/partitions/0/state)
每个副本存储消息的部分数据在本地的log和offset中,周期性同步到disk,确保消息写入全部副本或不写入任何一个。
leader故障时,消息或者在写入本地log,或者在producer收到ack消息前...阅读全文
Apr252018
Jan182018
避免在TensorFlow中出现的ValueError错误
在使用TensorFlow进行深度学习任务时,经常会遇到各种各样的错误。其中,ValueError错误是一种常见的错误类型。该错误通常是由于编码错误或不正确的操作导致的。下面,我将分享一些可帮助您避免在TensorFlow中出现ValueError错误的最佳实践。
1.检查输入数据的维度
TensorFlow中的大多数操作(例如卷积、矩阵乘法等)要求输入数据的维度是正确的。因此,在运行TensorFlow操作之前,务必检...阅读全文
Jan142018
ASP.NET Core on K8S Rolling Update
ASP.NET Core is a popular open-source web development framework developed by Microsoft. It allows developers to build modern and scalable web applications that can run on multiple platforms, including Kubernetes (K8S). Kubernetes is a container orchestration platform that enables easy deployment and management of containerized applications.
In this blog post...阅读全文
Jun202017
Ruby on Rails: Building Dynamic Web Applications
Ruby on Rails, often simply called Rails, is a popular open-source web development framework written in Ruby. It follows the MVC (Model-View-Controller) pattern, which promotes separation of concerns and makes it easy to build dynamic web applications quickly and efficiently. In this blog post, we will explore the features and benefits of Ruby on Rails and d...阅读全文
May242017
How to Implement Push Notifications in Your Mobile App
Push notifications have become an integral part of mobile apps, enabling businesses to engage and re-engage with their users. By sending timely and relevant messages to users’ devices, push notifications help increase user retention, drive conversions, and promote app updates or new features. In this blog post, we will explore the steps to implement pu...阅读全文
Mar252017
Dec172016
K8S Volumes
Introduction
Kubernetes (K8s) is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications. One of its key features is the ability to manage data persistence using Volumes and volumeMounts.
In this blog post, we will dive deep into the concept of K8s Volumes and volumeMounts, explorin...阅读全文