pic

即时通讯

蓝咒 提交于 2019-12-21 08:06:26
前端使用layui框架中的即时通讯 前端的一个代码测试 var uuid,username,head_pic,my_pic,my_name,my_id; apiready = function() { uuid = api.pageParam.uuid; username = api.pageParam.username; if(api.pageParam.head_pic ==''){ head_pic='../../image/moren.png'; }else{ head_pic = localhost+api.pageParam.head_pic; } api.ajax({ url: getUserInfoUrl, method: 'post', }, function(ret, err) { // alert(JSON.stringify(ret)); if(ret){ if(ret.status == 1){ if(ret.result.head_pic){ my_pic = localhost+ret.result.head_pic; }else{ my_pic = "../../image/moren.png" } if(ret.result.resume){ my_name = ret.result.resume.name; }else{ my_name =

cdc_acm : failed to set dtr/rts - can not communicate with usb cdc device

↘锁芯ラ 提交于 2019-12-21 04:49:11
问题 I was trying to enumerate usb cdc device using pic24fj128gb206. Device seems to be enumerated properly. But when I connect my device to Linux PC, I am getting the below warning message from kernel. cdc_acm 1-8.1.6.7:1.0: failed to set dtr/rts And this message will repeat when I try to connect using screen. screen /dev/ttyACM9 115200 And I am not able to communicate with my device from PC [ Ubuntu, 14.04 ] When analysing the data using wireshark, it looks like USB communication is fine until,

Whats the best resource to learn Assembly language for PIC microcontroller's [closed]

牧云@^-^@ 提交于 2019-12-20 23:27:01
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I'm going to start working on a project where I need to have a decent understanding of Assembly language for the PIC microcontroller's

Freemarker导出word文档 的一些问题

随声附和 提交于 2019-12-20 11:46:49
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我被图片换行问题给难了好一会儿,我没想到在word中,两个图片标签本身就自带了换行功能,如果要想使图片不换行的话,需要将两个图片放在一个w:p标签中。 明白这一点之前,我花了不少时间去找所谓的换行符,通过beyond compare各种对比不同效果、换行与不换行的图片之间的区别。 这次耐心还是挺足的,不然估计的花更多的时间才能找到答案。 这次要赖自己的英语水平了——通过文档对比其实我早就注意到包含【GoBack】关键字的【w:bookmarkStart】标签了,但我却把它错误理解成了换行符……甚至还在想,为啥我把换行符去掉之后,怎么这个换行标签就从xml中出现了呢……哈哈,现在想来自己真是太可笑。 我要是英语再好一点的话,应该早就意识到,哦,原来两个图片标签本身就自带换行效果,如果想要不换行的话,需要将其写在同一个w:p标签中,并且用被我南辕北辙的误解为换行符的【不换行符】来实现这个效果。 一个好消息是,我已经持续学习英语一个月了,并且会继续坚持一下去。 <w:p w:rsidR="00A644D4" w:rsidRDefault="003E49CE" w:rsidP="001D19BC"> <w:r> <w:rPr> <w:noProof/> </w:rPr> <w:drawing> <wp:inline

【穿插】Python基础之文件、文件夹的创建,对上一期代码进行优化

只愿长相守 提交于 2019-12-20 00:09:22
在上一期妹子图的爬虫教程中,我们将图片都保存在了代码当前目录下,这样并不便于浏览,我们应该将同一个模特的图片都放在一个文件夹中。 今天我们就简单讲一下Python下如何创建文件、文件夹,今后就可以用上了。 1、搞清楚相对路径和绝对路径 绝对路径比较好理解,就是最完整的路径,包含盘符的,比如D:\user\abc.txt,表示的就是D盘目录下,user文件夹中的abc.txt文件。当然在代码中,\是特殊字符,我们需要两个\来表示该路径,open('D:\user\abc.txt')。 相对路径,指的是相对当前路径来说的,假如当前路径为D:\user\public。 当前路径下的文件可以直接输入文件名来访问,比如open(abc.txt),表示打开绝对路径为D:\user\public\abc.txt的文件。 当前路径下的文件夹中的文件,可以这样来访问,比如open('/test/abc.txt'),表示打开绝对路径为D:\user\public\test\abc.txt的文件。 如何获取当前路径呢? 导入os模块,os的getcwd()方法会返回代码所在的当前目录。 这里返回的是绝对路径。 import os cwpath=os.getcwd() print(cwpath) 2、如何创建一个绝对路径文件夹 那么,如果我们想指定一个路径,用于创建文件夹,应该如何实现的? 首先

Flutter高级第2篇:JSON的序列化和反序列化、创建模型类转换Json数据

ⅰ亾dé卋堺 提交于 2019-12-17 09:16:24
一、Flutter JSON 序列化反序列化 1、使用 dart:convert 手动序列化 JSON 2、模型类中序列化 JSON 小项目中使用 dart:convert 手动序列化 JSON 非常好,也非常快速。但是随着项目的增大, dart:convert 手动序列化 JSON 的话失去了大部分静态类型语言特性:类型安全、自动补全和 最重要的编译时异常。这样一来,我们的代码可能会变得非常容易出错。 当我们访问 name 或 email 字段时,我们输入的很快,导致字段名打错了。但由于这个 JSON 在 map 结构中,所以编译器不知道这个错误的字段名。 为了解决上面的问题在大型项目中使用的更多的是在模型类中序列化 JSON。 二、 Flutter JSON 字符串和 Map 换 类型的转换 dart:convert手动序列化 JSON import 'dart:convert' var mapData = { "name" : "张三" , "age" : "20" } ; var strData = '{"name":"张三","age":"20"}' ; print ( json . encode ( mapData ) ) ; //Map 转换成 Json 字符串 print ( json . decode ( strData ) ) ; //Json 字符串转化成

小程序九宫格

﹥>﹥吖頭↗ 提交于 2019-12-17 03:41:41
小程序九宫格 效果: wxml <view class="content"> <view class="title">--你对哪些话题感兴趣?--</view> <swiper style="height:350px;"> <swiper-item> <view class="item"> <view> <view> <image src="/images/" style="width:50px;height:50px;" class="pic"></image> </view> <view>dashucoding</view> </view> <view> <view> <image src="/images/" style="width:50px;height:50px;" class="pic"></image> </view> <view>dashucoding</view> </view> <view> <view> <image src="/images/" style="width:50px;height:50px;" class="pic"></image> </view> <view>dashucoding</view> </view> </view> <view class="item"> <view> <view> <image src="/images/"

Apache HBase 常用Shell操作

独自空忆成欢 提交于 2019-12-15 07:53:45
HBase常用shell操作 hive,hbase命令行无法回格 在secureCRT中,点击"选项"->“回话选项”->“终端”->“仿真” 右边的终端选择linux,在hbase shell中如输入出错,Ctrl+回格键即可删除 进入HBase客户端命令操作界面 $ bin/hbase shell [ root@hadoop01 bin ] # hbase shell 2019 - 12 - 11 09 : 14 : 22 , 321 INFO [ main ] Configuration . deprecation : hadoop . native . lib is deprecated . Instead , use io . native . lib . available SLF4J : Class path contains multiple SLF4J bindings . SLF4J : Found binding in [ jar : file : / export / servers / hbase - 1.2 .0 - cdh5 . 14.0 / lib / slf4j - log4j12 - 1.7 .5 . jar ! / org / slf4j / impl / StaticLoggerBinder . class ] SLF4J : Found

No source code lines were found at current PC 0x0

旧巷老猫 提交于 2019-12-13 18:05:41
问题 I am having issues using MPLAB X IDE. I have a main.c with a main section. When I try to debug, I can't. It says no source code lines were found. I have compiled the software and debugged in MPLAB IDE without issue. I feel as though there is a setting in MPLAB X or something else basic that I am missing. Though I am not sure it is useful, for the sake of information, I am using a PICKit2 for debugging, MPLAB X IDE v1.51, PIC16F876 uC. main code in main.c: int main(int argc, char** argv) {

android IPC及原理简介

末鹿安然 提交于 2019-12-13 11:39:04
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 什么是Android操作系统,所谓的Android:是基于Linux内核的软件平台和操作系统,早期由Google开发,后由开放手机联盟Open Handset Alliance)开发。 Linux系统中进程间通信的方式有:socket, named pipe,message queque, signal,share memory。Java系统中的进程间通信方式有socket, named pipe等。android应用程序理所当然可以应用JAVA的IPC机制实现进程间的通信, 取而代之的是Binder通信。Google为什么要采用这种方式呢,这取决于Binder通信方式的高效率。 Binder通信是通过linux的binder driver来实现的。Binder通信操作类似线程迁移(thread migration),两个进程间IPC看起来就象是一个进程进入另一个进程执行代码然后带着执行的结果返回。 Binder的用户空间为每一个进程维护着一个可用的线程池,线程池用于处理到来的IPC以及执行进程本地消息,Binder通信是同步而不是异步。Android中的Binder通信是基于Service与Client的,所有需要IBinder通信的进程都必须创建一个IBinder接口。