实现本地电脑监控服务器端电脑监控功能publicclassClient{ //入口 publicstaticvoidmain(String[]args){ try{ intchoice=JOptionPane.showConfirmDialog(null,"请求控制对方电脑","远程控制系统-Charles",JOptionPane.YES_NO_OPTION); if(choice==JOptionPane.NO_OPTION){ return; } Stringinput=JOptionPane.showInputDialog("请输入要连接电脑的ip(包括端口号)","127.0.0.1:10000"); //获取服务器的主机 Stringhost=input.substring(0,input.indexOf(":")); //获取服务器的端口号 Stringpost=input.substring(input.indexOf(":")+1); System.out.println("服务器的主机:"+host+""+"端口号:"+post); Socketclient=newSocket(host,Integer.parseInt(post)); DataInputStreamdis=newDataInputStream(client.getInputStream()); JFramejframe=newJFrame("本地监控系统-Charles"); jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//默认关闭进程 jframe.setSize(1024,768);//设置窗体大小 doubleheight=dis.readDouble(); doublewidth=dis.readDouble(); Dimensionds=newDimension((int)width,(int)height); //设置 jframe.setSize(ds); //将服务器图片作为背景 JLabelbackImage=newJLabel(); JPanelpanel=newJPanel(); //设置滚动条 JScrollPanescrollPane=newJScrollPane(panel); panel.setLayout(newFlowLayout()); panel.add(backImage); jframe.add(scrollPane); jframe.setAlwaysOnTop(true); jframe.setVisible(true); while(true){ intlen=dis.readInt(); byte[]imageData=newbyte[len]; dis.readFully(imageData); ImageIconimage=newImageIcon(imageData); backImage.setIcon(image); jframe.repaint(); } }catch(Exceptione){ e.printStackTrace(); } }}
2024/12/9 15:25:48 13KB java 远程监控
1
ViewAssessmentResult:Multiple-ChoiceQuiz2Yourperformancewasasfollows:1.Thedegreeofatableisthenumberof_____inthetable.(a)keys(b)columns(c)rows(d)foreignkeysCorrectansweris(b)Yourscoreonthisquestionis:10.00Feedback:(b)--------------------------------------------------------------------------------2.Thearityofatableisthenumberof_____inthetable.(a)keys(b)columns(c)foreignkeys(d)rowsCorrectansweris(b)Yourscoreonthisquestionis:10.00Feedback:(b)--------------------------------------------------------------------------------3.Whatinformationisnecessarywhenspecifyingthestructureofatable?(a)thenameofthetableandtheamountofstoragespacetobeallocatedtothetable(b)thenameofthetable,thenamesofthetable'sattributes,thedatatypesofthetable'sattributes,theformatsofthetable'sattributes,andthemaximumnumberofrowsthatthetablecanhave(c)thenameofthetableandthenamesofthetable'sattributes(d)thenameofthetable,thenamesofthetable'sattributes,thedatatypesofattributes,andtheformatsofattributesCorrectansweris(d)Yourscoreonthisquestionis:10.00Feedback:(d)--------------------------------------------------------------------------------4.TheforeignkeyinatableT1_____thesame_____asthecorrespondingprimarykeyintableT2.musthave,nameneednothave,namemusthave,domain(a)I,II,andIII(b)IandII(c)IandIII(d)IIandIIICorrectansweris(d)Yourscoreonthisquestionis:10.00Feedback:(d)--------------------------------------------------------------------------------5.WhichofthefollowingSQLstatementscanbeusedtoaddarowtoatable?(a)CREATE(b)INSERT(c)APPEND(d)ADDCorrectansweris(b)
2024/12/2 8:58:25 259KB SSD7 Multiple-Choice
1
ReviewFromthereviews:"Thebookisdevotedtopublickeycryptography,whoseprincipalgoalistoallowtwoormorepeopletoexchangeconfidentialinformation….Thematerialisverywellorganized,anditisself-contained:noprerequisitesinhighermathematicsareneeded.Infact,everythingisexplainedandcarefullycovered….thereisabundanceofexamplesandproposedexercisesattheendofeachchapter.…Thisbookisidealasatextbookforacourseaimedatundergraduatemathematicsorcomputersciencestudents."(FabioMainardi,TheMathematicalAssociationofAmerica,October,2008)"Thisbookfocusesonpublickeycryptography….Hoffstein,Pipher,andSilverman…provideathoroughtreatmentofthetopicswhilekeepingthematerialaccessible.…Thebookusesexamplesthroughoutthetexttoillustratethetheorems,andprovidesalargenumberofexercises….Thevolumeincludesanicebibliography.…SummingUp:Highlyrecommended.Upper-divisionundergraduatethroughprofessionalcollections."(C.Bauer,Choice,Vol.46(7),March,2009)"Formostundergraduatestudentsinmathematicsorcomputerscience(CS),mathematicalcryptographyisachallengingsubject.…itiswritteninawaythatmakesyouwanttokeepreading.…Theauthorsofficiallytargetedthebookforadvancedundergraduateorbeginninggraduatestudents.Ibelievethatthisaudienceisappropriate.…itcouldevenbeusedwithstudentswhoarejustlearninghowtoexecuterigorousmathematicalproofs.…Istronglybelievethatitfindstherighttonefortoday’sstudents…."(BurkhardEnglert,ACMComputingReviews,March,2009)"Theexercisesandtextwouldmakeanexcellentcourseforundergraduateindependentstudy.…Thisisanexcellentbook.Hoffstein,PipherandSilvermanhavewrittenasgoodabookasispossibletoexplainpublickeycryptography.…Thisbookwouldprobablybebestsuitedforagraduatecoursethatfocusedonpublickeycryptography,forunder
2024/5/2 18:28:21 7.38MB 密码学
1
可以采用两种方法配置数据库:该系统登录初始账号为admin,初始密码为admin。
-------------------------------1.利用SQL语句创建数据库本例使用的后端数据库是Microsoft公司的SQLServer2000,需要配置数据库和并创建表格。
步骤如下:(1)打开SQLServer的企业管理器,并依次打开左边TreeView(树型视图)中的节点:【控制台根目录】->【MicrosoftSQLServers】->【SQLServer组】->【(Local)】->【数据库】。
(2)鼠标右键单击“数据库”节点,在弹出的菜单中选择“新建数据库”。
(3)在弹出的对话框中输入数据库名“stu”,单击“确认”按钮,数据库建立成功。
(4)关闭企业管理器,打开SQLServer查询分析器,选择stu数据库(若设置了SQLServer安全性,则还需要输入用户和密码登录到SQLServer)。
(5)在查询分析器中输入如下代码建立数据表结构。
可以直接导入“data”目录下的stu.sql文件运行。
①建立密码表USEstuIFEXISTS(SELECTnameFROMsysobjectsWHEREname='密码'ANDtype='U')DROPTABLE[密码]GoCREATETABLE[密码](用户名nvarchar(50)PRIMARYKEY,密码nvarchar(50),权限nvarchar(50))Go②建立studentinfo表USEstuIFEXISTS(SELECTnameFROMsysobjectsWHEREname='studentinfo'ANDtype='U')DROPTABLEstudentinfoGoCREATETABLEstudentinfo(snonvarchar(50)PRIMARYKEY,snamenvarchar(50),sexnvarchar(50),birthsmalldatetime,telnvarchar(50),addressnvarchar(50),mnvarchar(50),photoimage)Go③建立teacherinfo表USEstuIFEXISTS(SELECTnameFROMsysobjectsWHEREname='teacherinfo'ANDtype='U')DROPTABLEteacherinfoGoCREATETABLEteacherinfo(tnonvarchar(50)PRIMARYKEY,tnamenvarchar(50),titlenvarchar(50),telnvarchar(50),mntext)Go④建立courseinfo表USEstuIFEXISTS(SELECTnameFROMsysobjectsWHEREname='courseinfo'ANDtype='U')DROPTABLEcourseinfoGoCREATETABLEcourseinfo(cnonvarchar(50)PRIMARYKEY,cnamenvarchar(50),chournvarchar(50),creditnvarchar(50),mntext)Go⑤建立course_teacher表USEstuIFEXISTS(SELECTnameFROMsysobjectsWHEREname='course_teacher'ANDtype='U')DROPTABLEcourse_teacherGoCREATETABLEcourse_teacher(idint,cnonvarchar(50),tnonvarchar(50),mntext)Go⑥建立choice表USEstuIFEXISTS(SELECTnameFROMsysobjectsWHEREname='choice'ANDtype='U')DROPTABLEchoiceGoCREATETABLEchoice(idint,stunonvarchar(50),coursenonvarchar(50),teacherno
2024/4/2 15:04:23 1.74MB vb sql
1
PetrifyisatoolforthesynthesisofboundedPetrinetsandlogicsynthesisofasynchronouscontrollers.PetrifyinitiallyperformsatokenflowanalysisofthePetrinetandproducesafinitetransitionsystem(TS).IntheinitialTS,alltransitionswiththesamelabelareconsideredasoneevent.TheTSisthentransformedandtransitionsrelabeledtofulfiltheconditionsrequiredtoobtainaPetrinetwithbisimilarortrace-equivalentbehavior.SomepropertiesforthesynthesizedPetrinetcanbeimposed(e.g.free-choice,uniquechoice,pure,state-machinedecomposable,etc.).Additionally,petrifycaninterpretthePetrinetasaSignalTransitionGraph(STG),inwhicheventsrepresentrising/fallingtransitionsofdigitalsignals.FromanSTG,petrifycansynthesizeaspeed-independentcircuitbysolvingtheproblemsofstateencoding,logicsynthesis,logicdecompositionandtechnologymappingontoagatelibrary.Petrifycanalsosynthesizecircuitundertimingassumptionsspecifiedbythedesignerorautomaticallygeneratedbythetool.PetrifyreadstheinputdescriptionfromstdinandwritestheresultingSTGtostdoutunlessotherwisespecified
2023/12/1 6:46:18 1.07MB Asynchronous Synthesis
1
ListView多选操作形式详解CHOICE_MODE_MULTIPLE与CHOICE_MODE_MULTIPLE_MODAL与该demo配套的文章:http://jcodecraeer.com/a/anzhuokaifa/androidkaifa/2014/1105/1906.html
2023/3/7 10:55:40 1.07MB android
1
packagecom.frog.vote.servlet.front;importjava.io.IOException;importjava.sql.Timestamp;importjava.util.ArrayList;importjava.util.List;importjavax.servlet.ServletContext;importjavax.servlet.ServletException;importjavax.servlet.http.HttpServlet;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importcom.frog.vote.bean.UserBean;importcom.frog.vote.cons.Const;importcom.frog.vote.dao.entity.Vote;importcom.frog.vote.factory.ServiceFactory;publicclassVoteServletextendsHttpServlet{ @Override protectedvoiddoGet(HttpServletRequestreq,HttpServletResponseresp) throwsServletException,IOException { doPost(req,resp); } @Override protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp) throwsServletException,IOException { req.setCharacterEncoding("gbk"); resp.setContentType("text/html;charset=gbk"); //先取出操作参数 Stringaction=req.getParameter("action"); ServletContextapplication=getServletContext(); //显示的列表 if("show".equals(action)) { //调用service层方法得到所有的 Stringtemp=req.getParameter("page"); intpage=1; if(temp!=null) { try { page=Integer.parseInt(temp); } catch(NumberFormatExceptione) { e.printStackTrace(); } } UserBeanub=(UserBean)req.getSession().getAttribute(Const.USER); intuid=ub.getId(); req.setAttribute("page",ServiceFactory .getVoteService().listUserPage(page,uid)); application.getRequestDispatcher("/WEB-INF/front/list.jsp") .forward(req,resp); return; } elseif("save".equals(action)||"update".equals(action)) { Stringsid=req.getParameter("id"); String[]answers=req.getParameterValues("choice"); Listlist=newArrayList(); inttemp; for(Stringanswer:answers){temp=Integer.parseInt(answer);list.add(temp);} inttid=Integer.parse
2022/9/3 9:36:43 577KB jsp+servlet+mysql
1
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡