Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: usage

C # gets CPU and memory usage

Original: C#Get CPU and memory usage rate

Method 1:

using System;
using System.Runtime.InteropServices;

namespace ConsoleApp1
{
public class Class1
{
static void Main(string[

October 4, 2021By Simo C# C #, CPU, Get, memory, rate, usageLeave a Comment

C # Read and write files When the file is used by another process, so the process cannot access the file.

Now you need to read the log file and display it in the log query, and you need to use the IO stream.

1,

FileStream fs = File.OpenRead(url);
StreamReader sr = new StreamReader((System.

October 4, 2021By Simo C# Access, C #, file, one, Positive, process, read and write, time, Unable, us, usageLeave a Comment

Use version control (GIT) on the MySQL database

I am a WordPress designer/developer, and he is increasingly involved in the use of version control, especially Git, although I use SVN in some projects. I currently I am using Beanstalk as my remot

October 4, 2021By Simo Mysql control, database, git, mysql, usage, versionLeave a Comment

If there is a column in MySQL, use the alter to delete columns

If the column exists, how to use ALTER to delete a column in the MySQL table?

I know that I can use ALTER TABLE my_table DROP COLUMN my_column, but if my_column does not exist, an error will

October 4, 2021By Simo Mysql alter, Column, delete, existence, if, mysql, usageLeave a Comment

ReactJS – Using the application shell architecture First serverside rendering and offline

How to use SSR and offline priority features and merge the two technologies together?

SSR is able to render my javascript template in order to load the application faster and flicker-free, an

October 3, 2021By Simo System Architecture Applications, architecture, First, offline, Programs, Reactjs, rendering, Serverside, shell, usageLeave a Comment

Lamp + WordPress for HA High Availability Based on HeartBeat V2 CRM

One Heartbeat basic theory

Provide redundant system:
HA Cluster: In order to improve the system callability, combine multiple hosts to build a cluster;

Split brain, partitioned cluste

October 2, 2021By Simo Monitoring Based on, CRM, HA, Heartbeat, high, Implementation, LAMP, Lamp + WordPress, usage, V2, WordPressLeave a Comment

Angle performance: Components use 500 (sub) members public objects

I am using Angular 4 with Typescript.

I have a static class with many public static/constant string members whose value will never be Change. Many of my components expose this class to access

October 2, 2021By Simo Performance Angle, Child, Component, Member, object, open, performance, public, usageLeave a Comment

Protocol-buffers – Generate C # files from .proto files from .proto files in the pre-built event.

We have been working with protobuf for a while, and I decided to write a small console application for the client, which will allow them to perform some tests in the field.

I started a new c#

October 1, 2021By Simo Micro Services Buffers, build, Event, file, Generation, pre-, proto, protocol, protogen, usageLeave a Comment

Domain Drive Design – DDD and entity libraries, models using multiple identity types

I have a model that looks like this:

public interface IEntity
{
int Id {get; set; }
} Then my idea is to let my entity inherit from this interface:

public class User: IEntity
{
public

September 30, 2021By Simo Design Pattern DDD, design, Domain, Drive, entity, Identity, Library, model, multiple, type, usageLeave a Comment

Reptile-REQUESTS usage

Chinese document API: http://requests.kennethreitz.org/zh_CN/latest/

Installation

pip install requests Get webpage

# coding=utf-8
import requests

response = requests.get(‘ht

September 29, 2021By Simo Web Crawler Herbs, requests, usageLeave a Comment

Posts navigation

Page 1 Page 2 Page 3 Page 4
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress