Article directory badblocks Additional information grammar Options parameter Example other Learn `python` from scratch badblocks Find corrupted blocks on disk Supplementary instructions The badblock command is used to find damaged blocks on the disk. The hard disk is a wear-and-tear device, and physical failures such as bad sectors may occur after being used for a […]
Tag: block
Enable block verification checksum on PG or HGDB
Hangao Database Directory Environment Document Purpose Details Environment System platform: Linux x86-64 Red Hat Enterprise Linux 7 Version: 14,N/A Document Purpose Purpose Use checksum to provide block verification for the database to discover hidden block corruption problems. Note that it only applies to native PG or HGDB Enterprise Edition, or HGDB Security Edition that does […]
System Programming Three: Signal Processing + Signal Blocking Properties
1. Function interface about signals 1. How to send a signal to another process? (kill) Order kill – signal value ID number of the process killall – signal value process name function kill – send signal to a process //Send a signal to a process SYNOPSIS #include #include int kill(pid_t pid, int sig); parameter: pid: […]
JUC concurrent programming – Join method analysis: Why does calling the Join method of the sub-thread in the main thread cause the main thread to block instead of the sub-thread? (I haven’t finished writing, I don’t want to write anymore)
1. Example code public class JoinTest { public static void main(String[] args) throws Exception { String start = nowTime(); System.out.println(start + “–>” + Thread.currentThread().getName() + ” end!”); Thread threadA = new Thread(new JoinThread(2), “A”); Thread threadB = new Thread(new JoinThread(5), “B”); Thread threadC = new Thread(new JoinThread(5), “C”); threadA.start(); threadB.start(); threadC.start(); threadA.join(); String end = […]
Blockchain-FISCO BCOS Python SDK use
1. Use of console -Download the sdk project git clone https://github.com/FISCO-BCOS/python-sdk Install dependencies cd python-sdk pip install -r requirements.txt #If the network is unavailable, you can change the domestic server pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple –trusted-host mirrors.aliyun.com Create user python-sdk$ python3 console.py newaccount larry larry123 INFO >> user input : [‘newaccount’, ‘larry’, ‘larry123’] starting […]
Building Block Report JimuReport v1.6.2-GA5 released-a security-hardened version of high-risk SQL vulnerabilities
Projectintroduction Afreedatavisualizationreport,includingreportandlarge-screendesign,designreportsonlinelikebuildingblocks!Functionsincludedatareports,printdesign,chartreports,large-screendesign,etc.! ThewebversionofthereportdesignerissimilartotheExceloperatingstyleandcompletesreportdesignthroughdraganddrop. Adheringtotheproductconceptof”simple,easy-to-use,andprofessional”,itgreatlyreducesthedifficultyofreportdevelopment,shortensthedevelopmentcycle,savescosts,andsolvesvariousreportproblems. Theleadingenterprise-levelWebreportingsoftwareadoptspureWebonlinetechnologyandfocusesonsolvingtheproblemofrapidproductionofenterprisereports. Currentversion:v1.6.2-GA5|2023-09-12 #Upgradecontent FocusonsolvingsecurityissuessuchasSQLvulnerabilityattacks!Thisversionhasundergoneamajorreconstruction,reconstructedthepermissionmechanismandcompletelyrewrittentheSQLexecutionlogictosolvetheriskofSQLvulnerabilities;anddealtwithknownseriousbugsinthepreviousversion; :::Onlysayimportantthingsonce,youmustupgrade,otherwiseyouwillbeattacked::: #Newversionofrulechanges 1.Themulti-tenantconfigurationmodeischangedto:saasMode 2.Newlow-codedevelopmentmodelowCodeMode:prod,whichcompletelyprohibitsonlinereportdesigncapabilitiesandcompletelyavoidsattacks. 3.Thedefaultreportpreviewaddressmusthaveatoken,andtheycanonlyaccessthereportthroughthereportsharingconnection. Integrateddependencies <dependency> <groupId>org.jeecgframework.jimureport</groupId> <artifactId>jimureport-spring-boot-starter</artifactId> <version>1.6.2-GA5</version> </dependency> #Upgradelog #Upgradepermissioncontent:Ensurereportsecuritythroughthefollowingdimensions 1.Addlow-codedevelopmentmodeconfigurationjeecg.jmreport.firewall.lowCodeMode:prod Inreleasemode,allreportdesign-relatedinterfaceswillbeclosed.Ordinaryuserscanonlyaccessreportsandcannotmakeanyreportmodifications,completelyeliminatingtheriskofbeingattacked. Inordertofacilitatetemporarymaintenanceofonlinereports,userswithroles”admin”and”lowdeveloper”canhavedesignpermissions 2.Sensitiveinterface,addrolepermissioncontrol Sensitiveinterfacesthatarevulnerabletoattackshaverolepermissioncontrolsaddedbydefault.Userswithroles”admin”,”lowdeveloper”,”dbadeveloper”canaccesstheseinterfaces. Thesensitiveinterfacesareasfollows: a.Datapreviewinterface b.Datasourceconnectiontesttoseeiftheinterfaceisaccurate 3.Adddataisolationconfigurationjmreport.saasMode:created Whenpublishingonline,pleaseisolatedataaccordingtothecreatorortenanttoensurethesecurityofotherpeople’sdata. created:Isolatedaccordingtothecreator,tenant:Isolatedaccordingtothetenant 4.Adddatasourcesecurityconfigurationjeecg.jmreport.firewall.dataSourceSafe:true Afterdatasourcesecurityisturnedon,platformdatasources,SQLparsingandsigningarenotallowed,anddatabasequeriesarenotallowed. 5.Rewrotethewritingmethodofsqlparametersplicingandreplaceditwithplaceholderstopreventthepossibilityofbeinghacked. 6.FurtherstrengthenedtheSQLinjectioncheckalgorithm,throughin-depthanalysisofSQL,tocheckwhetherthereareattackfunctions,etc. </code><imgclass=”look-more-preCodecontentImg-no-view”src=”//i2.wp.com/csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreBlack.png”alt=””title=””> Thedetailedconfigurationparametersareasfollows: jeecg: jmreport: #Multi-tenantmode,thedefaultvalueisempty(created:isolatedbycreator,tenant:isolatedbytenant)(v1.6.2+new) saasMode:created #Platformonlinesecurityconfiguration(v1.6.2+new) firewall: #Datasourcesecurity(whenturnedon,platformdatasources,SQLparsingandsigningarenotallowed,anddatabasequeriesarenotallowed) dataSourceSafe:true #Low-codedevelopmentmode(dev:developmentmode,prod:releasemode-turnofftheonlinereportdesignfunction,andassignrolesadminandlowdevelopertoreleaserestrictions) lowCodeMode:prod specialscene Ifsomeonecandesignreportsinthetestenvironment,butcannotdesignreportsinthereleaseenvironment,justassigntheroledbadeveloper.Ofcourse,inthetestenvironment,youneedtochangelowCodeModetodev. #UpgradeandrepairISSUES Whenthecellisformattedasnumericvalue,thevalueisnotdisplayed#1936 Blankpageappearswhenprinting#1924 Usingstatisticalfunction=DBSUMcausesthepreviewpagetodisplayblank#1806 Thecellisofnumerictype.Ifthevalueis0orempty,theconsolewillreporterror#1940 […]
Blocking strategy of java thread pool
1. The blocking strategies of the thread pool mainly include the following: AbortPolicy: This is the default blocking policy. When neither the thread queue nor the idle thread can handle the new task, the new task submission will directly throw an exception RejectedExecutionException, which can be caught by the caller. CallerRunsPolicy: This policy will try […]
iSCSI: Automated configuration of iSCSI-based block device network storage initiators
Write in front Preparing for exams and organizing relevant notes The blog post covers: Manual configuration using block storage as the iSCSI tag for backend storage and accessing it through the initiator Automated configuration of starters via ansible If you don’t understand enough, please help me correct it. For everyone, there is only one true […]
Non-blocking reading of keyboard input in Python
Non-blocking reading of keyboard input in Python In Python programming, it is sometimes necessary to read keyboard input in real time, but normal input methods will block program execution, resulting in an inability to respond in time. At this time, you can use some techniques to achieve non-blocking access to keyboard input. This article will […]
Summary of CSS methods to achieve horizontal and vertical centering of Dom nodes (inline elements and block-level elements)
How to implement horizontal and vertical centering of dom nodes using css: Inline elements: Basic centering method 1.text-align + line-height text-align is set to center; The line-height setting is the same as the height of the parent box element .box { background-color: aquamarine; width: 200px; height: 200px; line-height: 200px; text-align: center; } <div class=”box”>123</div> Flex […]