• 2024-05-18my favorite story (revised)
    Irememberfondlygazingatmymotherfromafar,admiringhereleganceandbeauty.However,asIknewheronlysuperficially,itwasdifficultformetofeeladeepsenseofloveorlongingforherwhenshewasnolongeraround.Truthfully,Ididn't
  • 2024-05-08lesson1
    单词court法庭settlesthoutofcourt私了accumulate/amassv积累amasspossessions积累财富pileup/collect/gather/hoard越积越多Meanwhile,thetraficpiledupbehind.Shenzhenrealestatedevelopershoardlagrgeamountsofland.obligev使...感到必须be
  • 2024-04-23Flink生产问题记录
    1.集群有2个flink版本,用application方式启动报错Causedby:java.lang.ClassCastException:cannotassigninstanceoforg.apache.commons.collections.map.LinkedMaptofieldorg.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase.pendingOffsetsToCommito
  • 2024-04-05C# 构造函数 (初始化成员变量的角色)
    构造函数是一种特殊的方法。创建对象时会自动调用它。构造函数不返回值。构造函数的目的是初始化对象的状态。构造函数与类具有相同的名称。构造函数是方法,因此它们也可以重载。构造函数不能被继承。它们按继承顺序被调用。如果我们不为类编写任何构造函数,则C#提供一个
  • 2024-04-05C# 继承
    继承是使用已经定义的类形成新类的方法。新形成的类称为派生的类,我们派生的类称为基类。继承的重要好处是代码重用和降低程序的复杂性。派生类(后代)将覆盖或扩展基类(祖先)的功能。1234567891011121314151617181920212223242526272829Program.usin
  • 2024-03-28Shell脚本查看端口是否被占用
    #!/bin/sh#检查端口是否被占用并输出占用程序check_port_usage(){port=$1#使用netstat命令检查端口result=$(netstat-tuln|grep:$port)if[-z"$result"];thenecho"Port$portisnotbeingused."else#输出占用端口
  • 2024-03-03Go 100 mistakes - #94: Not being aware of data alignment
      
  • 2024-02-13Go 100 mistakes - #10: Not being aware of the possible problems with type embedding
     Becausethemutexisembedded,wecandirectlyaccesstheLockandUnlockmethods fromtheireceiver.Wementionedthatsuchanexampleisawrongusageoftypeembedding.What’s thereasonforthis?Sincesync.Mutexisanembeddedtype,theLockand
  • 2024-02-13Go 100 mistakes - #9: Being confused about when to use generics
    Go1.18addsgenericstothelanguage.Inanutshell,thisallowswritingcodewithtypes thatcanbespecifiedlaterandinstantiatedwhenneeded. Onelastthingtonoteabouttypeparametersisthattheycan’tbeusedwith methodarguments,onlywith
  • 2024-01-20English81
    元老院最权威Senate元老院CouncilofElders老年人犹如历史和戏剧,可供我们生活的参考。​------西塞罗senate词根sen表示old,表示sen的其他单词也有old的含义。sensenate:元老院;参议院(字面意思为老的人)+-at
  • 2024-01-10Being Mortal 2
    我来到道格拉斯的病房。要不是看过扫描,我永远不会知道她病得那么重。“哈,看谁来了!”她那语气让我觉得好像是到了一个鸡尾酒会。“你好吗,医生?”我说:“好像该我问你这个问题。”她满脸灿烂的笑容,指着房间里的每个人给我介绍。“这是我丈夫亚瑟,你认识他的;这是我儿子布雷特。”她把
  • 2024-01-10Being Mortal 1
    跟伊万·伊里奇遭遇的原始的、19世纪的医生们相比,我们也好不到哪儿去——实际上,考虑到我们加诸病人身上的披着新技术外衣的折磨,甚至可以说,我们比他们更不如。这一境遇已足以让我们反思,到底谁更原始。无须同临终老人或处于生命末期的患者相处太长时间,你就可以本能地意识到,医学经
  • 2023-12-27非谓语动词特别注意
    主动表被动need,want,require(需求,要求)deserve(应得,值得)beworth(值得)notbear(经不住)后面接doing主动表被动ex:theroomneedscleaning这个房间需要被打扫主动表被动 done和beingdone的区别done(过去分词)原型bedone(一般现在时被动) beingdone:(1)现在分
  • 2023-12-02无涯教程-D语言 - 构造与解析函数
    类构造函数类构造函数是该类的特殊成员函数,只要我们创建该类的新对象 ,该函数便会执行。构造函数的名称与类完全相同,没有任何返回类型,构造函数对于为某些成员变量设置初始值非常有用。以下示例解释了构造函数的概念-importstd.stdio;classLine{public:void
  • 2023-11-29初中英语优秀范文100篇-012 My Experience of Being a Volunteer - 我的一次志愿者经历
    PDF格式公众号回复关键字:SHCZFW012记忆树1Lastyear,Ipaidavisittothehomefortheagedwithmyclassmatesasvolunteers.翻译去年,我和我的同学作为志愿者去老年人之家探望了老人们。简化记忆探望老人句子结构这个句子可以分为四个主要部分:1状语短语:“La
  • 2023-11-16Thread was being aborted Errors
    "executionTimeout"inthemachine.cofig<system.web><httpRuntimeexecutionTimeout="3600"/></system.web>TheproblemissolvedafteryoudeletetheencryptedcontentforSQlServer2008.Itworkedfor
  • 2023-11-12cc1: all warnings being treated as errors报错处理
    cmake时一切正常,make时产生了报错,并且解释为`cc1:allwarningsbeingtreatedaserrors`一些网上的方法是在Makefile文件里删除`-Werror`,但我的Makefile文件不存在这个选项。我的解决方法:在CMakeLists里寻找配置'-Werror'的语句,将这些涉及的语句删除。并且删除之前cmake
  • 2023-09-29Go - Change What Is Being Logged by the Standard Logger
    Problem: Youwanttochangewhatthestandardloggerlogs.Solution: UsetheSetFlagsfunctiontosetflagsandaddfieldstoeachlogline. Thedefaultbehaviorofthestandardloggeraddsthedateandtimefieldstoeachlineofthelog. Thelogpac
  • 2023-09-219.21 英语精读
    高铁化妆 Apublicservicevideoabout"uncivilisedbehavior"onboardChina'smuch-laudedhigh-speedtrainsappearstohavecomeofftherailsamidaccusationsthatitsinglesoutwomen.Thevideoappearstohavebeenintendedtoencourage
  • 2023-08-15Being stupid is hard.
    \(n\)个元素分成\(m\)份,每份不能为空,在\(n-1\)个空中插入\(m-1\)个板子,方案数\(C_{n-1}^{m-1}\)。为空则加上\(m\)个元素来垫着,就转化为上一个,然后就是\(C_{m-n+1}^{m-1}\)。所以为什么我之前不会插板?我是傻逼吗?然后突然发现,之前一直以为Gameswit
  • 2023-07-28element-ui 日期选择器报错 Prop being mutated: "placement"
    报错信息解决方法,添加placement="bottom-start"<el-date-pickerv-model="queryParams.startTime"type="date"placeholder="开始时间"value-format="yyyy-MM-ddHH:mm:ss"placement="bottom-start">
  • 2023-07-20ChatGPT 页面出现 429 错误提示
    429Youarebeingratelimited. (你被限制了)Wehavedetectedanincreasednumberofrequestsandhavelimitedtraffictemporarily.(我们检测到请求数量增加,暂时限制了流量)lfyouthinkthisisanerror,pleasecontactthesystemsadministrator.(如果您认为这是一个错误,请
  • 2023-07-05崇明区一模卷错题总结
    1.advisetodo2.forgetful健忘的3.被动语态不会被动语态:1,一般现在时:am,is,are+动词过去分词例如:Theballisplayed,everyday这个球每天被踢2,一般过去时:was,were+动词过去分词Theballwasplayed,yesterday这个球昨天被踢3,一般将来时:willbe+动词过去分
  • 2023-06-17Etherchannel & ether trunk
    EtherchannelisaCiscotrademarkedterm.华为借鉴了Cisco的Etherchannel,但又怕被告,所以换名为ethertrunk。WecancreateEtherchannelusingPAgP,LACP,orstaticon.PAgPbeingCisco’sproprietaryprotocolandLACPbeingtheopenstandard.更多详情见https://ipwi
  • 2023-06-13Remove Duplicates from Sorted Array
    Example1:Input:nums=[1,1,2]Output:2,nums=[1,2,_]Explanation:Yourfunctionshouldreturnk=2,withthefirsttwoelementsofnumsbeing1and2respectively.Itdoesnotmatterwhatyouleavebeyondthereturnedk(hencetheyareunderscores)