Intel ISPC编译器生成的.h与.obj文件如何使用?

最近在利用ispc做加速的项目,我下载了ispc.exe(https://ispc.github.io/ispc.html),自己编写了一个.ispc文件,使用Windows 命令行的方式,利用ispc.exe将.ispc文件生成了一个.h与.obj文件,在我自己的项目中已经包含了生成的.h文件, 但是 还不清楚如何使用.obj文件,目前当我编译我的项目时,会显示无法解析的外部符号这样的问题,请问有没有人做过相关的项目,请教大家如何使用.h与.obj文件。

c++

2个回答

cmakelist生成.obj和.h应该是唯一的解决方法

u014518566
warwick93 这边我的项目是cmake build出来的,不是那种简单的项目,不知道要怎么搞
10 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Linux下多个子项目的工程依赖如何处理?详见正文

目前有一个项目,项目的结构如图。分为三个子项目。 ![图片说明](https://img-ask.csdn.net/upload/201909/08/1567929985_296268.jpg) Test是整个项目的测试部分,入口函数在这里,在windows环境下,cmake出的项目我需要先debug运行ISPC子项目生成一个.obj与.h文件,整个项目才能够跑的起来,这是前提。 但是当运行环境是linux时,由于cmake出的程序只有一份makefile,make构造时,势必无法找到ISPC生成的.o与.h文件,因为无法先运行ISPC子程序,所以目前的问题是在linux环境下,针对这个项目的情况,如何可以先运行ISPC部分能够生成想要的依赖文件,再运行Test部分???

利用MATLABGUI界面的编辑文本框输入信息然后保存到全局变量中,但是运行出错,希望各位看到了能够帮我解答一下,万分感谢。

function varargout = gui_face(varargin) % GUI_FACE MATLAB code for gui_face.fig % GUI_FACE, by itself, creates a new GUI_FACE or raises the existing % singleton*. % % H = GUI_FACE returns the handle to a new GUI_FACE or the handle to % the existing singleton*. % % GUI_FACE('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in GUI_FACE.M with the given input arguments. % % GUI_FACE('Property','Value',...) creates a new GUI_FACE or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before gui_face_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to gui_face_OpeningFcn via varargin. % % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % % See also: GUIDE, GUIDATA, GUIHANDLES % Edit the above text to modify the response to help gui_face % Last Modified by GUIDE v2.5 05-Apr-2020 14:13:30 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @gui_face_OpeningFcn, ... 'gui_OutputFcn', @gui_face_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT % --- Executes just before gui_face is made visible. function gui_face_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to gui_face (see VARARGIN) % Choose default command line output for gui_face handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes gui_face wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = gui_face_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output; function edit1_Callback(hObject, eventdata, handles) % hObject handle to edit1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit1 as text % str2double(get(hObject,'String')) returns contents of edit1 as a double % --- Executes during object creation, after setting all properties. function edit1_CreateFcn(hObject, eventdata, handles) % hObject handle to edit1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function edit2_Callback(hObject, eventdata, handles) % hObject handle to edit2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit2 as text % str2double(get(hObject,'String')) returns contents of edit2 as a double % --- Executes during object creation, after setting all properties. function edit2_CreateFcn(hObject, eventdata, handles) % hObject handle to edit2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function edit3_Callback(hObject, eventdata, handles) % hObject handle to edit3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit3 as text % str2double(get(hObject,'String')) returns contents of edit3 as a double % --- Executes during object creation, after setting all properties. function edit3_CreateFcn(hObject, eventdata, handles) % hObject handle to edit3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function edit4_Callback(hObject, eventdata, handles) % hObject handle to edit4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit4 as text % str2double(get(hObject,'String')) returns contents of edit4 as a double % --- Executes during object creation, after setting all properties. function edit4_CreateFcn(hObject, eventdata, handles) % hObject handle to edit4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function edit5_Callback(hObject, eventdata, handles) % hObject handle to edit5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit5 as text % str2double(get(hObject,'String')) returns contents of edit5 as a double % --- Executes during object creation, after setting all properties. function edit5_CreateFcn(hObject, eventdata, handles) % hObject handle to edit5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function edit6_Callback(hObject, eventdata, handles) % hObject handle to edit6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit6 as text % str2double(get(hObject,'String')) returns contents of edit6 as a double % --- Executes during object creation, after setting all properties. function edit6_CreateFcn(hObject, eventdata, handles) % hObject handle to edit6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function edit7_Callback(hObject, eventdata, handles) % hObject handle to edit7 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit7 as text % str2double(get(hObject,'String')) returns contents of edit7 as a double % --- Executes during object creation, after setting all properties. function edit7_CreateFcn(hObject, eventdata, handles) % hObject handle to edit7 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function edit8_Callback(hObject, eventdata, handles) % hObject handle to edit8 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit8 as text % str2double(get(hObject,'String')) returns contents of edit8 as a double % --- Executes during object creation, after setting all properties. function edit8_CreateFcn(hObject, eventdata, handles) % hObject handle to edit8 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end % --- Executes on button press in Load. function Load_Callback(hObject, eventdata, handles) % hObject handle to Load (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) delete(gcf); %全局变量 global courseName %课程名称 global courseNum %课程号 global xueyuan %任教学院 global className %授课班级 global examDate %考试日期 global chujuanway %出卷方式 global yuejuanway %阅卷方式 global examway %考试方式 %课程名称 index=get(handles.edit1,'value'); str=get(handles.edit1,'String'); courseName=char(str(index)); %课程号 index=get(handles.edit2,'value'); str=get(handles.edit2,'String'); courseNum=char(str(index)); %任教学院 index=get(handles.edit3,'value'); str=get(handles.edit3,'String'); xueyuan=char(str(index)); %授课班级 index=get(handles.edit4,'value'); str=get(handles.edit4,'String'); className=char(str(index)); %考试日期 index=get(handles.edit5,'value'); str=get(handles.edit5,'String'); examDate=char(str(index)); %出卷方式 index=get(handles.edit6,'value'); str=get(handles.edit6,'String'); chujuanway=char(str(index)); %阅卷方式 index=get(handles.edit7,'value'); str=get(handles.edit7,'String'); yuejuanway=char(str(index)); %考试方式 index=get(handles.edit8,'value'); str=get(handles.edit8,'String'); examway=char(str(index));

使用ASP.NET通过检测请求头判断是否为移动设备这样写可以吗?

protected void mobileRedirect() { string userAgent = Request.UserAgent; bool isPC = true; string[] Agents = new string[] { "Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod" }; for (int i = 0; i < Agents.Length; i++) { if (userAgent.IndexOf(Agents[i]) > -1) { isPC = false; } } if (!isPC) { Response.Redirect("/wap/index_mo.html"); } } 该方法能检测出所有的移动设备吗?

在手机浏览器中,先window.scroll滚动到一定的位置,再用手滑动页面,页面会回顶部

在手机浏览器中,先window.scroll滚动到一定的位置,再用手滑动页面,页面会回顶部,从顶部跟随手指移动 if(!!sessionStorage.getItem("scrollTop")){ window.scrollBy(0,sessionStorage.getItem("scrollTop")); } childBox.addEventListener('touchstart', function (e) { lastY = startY = e.touches[0].clientY; //觸摸點相對瀏覽器的位置 //console.log("currY" + currY) //起始時間和位置 lastMoveStart = lastY; lastMoveTime = Date.now(); stopInertiaMove = true; }); childBox.addEventListener('touchmove', function (e) { e.preventDefault(); //防止打開連接 moveY = e.touches[0].clientY; distanceY = moveY - startY; Com.removeTransition(); if (distanceY <= 0) { Com.setTranslateY(currY + distanceY); //超過30時,顯示滑動信息 if ((currY + distanceY) >= maxSwipe - 30) { LeXinIntance.find(".LexinSlideDown").show(); } else if ((currY + distanceY) <= minSwipe + 30) { LeXinIntance.find(".LexinSlideUp").show(); } if (!IsPc) { var pare_h = LeXinIntance.height(); var wrap_h = $("body").height() - 50; var CanScrollHeight = wrap_h - pare_h; //matrix(1, 0, 0, 1, 0, -11) //獲取已經異動的高度 scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; //console.log("scrollTop" + scrollTop + "," + CanScrollHeight); if (Number(scrollTop) >= (Math.abs(CanScrollHeight) - 30)) { //LeXinIntance.find(".LexinSlideUp>span:nth-of-type(2)").text("laoding next page") LeXinIntance.find(".LexinSlideUp").show(); } else if (scrollTop > 10) { LeXinIntance.find(".LexinSlideDown").show(); //LeXinIntance.find(".LexinSlideDown>span:nth-of-type(2)").text("laoding prepage") } else { //LeXinIntance.find(".LexinSlideDown>span:nth-of-type(2)").text("Click or slide down Load prepage"); //LeXinIntance.find(".LexinSlideUp>span:nth-of-type(2)").text("Click or slide up Load next page"); } } } ismove = true; /** * 缓动代码 */ var nowTime = Date.now(); //滑動當前時間 stopInertiaMove = true; //表示滑動過 //滑動時間超過0.3秒重置起始時間和位置 if (nowTime - lastMoveTime > 300) { lastMoveTime = nowTime; lastMoveStart = moveY; } }); childBox.addEventListener('touchend', function (e) { //console.log("ismove" + ismove) if (ismove) { /*记录当前的定位 上一次当前的定位 + 这一次改变的定位*/ currY = currY + distanceY; if (!IsPc) { var pare_h = LeXinIntance.height(); var wrap_h = $("body").height() - 50; var CanScrollHeight = wrap_h - pare_h; scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; if (Number(scrollTop) >= (Math.abs(CanScrollHeight) - 30)) { LeXinIntance.find(".LexinSlideUp").hide(); //LeXinIntance.find(".LexinSlideUp>span:nth-of-type(2)").text("Click or slide up Load next page"); //var comLi = LeXinIntance.find(".on").find("*").length; SliderupLoad(); //if (comLi == LeXinIntance.find(".on").find("*").length) { // LeXinIntance.find(".LexinSlideUp>span:nth-of-type(2)").text("is bottom"); } else { //慣性滾動 var nowY = e.changedTouches[0].clientY; var nowTime = Date.now(); var v = (nowY - lastMoveStart) / (nowTime - lastMoveTime); //最后一段时间手指划动速度 stopInertiaMove = false; //停止滑動 (function (v, startTime) { var dir = v > 0 ? -1 : 1; //加速度方向 向下滑動v>0加速度dir<0,向上滑v<0加速度dir>0 var deceleration = dir * 0.002; //每次速度減少量 var duration = v / deceleration; // 速度消减至0所需时间 var dist = v * duration / 2; //最终移动多少 0~V的平均速度 移動duration長時間的距離 //console.log("v" + v); //console.log("inertiaMove" + dir + "," + deceleration + "," + duration + "," + dist + "," + currY + "," + startTime); Com.removeTransition(); //取消動畫效果,採用setTimeout取代 function inertiaMove() { if (stopInertiaMove) return; var nT = Date.now(); var t = nT - startTime; var nowV = v + t * deceleration; // 速度方向变化表示速度达到0了 if (v * nowV <= 0) { return; } var mY = (v + nowV) / 2 * t; //console.log("t" + t + "," + currY + "," + CanScrollHeight + "," +v + "," + nowV + "," +mY); //console.log("mY" + mY); if (currY <= 0) { if (currY + mY > 0 && dir == -1) { //已到頂 //console.log("已到頂"); currY = 0; Com.setTranslateY(currY); return; } else if (currY + mY < CanScrollHeight && dir == 1) { //已到底 -200<-135 //console.log("已到底" + CanScrollHeight); currY = CanScrollHeight; //Com.addTransition(); Com.setTranslateY(CanScrollHeight); return; } else { currY = currY + mY; Com.setTranslateY(currY); setTimeout(inertiaMove, 10); } } } inertiaMove(); })(v, nowTime); } } /*重置所有的参数 不重置currY */ startY = 0; moveY = 0; distanceY = 0; ismove = false; } }); setTranslateY: function (y) { window.scrollTo(0, Math.abs(y)); }

MATLAB小波图像去噪运行错误

function varargout = wavlet(varargin) % WAVLET M-file for wavlet.fig % WAVLET, by itself, creates a new WAVLET or raises the existing % singleton*. % % H = WAVLET returns the handle to a new WAVLET or the handle to % the existing singleton*. % % WAVLET('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in WAVLET.M with the given input arguments. % % WAVLET('Property','Value',...) creates a new WAVLET or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before wavlet_OpeningFunction gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to wavlet_OpeningFcn via varargin. % % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % % See also: GUIDE, GUIDATA, GUIHANDLES % Edit the above text to modify the response to help wavlet % Last Modified by GUIDE v2.5 21-Jun-2004 11:13:32 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @wavlet_OpeningFcn, ... 'gui_OutputFcn', @wavlet_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin & isstr(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT % --- Executes just before wavlet is made visible. function wavlet_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to wavlet (see VARARGIN) % Choose default command line output for wavlet handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes wavlet wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = wavlet_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output; % --- Executes during object creation, after setting all properties. function edit1_CreateFcn(hObject, eventdata, handles) % hObject handle to edit1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function edit1_Callback(hObject, eventdata, handles) % hObject handle to edit1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global pp; pp=str2double(get(hObject,'String')); % Hints: get(hObject,'String') returns contents of edit1 as text % str2double(get(hObject,'String')) returns contents of edit1 as a double % --- Executes on button press in pushbutton1. function pushbutton1_Callback(hObject, eventdata, handles) % hObject handle to pushbutton1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global pp; global psnr_noise_remove; load psnr_noise_remove; global psnr; load psnr; %读入原始图像并显示 i=imread('lena.bmp'); subplot(2,2,1); imshow(i); title('原始图像'); axis square; %生成含噪图像并显示 j=imnoise(i,'gaussian',0,pp); subplot(2,2,2); imshow(j); title('含噪图像'); axis square; %用sym4小波函数对j进行2层分解 [c,l]=wavedec2(j,2,'sym4'); %实现低通滤波消噪 a1=uint8(wrcoef2('a',c,l,'sym4',2)); %用coif2小波函数对j进行2层分解 [gc,gl]=wavedec2(a1,2,'coif2'); n=[1,2];%设置尺度向量 p=[10.28,24.08];%设置阈值向量 %对三个高频系数进行阈值处理 nc=wthcoef2('h',gc,gl,n,p,'s'); nc=wthcoef2('v',gc,gl,n,p,'s'); nc=wthcoef2('d',gc,gl,n,p,'s'); mc=wthcoef2('h',gc,gl,n,p,'s'); mc=wthcoef2('v',gc,gl,n,p,'s'); mc=wthcoef2('d',gc,gl,n,p,'s'); %对更新后的小波分解结构进行阈值处理 x2=waverec2(mc,gl,'coif2'); %进行中值滤波 for ii=1:252; for jj=1:252; temp=0; for m=0:3 for n=0:3 temp=temp+double(x2(ii+m,jj+n)); end end temp=temp/16; x4(ii,jj)=temp; end end for ii=253:256 for jj=253:256 x4(ii,jj)=double(i(ii,jj)); end end %显示去噪图像 subplot(2,2,3); imshow(uint8(x4)); title('消噪图像'); axis square; %计算psnr q=0.0; for x=1:256; for j=1:256; diff=x4(x,j)-double(i(x,j)); q=q+diff*diff; end end psnr_y = q / (256*256); psnr_y = (255 * 255)/psnr_y; set(psnr_noise_remove,'String',psnr_y); for ii=1:10 if psnr(ii)==0 psnr(ii)=psnr_y; break; end end save psnr psnr; % --- Executes during object creation, after setting all properties. function edit2_CreateFcn(hObject, eventdata, handles) % hObject handle to edit2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called global psnr_noise_remove; % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end psnr_noise_remove=hObject; save psnr_noise_remove psnr_noise_remove; function edit2_Callback(hObject, eventdata, handles) % hObject handle to edit2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit2 as text % str2double(get(hObject,'String')) returns contents of edit2 as a double 运行之后一直红色提示 ??? function varargout = wavlet(varargin) | Error: Function definitions are not permitted at the prompt or in scripts. 是什么情况,怎么改

MATLAB GUI handles 无法传递?!!

如下,MATLAB GUI handles 完全无法传递,function pushbutton1 完全得不到已经公共化的 PATH, Out 取值,这说明handles 没有传递出去,但到底是为什么?已略去各种注释和无关紧要的语句,方便大神们阅读,小妹跪求大神指点迷津。在 GUI__OpeningFcn 中定义 Global 也没有作用,不知什么原因?10个C币,望大神们不吝赐教。_ function [varargout,handles] = GUI(varargin) gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @GUI_OpeningFcn, ... 'gui_OutputFcn', @GUI_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end function GUI_OpeningFcn(hObject, eventdata, handles, varargin) handles.output = hObject; guidata(hObject, handles) handles = guidata(hObject); handles.PATH=handles.edit1.String; handles.Out_Address=handles.edit2.String; function varargout = GUI_OutputFcn(hObject, eventdata, handles) varargout{1} = handles.output; handles.PATH=handles.edit1.String; handles.Out_Address=handles.edit2.String; function edit1_Callback(hObject, eventdata, handles) function edit1_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function edit2_Callback(hObject, eventdata, handles) function edit2_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end handles function pushbutton1_CreateFcn(hObject, eventdata, handles) function pushbutton1_ButtonDownFcn(hObject, eventdata, handles) function pushbutton1_Callback(hObject, eventdata, handles) PATH=handles.PATH Out_Address=handles.Out_Address

jquery focus()方法失效

``` $(".chatbox .sendemoji").on("emoji", function(event, emoji) { var input = $(".chatbox .inputbox"); input.val(input.val() + emoji); input.focus(); }); ``` ``` $(".face_panel").click(function(event){ var _$this=$(event.target); if(_$this.is("span") && _$this.attr("code")){ var name = "face_panel"; var panel = $("." + name); var mask = $("." + name + "-mask"); if (name === "face_panel") { if(IsPC()){ //panel.css({left: 1, top: top,width:300}).show(); }else { var face_top=$(".opbar.noselection").offset().top+$(".face_panel").outerHeight(); $(".opbar.noselection").css({top:face_top}); mask.hide(); } } $(".chatbox .sendemoji").trigger("emoji",(_$this.attr("data-emoji").split("-")[4])); $(".face_panel").hide(); $(".face_panel").click().clean(); } }); ``` 打印文本什么都正常,说明语法并没有错,可是focus就是没用,并且我emoji表情也放不进去,还有浏览器都显示undefined方法--clean();

自制的简易Matlab GUI串口通信助手存在问题,edit无法实时显示接受的信息!

# 1.我仿照罗飞华老师的串口通信助手自己做了个简易的串口通信助手,作为单片机的上位机来用,可是显示界面的edit控件只能显示三行字符串,其他的无法实时显示。我一直以为我模仿的有问题,可奇怪的是,我用罗老师的串口助手也只能显示这三行。以下是我用stc官方的串口通信助手的演示: 先输入半径10 ![图片说明](https://img-ask.csdn.net/upload/201805/12/1526092615_809913.png) 再输入目的坐标(6,8,10) ![图片说明](https://img-ask.csdn.net/upload/201805/12/1526092628_458191.png) ![图片说明](https://img-ask.csdn.net/upload/201805/12/1526092641_712375.png) ![图片说明](https://img-ask.csdn.net/upload/201805/12/1526092655_517809.png) ## 可以看出程序可以很好的运行,并实时输出xyz坐标反馈给串口助手。而用matlab gui做的串口助手我实行了简化,将串口直接定成com4,波特率直接定成9600,省去了什么hex模式发送什么周期自动发送啥的,结果如下: ![图片说明](https://img-ask.csdn.net/upload/201805/12/1526092887_650142.png) **实际情况是我的程序可以正常运行,即电机可以正常转动,然而,edit控件界面永远只显示这三行,不会再实时显示后面的(X,Y,Z)坐标的变化值。请问这是为什么?** **而且在运行期间matlab程序还爆出了几个错误:** ![图片说明](https://img-ask.csdn.net/upload/201805/12/1526093045_286451.png) **这个错误是什么意思?求大神告诉我,本人刚开始接触matlab GUI部分 以下是我的matlabgui的代码:** ``` function varargout = jiemian(varargin) gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @jiemian_OpeningFcn, ... 'gui_OutputFcn', @jiemian_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end function jiemian_OpeningFcn(hObject, eventdata, handles, varargin) handles.output = hObject; guidata(hObject, handles); function varargout = jiemian_OutputFcn(hObject, eventdata, handles) varargout{1} = handles.output; %打开串口按钮 function start_serial_Callback(hObject, eventdata, handles) global scom if get(hObject,'value') scom=serial('com4'); set(scom,'BaudRate',9600,'Parity','none','DataBits',... 8,'StopBits',1,'BytesAvailableFcnCount',100,... 'BytesAvailableFcnMode','byte','BytesAvailableFcn',{@bytes,handles},... 'TimerPeriod',0.01,'timerfcn',{@bytes,handles}) try fopen(scom); catch msgbox('串口不可获得!'); set(hObject, 'value', 0); %弹起本按钮 return end set(handles.xianshi, 'string', ''); %清空接收显示区 set(hObject, 'String', '关闭串口'); %设置本按钮文本为“关闭串口” else t=timerfind; try stop(t); delete(t); end scoms=instrfind; stopasync(scom); fclose(scoms); delete(scoms); set(hObject, 'String', '打开串口'); %设置本按钮文本为“打开串口” end %bytes函数 function bytes(obj,eventdata,handles) n=get(obj,'BytesAvailable'); if n a=fread(obj,n,'uchar'); c=char(a'); set(handles.xianshi,'string',[get(handles.xianshi,'string') c]) set(handles.rec,'string',num2str(str2num(get(handles.rec,'string'))+length(c))) end %清空接收区按钮 function qingkong_Callback(hObject, eventdata, handles) set(handles.xianshi,'string','') %清空发送区按钮 function pushbutton1_Callback(hObject, eventdata, handles) set(handles.sends,'string','') % 发送按钮 function manual_send_Callback(hObject, eventdata, handles) global scom str=get(handles.sends,'string'); val=double(str); set(handles.trans,'string',num2str(str2num(get(handles.trans,'string'))+length(str2num(str)))) if ~isempty(val) try str=get(scom,'TransferStatus'); catch return end while 1 if ~(strcmp(str, 'write')||strcmp(str,'read&write')) fwrite(scom,val,'uint8','async'); break end end end %发送区文本显示回调函数 function sends_Callback(hObject, eventdata, handles) function sends_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end %接收区文本显示回调函数 function xianshi_Callback(hObject, eventdata, handles) function xianshi_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end %清空计数按钮 function pushbutton2_Callback(hObject, eventdata, handles) set([handles.rec,handles.trans],'string','0') ``` ## 附带用罗老师的gui串口助手也只能显示这三行,和我的情况一样,这个是edit的问题还是编程的问题? ![图片说明](https://img-ask.csdn.net/upload/201805/12/1526093710_114556.png)

mysql这样的复合查询应该怎么创建索引

select * from (SELECT * FROM 表 where fenlei in(1,2) and ispc=1 order by id desc) T WHERE T.fenlei in(1,2) and T.month>0 group by T.fenlei order by T.month desc LIMIT 0,20 创建了fenlei和ispc的单独索引和联合索引,但是还是扫描全表了。

爬取bilibili破解滑动验证码下载图片遇到问题

如何获取json数据 1、图片异步加载,通过获取异步加载json数据拼接下载地址 2、直接访问request url获取不到字符串 ![图片说明](https://img-ask.csdn.net/upload/201905/08/1557290545_819616.jpg) 3、我的代码: ``` import urllib import urllib.request import requests url='https://api.geetest.com/get.php?' headers = { 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36' } data = { 'is_next': 'true', 'type': 'slide3', 'gt': 'b6cc0fc51ec7995d8fd3c637af690de3', 'challenge': 'b59c314d1cff16af80de0f0a904c614f', 'lang': 'zh-cn', 'https': 'false', 'protocol': 'https://', 'offline': 'false', 'product': 'embed', 'api_server': 'api.geetest.com', 'isPC': 'true', 'area': '#geetest-wrap', 'width': '100%', 'callback': 'geetest_1557281366134' } # 编码 key_words = urllib.parse.urlencode(data) urls = url+key_words # a =requests.get(url = urls,headers=headers).text a =urllib.request.Request(url = urls,headers=headers,data=data) b = urllib.request.urlopen(a).read() print(b) ```

Socket编程初级问题,关于消息发送

本人刚接触java以及socket编程,入门级水平。 现已知客户端跟服务端java代码如下: //服务端 import java.net.*; // for Socket, ServerSocket, and InetAddress import java.io.*; // for IOException and Input/OutputStream public class TCP_Server { private static final int BUFSIZE = 32; // Size of receive buffer public static void main(String[] args) throws IOException { if (args.length != 1) // Test for correct # of args throw new IllegalArgumentException("Parameter(s): <Port>"); int servPort = Integer.parseInt(args[0]); // Create a server socket to accept client connection requests ServerSocket servSock = new ServerSocket(servPort); int recvMsgSize; // Size of received message byte[] byteBuffer = new byte[BUFSIZE]; // Receive buffer for (;;) { // Run forever, accepting and servicing connections Socket clntSock = servSock.accept(); // Get client connection System.out.println("Handling client at " + clntSock.getInetAddress().getHostAddress() + " on port " + clntSock.getPort()); InputStream in = clntSock.getInputStream(); OutputStream out = clntSock.getOutputStream(); // Receive until client closes connection, indicated by -1 return while ((recvMsgSize = in.read(byteBuffer)) != -1) /* (添加代码,企图改变字符串顺序) */ out.write(byteBuffer, 0, recvMsgSize); clntSock.close(); // Close the socket. We are done with this client! } /* NOT REACHED */ } } ``` ``` //客户端 import java.net.*; // for Socket import java.io.*; // for IOException and Input/OutputStream public class TCPEchoClient { public static void main(String[] args) throws IOException { if ((args.length < 2) || (args.length > 3)) // Test for correct # of args throw new IllegalArgumentException("Parameter(s): <Server> <Word> [<Port>]"); String server = args[0]; // Server name or IP address // Convert input String to bytes using the default character encoding byte[] byteBuffer = args[1].getBytes(); int servPort = (args.length == 3) ? Integer.parseInt(args[2]) : 7; // Create socket that is connected to server on specified port Socket socket = new Socket(server, servPort); System.out.println("Connected to server...sending echo string"); InputStream in = socket.getInputStream(); OutputStream out = socket.getOutputStream(); out.write(byteBuffer); // Send the encoded string to the server // Receive the same string back from the server int totalBytesRcvd = 0; // Total bytes received so far int bytesRcvd; // Bytes received in last read while (totalBytesRcvd < byteBuffer.length) { if ((bytesRcvd = in.read(byteBuffer, totalBytesRcvd, byteBuffer.length - totalBytesRcvd)) == -1) throw new SocketException("Connection close prematurely"); totalBytesRcvd += bytesRcvd; } System.out.println("Received: " + new String(byteBuffer)); socket.close(); // Close the socket and its streams } } ``` ``` 一般情况下,是开两个终端分别运行服务端与客户端, 先执行服务端,显示如下: g136@ispc29Lx:~$ java TCP_Server 50000 再执行客户端,依次输入IP 字符串 port号,显示如下 g136@ispc29Lx:~$ java TCPEchoClient 150.86.64.169 ab 50000 然后客户端跟服务端都会产生反应,如下: g136@ispc29Lx:~$ java TCP_Server 50000 Handling client at 150.86.64.169 on port 58002 g136@ispc29Lx:~$ java TCPEchoClient 150.86.64.169 ab 50000 Connected to server...sending echo string Received: ab 输入的是ab,服务端原封不动的返回的也是ab,我希望能在服务端添加一段代码,使返回的字符顺序改变成ba;或者把ab变成大写,怎么都行,只是希望能对原字符串进行改变。 第一次提问题,还请多多包涵。

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

你以为这样写Java代码很6,但我看不懂

为了提高 Java 编程的技艺,我最近在 GitHub 上学习一些高手编写的代码。下面这一行代码(出自大牛之手)据说可以征服你的朋友,让他们觉得你写的代码很 6,来欣赏一下吧。 IntStream.range(1, 5).boxed().map(i -&gt; { System.out.print("Happy Birthday "); if (i == 3) return "dear NAME"...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

程序员写出这样的代码,能不挨骂吗?

当你换槽填坑时,面对一个新的环境。能够快速熟练,上手实现业务需求是关键。但是,哪些因素会影响你快速上手呢?是原有代码写的不够好?还是注释写的不够好?昨夜...

带了6个月的徒弟当了面试官,而身为高级工程师的我天天修Bug......

即将毕业的应届毕业生一枚,现在只拿到了两家offer,但最近听到一些消息,其中一个offer,我这个组据说客户很少,很有可能整组被裁掉。 想问大家: 如果我刚入职这个组就被裁了怎么办呢? 大家都是什么时候知道自己要被裁了的? 面试软技能指导: BQ/Project/Resume 试听内容: 除了刷题,还有哪些技能是拿到offer不可或缺的要素 如何提升面试软实力:简历, 行为面试,沟通能...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

Python爬虫,高清美图我全都要(彼岸桌面壁纸)

爬取彼岸桌面网站较为简单,用到了requests、lxml、Beautiful Soup4

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

程序员是做全栈工程师好?还是专注一个领域好?

昨天,有位大一的同学私信我,说他要做全栈工程师。 我一听,这不害了孩子么,必须制止啊。 谁知,讲到最后,更确定了他做全栈程序员的梦想。 但凡做全栈工程师的,要么很惨,要么很牛! 但凡很牛的,绝不是一开始就是做全栈的! 全栈工程师听起来好听,但绝没有你想象的那么简单。 今天听我来给你唠,记得帮我点赞哦。 一、全栈工程师的职责 如果你学习编程的目的只是玩玩,那随意,想怎么学怎么学。...

不要再到处使用 === 了

我们知道现在的开发人员都使用 === 来代替 ==,为什么呢?我在网上看到的大多数教程都认为,要预测 JavaScript 强制转换是如何工作这太复杂了,因此建议总是使用===。这些都...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

MySQL性能优化(五):为什么查询速度这么慢

前期回顾: MySQL性能优化(一):MySQL架构与核心问题 MySQL性能优化(二):选择优化的数据类型 MySQL性能优化(三):深入理解索引的这点事 MySQL性能优化(四):如何高效正确的使用索引 前面章节我们介绍了如何选择优化的数据类型、如何高效的使用索引,这些对于高性能的MySQL来说是必不可少的。但这些还完全不够,还需要合理的设计查询。如果查询写的很糟糕,即使表结构再合理、索引再...

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

代码注释如此沙雕,会玩还是你们程序员!

某站后端代码被“开源”,同时刷遍全网的,还有代码里的那些神注释。 我们这才知道,原来程序员个个都是段子手;这么多年来,我们也走过了他们的无数套路… 首先,产品经理,是永远永远吐槽不完的!网友的评论也非常扎心,说看这些代码就像在阅读程序员的日记,每一页都写满了对产品经理的恨。 然后,也要发出直击灵魂的质问:你是尊贵的付费大会员吗? 这不禁让人想起之前某音乐app的穷逼Vip,果然,穷逼在哪里都是...

前端还能这么玩?(女朋友生日,用前端写了一个好玩的送给了她,高兴坏了)

前端还能这么玩?(女朋友生日,用前端写了一个好玩的送给了她,高兴坏了)

爬虫(101)爬点重口味的

小弟最近在学校无聊的很哪,浏览网页突然看到一张图片,都快流鼻血。。。然后小弟冥思苦想,得干一点有趣的事情python 爬虫库安装https://s.taobao.com/api?_ks...

立即提问
相关内容推荐