ios 在打包的时候错误,是在导入百度ssp广告之后出错的,能运行,但是打包就出错了

图片说明

2个回答

1、首先排查是否有名字重复的文件;

2、检查是否在#import头文件的时候,不小心把.h写成了.m

3、检查库文件,加全了没有

4、检查baidu.a的文件路径

qq_29574501
Xing_1102 你好,我发现我把build setting里面的 vaild architectures 中的arm64给删除了,就可以打包了,不过这样的话,模拟器运行就会报红,请问是什么原因啊
接近 4 年之前 回复

可以查看一下那个BaiduMobAdVideoLogObj.o文件是不是分模拟和真机的

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
iOS 能不能在起始页上面加广告啊?
我现在做的一个项目,不过是先加载了起始页,起始页消失才加载广告。 能不能在起始页上面加广告? 可不可以获取起始页,在往上面添加广告? 接的是百度ssp
ffmpeg解码部分视频失败
我有一些视频,能够用播放器播放,但是用ffmpeg-3.4解不出来。 准确的说是用我自己编的ffmpeg库解不出来,用公司同样ffmpeg-3.4就能解出来。 但是我的编译应该没有大问题,因为大部分视频我都能够顺利解码的 视频解码错误时报: ``` [mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] STSC entry 1 is invalid (first=12 count=0 id=1) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] stream 0, contradictionary STSC and STCO [mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] error reading header ``` 正常解码出来的信息是: ``` Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fail.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isom creation_time : 2019-08-06T16:42:23.000000Z Duration: 00:00:10.89, start: 0.000000, bitrate: N/A Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 2815 kb/s, 25.66 fps, 25.64 tbr, 1k tbn, 51.31 tbc (default) Metadata: creation_time : 2019-08-06T16:42:24.000000Z handler_name : encoder : VC Coding ``` 我的编译选项: ``` ./configure --prefix=./ --bindir=bin/ffmpeg --incdir=include/ffmpeg --libdir=lib64/ffmpeg --disable-x86asm --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro' --enable-libx264 --enable-libx265 --enable-avfilter --enable-pthreads --enable-shared --enable-gpl --disable-debug --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda-8.0/include --extra-ldflags=-L/usr/local/cuda-8.0/lib64 ``` 怀疑是我编译的时候有什么选项没有开,或者有人告诉我这个视频有什么特殊的地方需要我加特殊的编解码器吗?
关于project server 2007配置 的过程中出现的 错误
在一台环境为server 2003 的服务器上安装了这个软件,配置的过程中出现了下面的错误,希望大家能帮我看看是什么原因导致的,感激不尽![图片说明](https://img-ask.csdn.net/upload/201509/14/1442196831_790447.jpg) 这是错误报告![图片说明](https://img-ask.csdn.net/upload/201509/14/1442196856_44451.jpg) 这是在新建SSP的时候出现的错误 感激不尽
Final Combat
Problem Description You’re playing an RPG, which is arguably the best Chinese RPG in 2007. You got to the final combat. You want to win as soon as possible. Do you know what I am talking about? For competitors who're not familiar with the game: we're giving a brief introduction to the combat system and the characters involved in that last combat very soon. For competitors who're too familiar with the game: we're simplifying and/or changing the rules and facts for this problem. We apologize if you feel unhappy about that. Fig. The final combat The screenshot above gives you some idea about the combat system and the characters, which can be summarized as follows: You have 4 heroes: Yun Tianhe (YTH), Han Lingsha (HLS), Liu Mengli (LML) and Murong Ziying (MRZY). Before the combat begins, you need to choose exactly three heroes and rearrange them in some order. Let's call the 1st, 2nd and 3rd hero H1, H2 and H3, respectively. In this screenshot above, H1 is YTH, H2 is HLS and H3 is LML. (Sorry for the Ziying fans!) There are two bosses: Xuan Xiao (XX) and Su Yao (SY), both in the back of the screenshot. The goal of this combat is to defeat SY. In this problem, you can assume that XX is immortal, although it's possible to defeat him in the real game. The key to this problem is to understand the "semi" round-based combat system. See the "progress bar" on the top of the screen? Each hero has a very small progress ball (in light-blue) on the bar, with an icon above the ball. Similarly, each boss also has a ball (in red), but the icon is below the ball. When the combat begins, all the progress balls start moving from the left corner of the bar. When a ball reaches the right corner, the corresponding character is able to act. If more than one character can act, they make actions one by one, according to this precedence order: YTH, HLS, LML, MRZY, XX, SY. When a character is acting, all progress balls stopped moving. After a character finished an action, his/her progress ball is reset to the left corner of the progress bar. When nobody is acting, all progress balls go right simultaneously (but possibly with different speeds, see below). In this problem, each character has 4 main properties: Jing, Qi, Shen, Su. Jing means "health". When a character's Jing reaches zero or negative, he/she is defeated. A character's maximum Jing is denoted by parameter maxjing. Qi means "vitality". It is used by special-skill attacks. When Qi is not enough, certain special-skill attacks cannot be performed. A character's maximum Qi is always 100. Shen means "spirit". It is used by Xian Shu (something similar to, but more amazing than "magic"). When Shen is not enough, certain Xian Shu cannot be performed. A character's maximum Shen is denoted by parameter maxshen. Su means "speed". It affects how quick a character's progress ball moves. Su is always a positive integer less than 5. If a character's Su is x, it takes 5-x units time for his/her progress ball to move from left corner to the right corner of the progress bar. A character's Su (which is never changed during the combat) is denoted by parameter su. For simplicity, you may assume that both XX and SY use the same strategy: In his/her (4n+1)-th action (n=0,1,2,...), make a weapon attack upon H1. In his/her (4n+2)-th action (n=0,1,2,...), make a weapon attack upon H2. In his/her (4n+3)-th action (n=0,1,2,...), make a weapon attack upon H3. In his/her (4n+4)-th action (n=0,1,2,...), make a special-skill attack upon all the heroes. Now we introduce four more parameters for each hero. The first two, d1x and d2x, are the damages that the hero takes on XX's weapon attack and special-skill attack, respectively. For SY's attacks, we define d1s and d2s similarly. You’re very tired, so you don't want to waste your time designing complex tactics. When a hero is about to act, you only consider the following actions: Make a physical weapon attack upon either XX or SY (cannot attack both). Be warned though, SY is surrounded by swords (see the screenshot), so making weapon attacks upon her would hurt the attacker himself/herself. The amount of "reflection damage" that the attacker takes is the same as the "physical damage" that SY takes. Attacking XX (yes, you can do that, if you like) does not suffer from physical reflection. Use Xian Shu to recover Jing. To make your brain easier, you decided not to recover other heroes' Jing. In this problem, the only Xian Shu that you can use is called "Yu Run", which recovers yurun_jing points of Jing (if the resulting Jing exceeds his/her maximum Jing, it is reduced to the maximum) and uses yurun_shen points of Shen. Use items to recover Shen. To make your brain easier, you decided not to recover other heroes' Shen. In this problem, the only item that you can use is called "Shu Er Guo", which recovers shuerguo_shen points of Shen (if the resulting Shen exceeds his/her maximum Shen, it is reduced to the maximum). You have an infinite number of Shu Er Guo. Make a special-skill attack if his/her Qi is enough. Each hero has exactly one special-skill attack, attacking both XX and SY. Note that some special-skill attacks are physical. Using a physical special-skill attack makes you take the same damage as SY, just like weapon attacks. Now it's time to introduce four more parameters for each hero: wad, ssd, ssq and ssp. The number of Jing points that SY takes by the hero's weapon attacks and special-skill attacks are denoted by wad and ssd, respectively. The special-skill attack is physical if and only if ssp=1 (otherwise, ssp=0). It needs ssq points of Qi. As you may have noticed, Qi cannot be recovered by Xian Shu or items. There are only two ways to increase Qi: make a weapon attack, or get hit by a weapon attack. Being hurt by physical reflection does not earn you extra Qi. So here come the last two parameters for each hero: q1 and q2, that means making a weapon attack increases q1 points of Qi (whether or not you're reflected), while getting hit by a weapon attack increases q2 points of Qi. If the resulting Qi exceeds his/her maximum Qi (which is always 100), it is reduced to the maximum. Again, performing a special-skill attack never increases your Qi. Getting hurt by the bosses' special-skill attacks never increases your Qi, either. As a perfectionist, you don't want any hero to be defeated even temporarily (in the real game you can rebirth a hero with certain Xian Shu or items) - for example, it's not allowed to make YTH and SY defeated at the same time (it can happen, for example, after YTH has performed a powerful physical special-skill attack). Finally comes the question: what is the earliest time (we only care about ball-moving time, not including time needed to make attacks) that you can win the combat, if you play optimally? To play optimally, you need to choose between the options listed above, for each act. It's not as easy as it sounds. Be careful! Input There will be at most 100 test cases. Each case begins with 6 positive integers, SY_jing (SY's initial Jing), XX_su (XX's Su), SY_su (SY's Su), yurun_jing, yurun_shen and shuerguo_shen. The next four lines contain descriptions of YTH, HLS, LML and MRZY, in this order. Each line contains 16 non-negative integers: maxjing, maxshen, su, d1x, d2x, d1s, d2s, wad, ssd, ssq, ssp, q1, q2, jing, qi, shen. The last three parameters are the initial Jing, Qi and Shen values of this hero before the combat begins. The limits of most parameters are listed below: And finally, 1 <= jing <= maxjing, 0 <= qi <= 100, 0 <= shen <= maxshen. The last test case is followed by 6 zeros, which should not be processed. Output For each test case, print the earliest time that you can win, and all possible orderings to achieve this. Each ordering is expressed as the concatenation of the first letters of H1, H2 and H3's names. For example, if H1=HLS, H2=LML, H3=YTH, the ordering is expressed as HLY. The orderings should be sorted in increasing order lexicographically. If you can't win the combat within 12 units of ball-moving time, print -1. Print a blank line after the output of each test case. Sample Input 1000 1 1 200 15 75 1000 100 1 2000 2000 2000 2000 300 800 20 0 5 5 900 10 100 1000 100 1 2000 2000 2000 2000 120 300 10 0 5 5 100 80 100 1000 100 1 2000 2000 2000 2000 100 400 30 1 5 5 450 40 100 1000 100 1 2000 2000 2000 2000 250 700 10 1 5 5 600 50 100 3000 4 1 800 15 75 2000 100 3 2 2 2 2 1 1 1 0 2 1 1000 100 100 2000 100 4 2 2 2 2 1 1000 25 0 2 1 1 1 100 2000 100 1 2 2 2 2 1 1000 1 1 1 1 300 100 0 2000 100 3 2 2 2 2 1 1000 30 0 5 1 1 6 100 26399 3 2 3182 543 800 4462 353 2 4300 4875 6856 5527 31497 5633 61 0 68 63 4355 0 351 5444 300 3 7682 1037 597 4214 6744 6861 68 0 65 12 2136 32 143 5875 705 2 2097 118 2366 978 14276 24850 48 0 55 70 3562 40 277 6413 33 1 6305 1898 340 5238 13989 25287 25 1 72 34 3176 4 30 0 0 0 0 0 0 Sample Output Case 1: 4 HLY HYL LHY LYH YHL YLH Case 2: 12 HML Case 3: -1
winform 怎么解决chartcontrol控件数据更新过快导致的索引超范围的问题
本来是想用Dev的chart控件写一个实时显示数据的示波器,用的是串口通信接口,波特率是14400,在下位机端是每一毫秒发送一次数据现在实现了每次接收到串口数据,产生事件后,将数据用图表的形式显示出来,但是执行一段时间后,在main函数处就会报错![图片说明](https://img-ask.csdn.net/upload/201904/11/1554985970_794033.png) 尝试过在串口接收数据时,控件更新时收异常,但是最后报错都是如上图所示,开始以为的是dev的控件本身可能有bug,所以重新换用.netbar中realtime chart控件还是会出现相同的问题,而且抛出的异常和运行的时间没有必然的关系,有时候是接收了一小段时间就抛出异常,有时候是接收了较长一段时间后才会抛出这个是串口事件的代码 ``` private void ssp_DataReceived(object sender, SerialDataReceivedEventArgs e) { if (closing) return; try { Listening = true; byte[] buf = new byte[ssp.BytesToRead]; ssp.Read(buf, 0, buf.Length); ssp.DiscardInBuffer(); ssp.DiscardOutBuffer(); for (int i = 0; i < buf.Length; i++) { ChartRefresh(0, Convert.ToDouble(buf[i])); ChartRefresh(1, 200.0); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } finally { Listening = false;//我用完了,ui可以关闭串口了。               } } ``` ChartRefresh刷新控件是后来改的是.netbar中实例的源码 然后,我把代码改成接收到串口数据的事件后,不对串口数据进行处理(只清了缓存,不读也不写),图表随意更新10次,100次,1000次数据,结果是更加容易出现异常,所以首先感觉是数据更新太快导致了控件刷新不过来 还请大佬们看看这个怎么破,怎么看到底是哪出了问题.....
手机蓝牙4.0和蓝牙2.0模块能通信,这是怎么连接的
买个蓝牙模块,本以为手机是蓝牙4.0的 应该不能通信,但我装了蓝牙通信助手, 发现可以通信,但我写的蓝牙APP却不能链接,只能显示能搜索到,不能配对, 我是程序的问题吗?而且蓝牙串口助手用的是SSP协议,能够和模块通信, 那我们现在的蓝牙4.0用的是什么协议。怎么样才能和蓝牙模块建立通信?求大神指点
mplab环境 长的C语言程序怎么调试?
mplab IDE v8.8版本 #include<pic.h> main() { } 可运行成功BUILD SUCCEEDED 但是 再建立新的工程 运行一个1199行的C程序时候就失败了 出现以下提示 Clean: Deleting intermediary and output files. Clean: Deleted file "D:\ssp01\ssp01.cce". Clean: Deleted file "D:\ssp01\002.mcs". Clean: Done. Executing: "C:\HT-PIC\BIN\PICC.EXE" -C -E"ssp01.cce" "ssp01.c" -O"ssp01.obj" -I"C:\HT-PIC\include" -Zg9 -O -ASMLIST -Q -MPLAB -16F688 Halting build on first failure as requested. BUILD FAILED: Fri Sep 19 16:12:35 2014 纯菜鸟 看不懂 请高手指导这种长程序要怎么调试??小女子感激不尽!!!
求一个用jquery ajax是实现的局部刷新思路
这个是例子http://hqdt.snnu.edu.cn/Ssp/site/index其中点击全部,投诉,申诉下面局部刷新,刷新的那部分内容从后台获取的
自己写的系统服务程序停止问题
创建系统服务程序时,dwControlsAccepted设置如下: ServiceStatus.dwControlsAccepted = SERVICE_ACCEPT_SHUTDOWN; 不接受SERVICE_ACCEPT_STOP命令, 即:ControlService( schService, SERVICE_CONTROL_STOP, (LPSERVICE_STATUS) &ssp )不起作用的情况下程序如何停止服务。
Jtable不放在Scrollpanel里怎么显示出来
Object[] stob = null; try { stob=ssp.getStudentList(); } catch (RemoteException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } tm = new TableModel(new String[]{"姓名","年龄","学号","班级"}); tm.addRow(stob); table2 = new JTable(tm.getTableModel()); //scrollPane1.setViewportView(table2); 这是我的Jtable的代码,基础代码由JFD生成了,放在scrollpanel里面就能显示,但是不能触发点击事件,所以我不想用,想做成分页的,同时也可以避免数据过多直接爆炸,但不用呢又莫名其妙不显示内容了,求大神解决一下
uri字符串不能在android中缓存
我使用的下面的代码 String fileName = "image" + "_" + title.getText().toString()+"_" + val.toString(); photo = this.createFile(fileName, ".jpg"); intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo)); uriOfPhoto = Uri.fromFile(photo); startActivityForResult(intent, RESULT_CAMERA_SELECT); } } catch(Exception e) { Log.v("Error", "Can't create file to take picture!"); displayAlert("Can't create file to take picture!","SDCard Error!"); } } private File createFile(String part, String ext) throws Exception { File tempDir = new File (Environment.getExternalStorageDirectory() + "/MyFolder/Images"); if(!tempDir.exists()) { tempDir.mkdir(); } tempDir.canWrite(); return new File(tempDir, part+ext); } }); UriOfPhoto 给出提示uriString not chached in debug。它不是存储文件中的uri。如何解决这个问题呢? authority Uri$Part$EmptyPart (id=830004244032) fragment Uri$Part$EmptyPart (id=830004245408) host "NOT CACHED" (id=830003914304) path Uri$PathPart (id=830067926736) port -2 query Uri$Part$EmptyPart (id=830004245408) scheme "file" (id=830002660688) ssp null uriString "NOT CACHED" (id=830003914304) userInfo null
python爬虫时为什么网页源码经过xpth处理后无法解析了呢
## 在爬取一个小说网站的时候我发现在网页的response中可以看到相关的值,但是在获取的时候就出现了问题 ### 具体问题是这样的, - 爬取的网站链接为:https://www.qiushuzw.com/t/38890/10253657.html ``` from lxml import etree import requests class Xiaoshuospider: def __init__(self): self.start_url = 'https://www.qiushuzw.com/t/38890/10253656.html' self.headers = { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8", "Cache-Control": "max-age=0", "Connection": "keep-alive", "Cookie": "BAIDU_SSP_lcr=https://www.80txt.com/txtml_38890.html; Hm_lvt_c0ce681e8e9cc7e226131131f59a202c=1554447305; Hm_lpvt_c0ce681e8e9cc7e226131131f59a202c=1554447305; UM_distinctid=169ec4788554ea-0eba8d0589d979-1a201708-15f900-169ec4788562c1; CNZZDATA1263995655=929605835-1554443240-https%253A%252F%252Fwww.80txt.com%252F%7C1554443240", "Host": "www.qiushuzw.com", "If-Modified-Since": "Thu, 31 Jan 2019 03:00:17 GMT", "If-None-Match": 'W/"5c5264c1 - 3f30"', "Referer": "https://www.80txt.com/txtml_38890.html", "Upgrade-Insecure-Requests": "1", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36", } def parse(self): res = requests.get(self.start_url,headers=self.headers).content.decode() html = etree.HTML(res) content = html.xpath("div[@class='book_content']/text()") print(content) def run(self): self.parse() if __name__ == '__main__': xiaoshuo = Xiaoshuospider() xiaoshuo.run() ``` - 根据xpath规则我将这些信息处理以后无法找到相应小说文本内容,小说的详细信息无法使用xpath提取出来 ## 有没有哪位大佬也遇到相应的问题
PHP Ajax不执行,代码如下
<body> <header class="mui-bar mui-bar-nav"> <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> <h1 class="mui-title">充值</h1> <a class="mui-action-back mui-icon mui-icon-contact mui-pull-right" href="{php echo $this->createMobileUrl('dingdanchaxun')}"></a> </header> <form id='form1' action="{php echo $this->createMobileUrl("pay");}" method="post"> <input type="hidden" name="vid" id="vid"> <input type="hidden" name="money" id="money"> <input type="hidden" name="phone" id="phone"> <input type="hidden" name="type" id="type"> </form> <div class="mui-content"> <div class="ssp_h10"></div> <div class="mui-segmented-control"> <a class="mui-control-item mui-active" href="{php echo $this->createMobileUrl('huafeichongzhi')}">话费充值</a> <a class="mui-control-item" href="{php echo $this->createMobileUrl('liuliangchongzhi')}">流量充值</a> </div> <div class="ssp_h10"></div> <div class="mui-input-row ssp_form_input"> <input type="tel" class="mui-input-clear ssp_input" id="ssp_phone" placeholder="请输入手机号码" maxlength="11"> </div> <div class="ssp_h10"></div> <div class="ssp_tips" id="resText" style="display: block;">请输入手机号码</div> <div class="ssp_h10"></div> <div class="ssp_note" style="display:none;color: red;text-align: center"><label>该区域暂不支持充值</label></div> <div class="ssp_value"> <ul class="ssp_clear" id="PriceList"> <li class="cur" data-realmoney="10.00" val="10" id="mp_10"><em val="10">10</em>元</li> <li val="20" data-realmoney="20.00" id="mp_20"><em val="20">20</em>元</li> <li val="30" data-realmoney="30.00" id="mp_30"><em val="30">30</em>元</li> <li val="50" data-realmoney="50.00" id="mp_50"><em val="50">50</em>元</li> <li val="100" data-realmoney="100.00" id="mp_100"><em val="100">100</em>元</li> <li val="300" data-realmoney="300.00" id="mp_300"><em val="300">300</em>元</li> </ul> </div> <div class="ssp_h10"></div> {if $agent} <div class="ssp_price" style="display: none; font-size: 12px;"><label>原价:</label><em style=" font-size: 12px;" id="naturePrice">¥98-99.80</em>&nbsp;&nbsp;&nbsp;<label>{/if}折后价:</label><em style=" font-size: 12px;" id="mobilePrice">¥98-99.80</em></div> <div class="ssp_h10"></div> <div class="ssp_button"><button type="button" disabled class="mui-btn mui-btn-primary ssp_button_all chongzhi">充值</button></div> <div class="ssp_h10"></div> <div class="ssp_notice" style="background-color: #efeff4"> <h4>充值说明:</h4> <div style=" font-size: 12px;" class="remark"> 详细说明选择相应产品。 </div> </div> </div> </body>
tomcat项目运行一段时间后无法连接sql server2008数据库,重启tomat又好了
具体报错: org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object ### The error may exist in /com/dayainfo/ssp/sqlMapper/sqlMapper-basicDataExpertSearch.xml ### The error may involve .selectBasicDataExpertSearchByKey ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object] with root cause java.util.NoSuchElementException: Timeout waiting for idle object tomcat版本:是tomcat7 sql server版本:sql server 2008 R2 tomcat和sql server不在同一个服务器
android这段代码为什么无限启动相机?应该怎么改?
package nzy.ssp; import java.io.File; import nzy.ssp.net.AuthSina.common.InfoHelper; import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.util.Log; import android.view.Window; import android.view.WindowManager; import android.widget.Toast; //定义一个类,使其实现拍照并保存功能 public class ActivityTakePic extends Activity { // 定义类的成员变量 private int TAKE_PICTURE = 1; private String TAG = "ActivityTakePic"; public static String thisLarge = null; private String theSmall = null; public static Uri photoUri; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //设置全屏 requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); //setContentView(R.layout.main); Toast.makeText(this, "启动拍照功能……", Toast.LENGTH_SHORT).show(); // 手机拍照 opentakePicDialog(); } private boolean checkSdCard() { if (android.os.Environment.getExternalStorageDirectory().equals( android.os.Environment.MEDIA_MOUNTED)) { return true; } else { return false; } } // 拍照 private void opentakePicDialog() { if (!checkSdCard()) { Intent intent = new Intent("android.media.action.IMAGE_CAPTURE"); startActivityForResult(intent, TAKE_PICTURE); } else { Toast.makeText(ActivityTakePic.this, "你手机上不存在存储卡", Toast.LENGTH_LONG).show(); } } /* * 相机拍照回调函数 * * @see android.app.Activity#onActivityResult(int, int, * android.content.Intent) */ @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == TAKE_PICTURE) { if (resultCode == RESULT_OK) { // super.onActivityResult(requestCode, resultCode, data); Log.i(TAG, TAG); Intent intent = new Intent(); String camerName = InfoHelper.getFileName(); Log.i(TAG, "camerName = " + camerName); String fileName = "Share" + camerName + ".jpg"; File camerFile = new File(InfoHelper.getCamerPath(), fileName); theSmall = InfoHelper.getCamerPath() + fileName; thisLarge = getLatestImage(); Log.i(TAG, "theSmall = " + theSmall); Log.i(TAG, "thisLarge = " + thisLarge); photoUri = Uri.fromFile(camerFile); data.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, photoUri); intent.putExtras(data); intent.putExtra("int", 0); intent.setClass(ActivityTakePic.this, ActivityMain.class); startActivity(intent); } } } /** * 获取SD卡中最新图片路径 * * @return */ @SuppressWarnings("unused") protected String getLatestImage() { String latestImage = null; String[] items = { MediaStore.Images.Media._ID, MediaStore.Images.Media.DATA }; Cursor cursor = managedQuery( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, items, null, null, MediaStore.Images.Media._ID + " desc"); if (cursor != null && cursor.getCount() > 0) { cursor.moveToFirst(); for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) { latestImage = cursor.getString(1); break; } } return latestImage; } }
安装淘宝 TFS出现一些异常能帮忙看下吗谢谢
就是最后一个步骤 进入 tfs 目录 [root@locatfs local]# cd tfs/ [root@locatfs local]# chmod +x *.sh [root@locatfs local]# ./build.sh init [root@locatfs local]# ./configure --prefix=/usr/local/tfs --without-tcmalloc 到这里都没问题 接下来 运行 make 的时候就出现问题了 Making all in src make[1]: Entering directory `/root/tfs-2.6.0/src' Making all in common make[2]: Entering directory `/root/tfs-2.6.0/src/common' Making all in mysql_cluster make[3]: Entering directory `/root/tfs-2.6.0/src/common/mysql_cluster' if g++ -DPACKAGE_NAME=\"tfs\" -DPACKAGE_TARNAME=\"tfs\" -DPACKAGE_VERSION=\"2.6.0\" -DPACKAGE_STRING=\"tfs\ 2.6.0\" -DPACKAGE_BUGREPORT=\"duolong@taobao.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tfs\" -DVERSION=\"2.6.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBC=1 -DHAVE_LIBDL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBRT=1 -DHAVE_READLINE_READLINE_H=1 -DHAVE_READLINE_HISTORY_H=1 -DTFS_DS_FALLOCATE=0 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DTIME_WITH_SYS_TIME=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DRETSIGTYPE=void -DHAVE_FDATASYNC=1 -DHAVE_FTRUNCATE=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETPAGESIZE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MUNMAP=1 -DHAVE_RMDIR=1 -DHAVE_SOCKET=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOUL=1 -DHAVE_STRTOULL=1 -DHAVE_TZSET=1 -DHAVE_MYSQL=1 -I. -I. -Wall -I../../../src -I/usr/local/include/tbsys -I/usr/local/include/tbnet -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -g -D__STDC_LIMIT_MACROS -Wall -Werror -Wextra -Wunused-parameter -Wformat -Wconversion -Wdeprecated -MT database_pool.o -MD -MP -MF ".deps/database_pool.Tpo" -c -o database_pool.o database_pool.cpp; \ then mv -f ".deps/database_pool.Tpo" ".deps/database_pool.Po"; else rm -f ".deps/database_pool.Tpo"; exit 1; fi In file included from database_pool.cpp:16: database_pool.h:18:19: error: tbsys.h: No such file or directory database_pool.h:19:19: error: Mutex.h: No such file or directory In file included from database_pool.h:20, from database_pool.cpp:16: ../../../src/common/internal.h:34:19: error: tbnet.h: No such file or directory In file included from database_pool.cpp:20: mysql_database_helper.h:18:19: error: mysql.h: No such file or directory ../../../src/common/internal.h:471: error: ‘tbnet’ has not been declared ../../../src/common/internal.h:471: error: ISO C++ forbids declaration of ‘DataBuffer’ with no type ../../../src/common/internal.h:471: error: expected ‘;’ before ‘data_’ ../../../src/common/internal.h: In member function ‘void tfs::common::TimeStat::start()’: ../../../src/common/internal.h:1211: error: ‘tbsys’ has not been declared ../../../src/common/internal.h: In member function ‘void tfs::common::TimeStat::end()’: ../../../src/common/internal.h:1212: error: ‘tbsys’ has not been declared database_pool.h: At global scope: database_pool.h:51: error: ‘tbutil’ has not been declared database_pool.h:51: error: ISO C++ forbids declaration of ‘Mutex’ with no type database_pool.h:51: error: expected ‘;’ before ‘mutex_’ mysql_database_helper.h:54: error: ISO C++ forbids declaration of ‘MYSQL_STMT’ with no type mysql_database_helper.h:54: error: expected ‘;’ before ‘*’ token mysql_database_helper.h:55: error: ‘MYSQL_BIND’ does not name a type mysql_database_helper.h:65: error: ‘MYSQL’ does not name a type mysql_database_helper.h:71: error: ‘MYSQL_STMT’ has not been declared mysql_database_helper.h:81: error: ‘tbutil’ has not been declared mysql_database_helper.h:81: error: ISO C++ forbids declaration of ‘Mutex’ with no type mysql_database_helper.h:81: error: expected ‘;’ before ‘mutex_’ database_pool.cpp: In destructor ‘tfs::common::DataBasePool::~DataBasePool()’: database_pool.cpp:36: error: ‘ERROR’ was not declared in this scope database_pool.cpp:36: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp: In member function ‘bool tfs::common::DataBasePool::init_pool(int32_t, const char*, const char*, const char*)’: database_pool.cpp:65: error: ‘DEBUG’ was not declared in this scope database_pool.cpp:66: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp: In member function ‘bool tfs::common::DataBasePool::destroy_pool()’: database_pool.cpp:90: error: ‘mysql_thread_end’ was not declared in this scope database_pool.cpp: In member function ‘tfs::common::MysqlDatabaseHelper* tfs::common::DataBasePool::get()’: database_pool.cpp:98: error: ‘ERROR’ was not declared in this scope database_pool.cpp:98: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp:105: error: ‘tbutil’ has not been declared database_pool.cpp:105: error: expected `;' before ‘lock’ database_pool.cpp:123: error: ‘WARN’ was not declared in this scope database_pool.cpp:123: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp: In member function ‘void tfs::common::DataBasePool::release(tfs::common::MysqlDatabaseHelper*)’: database_pool.cpp:132: error: ‘tbutil’ has not been declared database_pool.cpp:132: error: expected `;' before ‘lock’ database_pool.cpp:143: error: ‘ERROR’ was not declared in this scope database_pool.cpp:143: error: ‘TBSYS_LOG’ was not declared in this scope make[3]: *** [database_pool.o] Error 1 make[3]: Leaving directory `/root/tfs-2.6.0/src/common/mysql_cluster' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/tfs-2.6.0/src/common' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/tfs-2.6.0/src' make: *** [all-recursive] Error 1 接下来就都是报错 能帮忙看下吗谢谢
ffmpeg Invalid UE golomb code问题
安装版本ffmpeg-4.1.tar.gz 命令 ffmpeg -re -i http://v.videoincloud.com/gxnnynqfy/20181031/Y8JMQo/Y8JMQo.m3u8 -strict -2 Y8JMQo.m3u8 运行结果 [test@GROUPC ~]$ ffmpeg -re -i http://v.videoincloud.com/gxnnynqfy/20181031/Y8JMQo/Y8JMQo.m3u8 -strict -2 Y8JMQo.m3u8 ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 [http @ 0xd37e40] No trailing CRLF found in HTTP header. Invalid UE golomb code Last message repeated 2 times Input #0, hls,applehttp, from 'http://v.videoincloud.com/gxnnynqfy/20181031/Y8JMQo/Y8JMQo.m3u8': Duration: 00:20:31.21, start: 1.400000, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080, 15 tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 59 kb/s [libx264 @ 0xd76300] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0xd76300] profile High, level 4.0 Output #0, hls, to 'Y8JMQo.m3u8': Metadata: encoder : Lavf56.40.101 Stream #0:0: Video: h264 (libx264), yuv420p, 1920x1080, q=-1--1, 15 fps, 90k tbn, 15 tbc Metadata: encoder : Lavc56.60.100 libx264 Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc56.60.100 aac Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help Invalid UE golomb code Invalid UE golomb code0.0 size=N/A time=00:00:02.00 bitrate=N/A dup=4 drop=0 Last message repeated 1 times Invalid UE golomb code0.0 size=N/A time=00:00:03.04 bitrate=N/A dup=4 drop=0 Last message repeated 1 times Invalid UE golomb code27.0 size=N/A time=00:00:03.74 bitrate=N/A dup=4 drop=0 Last message repeated 1 times Invalid UE golomb code27.0 size=N/A time=00:00:04.74 bitrate=N/A dup=4 drop=0 Last message repeated 1 times
ASP.net <%=token%>显示不出数据
打算用ASP.net <%=token%>输出到一个菜单链接里作为参数,在根目录的页面里能够正常显示,但是在二级目录下的页面就会出问题,也就是说显示不出来,菜单栏都是复制过去的,为什么会出现这种情况? ``` <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonEfficiency.aspx.cs" Inherits="RepairSever.Rank.PersonEfficiency" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>维修服务平台</title> <link href="../rsp/Tbase/base.css" rel="stylesheet" type="text/css" /> <link href="../rsp/Tbase/top.css" rel="stylesheet" type="text/css" /> <link href="../rsp/Template/Default/style.css" rel="stylesheet" type="text/css" /> <link href="../rsp/js/jNotify/jNotify.jquery.css" rel="stylesheet" type="text/css" /> <script src="../rsp/js/jquery-1.11.0.min.js" type="text/javascript"></script> <script src="../rsp/js/jquery.hoverdelay.js" type="text/javascript"></script> <script src="../rsp/js/jNotify/jNotify.jquery.js" type="text/javascript"></script> <script src="../rsp/js/layer/layer.min.js" type="text/javascript"></script> <script src="../rsp/js/base.js" type="text/javascript"></script> </head> <body> <form id="form1" runat="server"> <div> <!--top--> <div class="top"> <div class="layout-top"> <div class="layout-top-warp"> <ul class="layout-top-title"> <li class="top-app-title">高校后勤数字化平台</li> <li class="top-line-app"></li> <li class="top-app">维修服务<em class="top-arr"></em> <div class="top-app-menu" style="display: none;"> <ul> <li><a href="pc">个人中心</a></li> <li><a href="dsh">服务大厅</a></li> <li><a href="ssp">服务监督</a></li> <li><a href="pc/home/appnav/3" title="更多" style="font-weight: bold;">…</a></li> </ul> </div> </li> </ul> <ul class="layout-top-login"> <li class="top-line"></li> <li class="top-login" data-value="登录">登录</li> <li class="top-line"></li> </ul> </div> </div> </div> <!--endtop--> <!--logo--> <div class="layout-logo"> <div class="layout-logo-warp"> <img class="logo" src="../rsp/logo.png" /> <div class="logo2"></div> <div class="top-img"></div> <a class="btn logo-iwant" data-value="" href="rsp/my/wantrepair"> <em></em>我要报修</a> </div> <!--end logo--> <!--nav--> <div class="layout-nav"> <div class="layout-nav-warp"> <ul> <li id="nav-index"><a class="nav-a" href="../Default.aspx?token=<% =token%>">平台首页</a></li> <li id="nav-DataCx"><a class="nav-a" href="../sjcx.aspx?token=<% =token%>">数据查询</a></li> <li id="nav-DataJk"><a class="nav-a" href="../sjhz.aspx?token=<% =token%>">数据汇总</a></li> <li id="nav-DataJk"><a class="nav-a" href="../sjfx.aspx?token=<% =token%>">数据分析</a></li> <li id="nav-pm" class="nav-menu"><a class="nav-a">维修排名</a><em class="nav-arr"></em> <ul class="top-nav-menu" style="display: none;"> <li><a href="TeamEfficiency.aspx?token=<% =token%>">单位效率排名</a></li> <li><a href="PersonEfficiency.aspx?token=<% =token%>">个人效率排名</a></li> <li><a href="TeamSatisfaction.aspx?token=<% =token%>">单位满意度排名</a></li> <li><a href="PersonSatisfaction.aspx?token=<% =token%>">个人满意度排名</a></li> </ul> </li> <li id="nav-tj" class=" nav-menu"><a class="nav-a">维修统计</a><em class="nav-arr"></em> <ul class="top-nav-menu" style="display: none;"> <li><a href="../count/TeamWork.aspx?token=<% =token%>">单位工作量统计</a></li> <li><a href="../count/PersonWork.aspx?token=<% =token%>">个人工作量统计</a></li> <li><a href="../count/BuildingWork.aspx?token=<% =token%>">楼宇维修量统计</a></li> <li><a href="../count/RepairItem.aspx?token=<% =token%>">维修项目统计</a></li> </ul> </li> <li id="nav-wxdw"><a class="nav-a" href="#">维修队伍</a> </li> <li id="nav-fwzn" class=" nav-menu"><a class="nav-a">服务指南</a><em class="nav-arr"></em> <ul class="top-nav-menu" style="display: none;"> <li><a id="index-fw-常见问题解答" href="#" >常见问题解答</a></li> <li><a id="index-fw-维修范围划分" href="#" >维修范围划分</a></li> <li><a id="index-fw-不属后勤维修范围" href="#" >不属后勤维修范围</a></li> </ul> </li> </ul> <div class="layout-nav-search" id="layout-nav-search"> <form method="get" action="rsp/site/DataCx" id="search-form" onkeydown="if(event.keyCode==13){return false;}"> <input placeholder="输入报修内容进行检索" id="nav-search-input" name="search" /> <b></b> </form> </div> <script language="javascript" type="text/javascript"> $(document).ready(function () { $("#layout-nav-search b").click(function () { indexSearch(); }); $("#nav-search-input").keydown(function (event) { var keycode = (event.keyCode ? event.keyCode : event.which); if (keycode == 13) { indexSearch(); } }); }); function indexSearch() { if ($("#nav-search-input").val().length == 0) { return false; } $("#search-form").submit(); } </script> </div> </div> <!--end nav--> </div> <!--实时数据监控--> <!--实时数据监控--> <div class="layout-center"> <div class="box" style="min-height: 500px;"> <div class="box-title"> <span><b class="icon2"></b>个人维修效率排名</span> <ul class="box-nav-s"> <li class="yj3 " data-value="month">本月</li> <li class="yj3 on" data-value="year">本年</li> </ul> </div> <ul class="datalist datalist-head grxl"> <li class="xh">序号</li> <li class="Name">姓名</li> <li class="wxcs">维修次数</li> <li class="wxsj">平均用时(分)</li> </ul> <div id="personlist"> </div> <script type="text/javascript"> $(document).ready(function () { $(".datalist-item:odd").addClass("even_row"); }); </script> <div style="clear: both;"> </div> </div> <div style="clear: both;"> </div> </div> <!--footer--> <div class="layout-footer"> <div class="layout-footer-warp"> </div> <div class="layout-footer-bottom"> <div class="layout-footer-bottom-warp"> RSP2.0 -Repair service platform 版本号:2.01 版本时间:2014.5 </div> </div> </div> <!--footer end--> <div id="messge-box" class="messge-box yj5">提示信息</div> <div class="jump-top-box" style="right: 5px; visibility: visible; top: 606px;" id="gotoTop"> <div class="jump-top"> <a target="_self" href="#">返回顶部</a> </div> </div> </div> </form> </body> </html> <script language="javascript" type="text/javascript"> $(function () { $("#personlist").addClass("loading"); LoadData("year"); //加载数据 $(".box-nav-s li").click(function () { $(this).siblings().removeClass('on').end().addClass('on'); LoadData($(this).attr("data-value")); //加载数据 }); }); //加载 function LoadData(sdate) { $("#personlist").html(""); $("#personlist").addClass("loading"); var strurl = '../rsp/DataSolve/personlist.aspx' + "?token=<%=token%>"; strurl += '&dateType=' + sdate; $("#personlist").load(strurl, function (data) { $("#personlist").removeClass("loading"); }); } var loginuser = "0"; loginuser = "0"; $(document).ready(function () { $(".top-login,.top-exit").click(function () { switch ($(this).attr("data-value")) { case "登录": $.layer({ type: 2, title: false, shadeClose: true, area: ['660px', '360px'], offset: ['130px', ''], iframe: { src: 'pc/account/login/win?ReturnUrl=' + location.href } }); break; case "退出": layer.confirm('确定要退出吗?', function () { location.href = 'rsp/site/logout'; }); break; } }); //导航样式选择 $("#nav-pm").addClass("nav-on"); }); /*返回顶部*/ function gotoTop(min_height) { //预定义返回顶部的html代码,它的css样式默认为不显示 var gotoTop_html = '<div id="gotoTop">返回顶部</div>'; //将返回顶部的html代码插入页面上id为page的元素的末尾 $("#page").append(gotoTop_html); $("#gotoTop").click(//定义返回顶部点击向上滚动的动画 function () { $('html,body').animate({ scrollTop: 0 }, 700); }).hover(//为返回顶部增加鼠标进入的反馈效果,用添加删除css类实现 function () { $(this).addClass("hover"); }, function () { $(this).removeClass("hover"); }); //获取页面的最小高度,无传入值则默认为600像素 min_height ? min_height = min_height : min_height = 600; //为窗口的scroll事件绑定处理函数 $(window).scroll(function () { //获取窗口的滚动条的垂直位置 var s = $(window).scrollTop(); //当窗口的滚动条的垂直位置大于页面的最小高度时,让返回顶部元素渐现,否则渐隐 if (s > min_height) { $("#gotoTop").fadeIn(100); } else { $("#gotoTop").fadeOut(200); }; }); }; gotoTop(); </script> ``` ``` using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace RepairSever.Rank { public partial class PersonEfficiency : System.Web.UI.Page { public string token; protected void Page_Load(object sender, EventArgs e) { string token = Comm.GetToken(this); if (String.IsNullOrEmpty(token)) { Comm.Alert(this, "检测不到贵校信息,请重新登录"); return; } // WorkerEfficiency worker =new t_bx_form_status().GetAllWorkerEffciencyByToken(string token); } } public class WorkerEfficiency { private string _workNo; private string _name; private string _cnt; private string _time; public String workNo { get { return _workNo; } set { _workNo = value; } } public String name { get { return _name; } set { _name = value; } } public String cnt { get { return _cnt; } set { _cnt = value; } } public string time { get { return _time; } set { _time = value; } } } } ```
安装mysql gem的奇怪错误 谁能帮我一下 谢谢
Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/local/ruby/bin/ruby extconf.rb checking for mysql_ssl_set()... yes checking for rb_str_set_len()... no checking for rb_thread_start_timer()... yes checking for mysql.h... yes creating Makefile make gcc -I. -I. -I/usr/local/ruby/lib/ruby/1.8/x86_64-linux -I. -DHAVE_MYSQL_SSL_SET -DHAVE_RB_THREAD_START_TIMER -DHAVE_MYSQL_H -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -DUNIV_LINUX -DUNIV_LINUX -fPIC -g -Os -fno-strict-aliasing -c mysql.c gcc -shared -o mysql_api.so mysql.o -L. -L/usr/local/ruby/lib -Wl,-R/usr/local/ruby/lib -L. -rdynamic -Wl,-export-dynamic -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lmygcc -lrt -ldl -lcrypt -lm -lc /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [mysql_api.so] Error 1 Gem files will remain installed in /usr/local/ruby/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection. Results logged to /usr/local/ruby/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
Vue + Spring Boot 项目实战(十四):用户认证方案与完善的访问拦截
本篇文章主要讲解 token、session 等用户认证方案的区别并分析常见误区,以及如何通过前后端的配合实现完善的访问拦截,为下一步权限控制的实现打下基础。
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
漫话:什么是平衡(AVL)树?这应该是把AVL树讲的最好的文章了
这篇文章通过对话的形式,由浅入深带你读懂 AVL 树,看完让你保证理解 AVL 树的各种操作,如果觉得不错,别吝啬你的赞哦。 1、若它的左子树不为空,则左子树上所有的节点值都小于它的根节点值。 2、若它的右子树不为空,则右子树上所有的节点值均大于它的根节点值。 3、它的左右子树也分别可以充当为二叉查找树。 例如: 例如,我现在想要查找数值为14的节点。由于二叉查找树的特性,我们可...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
开源并不是你认为的那些事
点击上方蓝字 关注我们开源之道导读所以 ————想要理清开源是什么?先要厘清开源不是什么,名正言顺是句中国的古代成语,概念本身的理解非常之重要。大部分生物多样性的起源,...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
《C++ Primer》学习笔记(六):C++模块设计——函数
专栏C++学习笔记 《C++ Primer》学习笔记/习题答案 总目录 https://blog.csdn.net/TeFuirnever/article/details/100700212 —————————————————————————————————————————————————————— 《C++ Primer》习题参考答案:第6章 - C++模块设计——函数 文章目录专栏C+...
8年经验面试官详解 Java 面试秘诀
作者 |胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。 Java程序员准备和投递简历的实...
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车?某胡同口的煎饼摊一年能卖出多少个煎饼?深圳有多少个产品经理?一辆公交车里能装下多少个乒乓球?一个正常成年人有多少根头发?这类估算问题,被称为费米问题,是以科学家费米命名的。为什么面试会问这种问题呢?这类问题能把两类人清楚地区分出来。一类是具有文科思维的人,擅长赞叹和模糊想象,它主要依靠的是人的第一反应和直觉,比如小孩...
so easy! 10行代码写个"狗屁不通"文章生成器
前几天,GitHub 有个开源项目特别火,只要输入标题就可以生成一篇长长的文章。 背后实现代码一定很复杂吧,里面一定有很多高深莫测的机器学习等复杂算法 不过,当我看了源代码之后 这程序不到50行 尽管我有多年的Python经验,但我竟然一时也没有看懂 当然啦,原作者也说了,这个代码也是在无聊中诞生的,平时撸码是不写中文变量名的, 中文...
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的回答,对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalking,作者吴晟、刘浩杨 等等 仓库地址: apache/skywalking 更...
相关热词 c#选择结构应用基本算法 c# 收到udp包后回包 c#oracle 头文件 c# 序列化对象 自定义 c# tcp 心跳 c# ice连接服务端 c# md5 解密 c# 文字导航控件 c#注册dll文件 c#安装.net
立即提问