- 小程序web-view页面部分手机打开空白问题
jing_bao
初写小程序,记录下开发过程中遇到的部分手机打开web-view页面空白,以及web-view页面分享空白页的问题,以及解决方法。出现场景:当web-view加载的页面中存在中文字符时,会出现此问题。原因:部分ios手机打开web-view页面,并没有进行encodeURI编码;在使用encodeURI编码后,页面可打开,但进行微信小程序分享时,会再自行encode一次,导致部分ios解码不成功,分
- 空白的书
许星者
盛源走进了一家店,之前他从来没有来过这里。他是被店的名字吸引进去的,店的名字叫“空白”,从店外可以望见里面,这是一家书店,透过玻璃橱窗,可以看见两座书架,整整齐齐的摆放着书。他进来了,但没有看见一个人,这很奇怪,难道店主不怕丢书吗?店里有四张白色方桌,十六张木椅,每一个座位旁都放着一本书,是为了占座吗,盛源明明一个人都没有见到。他随手拿起了桌子上的一本书,看了起来,可是书里什么内容都没有,是空白页
- 无题-1
汨罗农民
在空白页上呆了一会会,竟然有点不知道今天来更新点啥,看来只能信马由缰随便写点啥了。昨天按照《命题作文》所提及的那样,写了一篇命题作文《芝麻茶》,倒是有感而发,字数虽然没有到1500字,但也到了1000字,发到公众号上,也有近200的阅读量,而且还增加了6个粉丝,虽然这些粉丝只是我的熟人、同事、朋友,但心里还是觉得挺开心的。至少说明,这些朋友对我的文字还算认可,不仅如此,还有所期待,因此就点了关注,
- Android中webview优化策略
小虫飘飘
webview
在Android开发中,要实现WebView的秒开体验,可以通过一系列性能优化策略来显著提升WebView的加载速度和用户体验。以下是一些关键的优化措施:1.加载优化预加载WebView:在应用启动时提前初始化WebView并进行预加载,如加载一个空白页(about:blank),以减少WebView首次加载页面的时间。延迟加载:将一些非首屏必需的操作推迟到首屏显示后再执行,如后台网络请求、埋点上
- 谁剪下了你的那段暗恋
沁妤苼
一抹红唇他趴在桌子上睡着了,她在他包里翻到了他的日记,这是他暗恋她的第四年,他在日记本的第一页写道,等把这本日记本写完,他就向她表白。她小心翼翼地把日记放回包里,把日记本后的空白页全撕了......他出类拔萃,她平凡无奇。她常独处一隅,偷望被众女生包围的他。他不负众望获异地的一级大学录取,她始终不敢表白。听说他不适应新环境,成绩勉强,她担心,但连问候的勇气也没有。二人终于在旧生聚会中碰面,她结结巴
- vue cli 3 build 打包之后路径错误问题,出现空白页
王冥
vue-cli3.x打包上线【入坑合集】问题1:使用vue-cli3.x开发的项目,开发的时候顺利无比,一旦打包上线各种问题就来了。首先是资源里面报各种各样的请求错误。解决思路:在src文件夹同级目录下创建vue.config.js文件在vue.config.js中重写打包后的基础路径为当前目录module.exports={//...baseUrl:'./'//...}问题2:重新打包之后上传服
- antdpro框架npm install 报错,切换tyarn安装成功。
Distant Blue
antdesignpronpm前端antdproantdesignpro
报错日志有时间补当前版本解决办法进入工作目录安装官方推荐的tyarn工具:npminstallyarntyarn-g进行依赖安装:tyarn启动项目:tyarnstart注意:技术迭代较快,建议查询官网后实践,以上作为参考。AntDesginPro官网Tyarn地址如果启动后显示空白页面,参考专栏中的另一篇博客。
- PDF文档怎么删除空白页?
办公小达人
PDF文档怎么删除空白页呢?PDF文档删除空白页面就需要使用到专业的PDF编辑器来进行操作,很多人不知道PDF编辑器怎么操作PDF删除页面,下面小编就为大家分享一下PDF编辑器进行PDF删除空白页面的方法。使用工具:迅捷PDF编辑器操作步骤:1:首先将迅捷PDF编辑器安装到自己的电脑中,打开PDF编辑器找到打开更多文件,将需要删除空白页面的PDF文件添加到软件中。2:在软件的顶部找到文档,点击文档
- 全网首发!如何停止莫名其妙的软件下载?终于被我找到了!
ordinary_brony
随笔经验分享
文章目录导读问题发现问题定位问题解决(粗暴)下面是2021.4.2更新内容同归于尽解决法丢弃尊严解决法导读如果是金山忠实用户,似乎并不怎么发现这个问题。但是作为一个常年裸奔以最大化电脑效率的穷小子,经常看到自己好好的Chrome空白页突然就被劫持了,甚至还给导航到了一大坨内容的hao123导航,这我就非常生气。问题发现为了能够白嫖,我也是找了很多的资源。但有些资源就是植入了流氓软件,一旦安装之后就
- 前端页面禁止debugger调试并跳转空白页面----文心一言官网实现方式
YongChao_bms
debugger前端禁用debugger浏览器调试
技术点:setInterval定时器+Object.defineProperty背景:某天打开文心一言想看看接口返回结构是怎样的,熟练的打开浏览器开发者工具查看网络请求。发现出现了以下debugger断点这难不倒我,去掉断点调试,继续下一步不就行了?心中暗暗自喜,一顿操作猛如虎,一看居然是二百五。什么鬼?怎样跳转空白页面了?我怎么看数据结构?它是怎样做到检测debugger模式,并且跳转空白页面的
- 2种方式解决vue路由跳转未匹配相应路由避免出现空白页面或者指定404页面
丰起云啸
我们经常遇到客户如果输错URL,就会出现空白,那么我们怎么结局呢?1.路由所有匹配不到时,返回首页;//创建路由对象并配置路由规则letrouter=newVueRouter({routes:[{path:'/',redirect:{name:"home"}},//重定向到主页{name:'home',path:'/home',component:Home},{path:'/music',comp
- Rstudio常见问题的解决方案
Lemon萌
Q1.Rstudio出现空白页A1原因及解决方案①安装路径不要有汉字;R和Rstudio的安装目录为同一个②安装的版本过多,可以在目录下删除或是“Ctrl”键下打开Rstudio,选择一个版本即可。(6.14帮欣怡解决问题的成功方案)
- vue项目打包部署到flask等后端服务里面,实现前后端不分离部署,解决空白页面和刷新页面not fount问题
1024小神
Python人生HTML前端vue.jsflask前端
1.编译模式一定要设置为esnext,否则会报错:StrictMIMEtypecheckingisenforcedformodulescriptsperHTMLspec.ExpectedaJavaScriptmodulescriptbuttheserverrespondedwithaMIMEtypeof"text/plain".具体解释可以看vite官方文档:构建选项|Vite官方中文文档2.而且
- React项目打包之后显示空白页
Leo_DLi
Web前端Reactreact
环境说明:React16React官网创建项目方式npmrunbuild打包之后,页面空白.解决方案:package.json文件中添加homepage字段:
- 取消浏览器启动时的默认主页
whynogome
软件工具edgechrome前端
最近使用chrome和Edge浏览器时,启动打开的默认标签页不是空白页,chrome默认打开的是2345导航页,edge打开的是360导航页,真他妈的烦的要命在设置-》启动选项设置后也无效,最后发现应该是浏览器启动文件被劫持了。首先查看快捷方式属性发现edge是快捷方式被劫持了,删除后面的url后,重新打开浏览器,出现空白的新标签页,完美。查看chrome的快捷方式,发现目标选项没有多余的url,
- Android WebView重定向问题
撒哈拉霸
转载:https://blog.csdn.net/u010217289/article/details/68065017在实际项目开发中,我们用到WebView的场景,大多是在对接协议、第三方应用或网页时出现。如果每次开启一个新的WebView页面使达到原生的返回效果,在需要到重定向的链接的时候就会出现中有个空白页面,该怎么解决,请看下面。WebView中有两个工具类负责管理网页各种行为:WebC
- word怎么删除空白页,Word Mac删除空白页面的图文方法
*橙子
办公软件wordMac
我们在使用WORD时候,怎么删除空白页呢?Word是我们平时工作生活中常用的一个电脑办公软件,用它可以编辑和处理一些文字资料,是非常的方便好用的。那么下面小编为您介绍一下Word删除空白页面的图文方法,一起来看看吧。通用的删除WORD空白页的方法是选择空白页所以的输入箭头,然后按住键盘上的退格键(backspace)或者delete,即可删除你不需要的空白页了。如果是用分页符分出的空白页,我们只需
- word里面空白页怎么删除
Jay星晴
word
如果您在MicrosoftWord中想要删除空白页,可以按照以下步骤进行操作:首先,确保您在页面视图下工作,以便能够清楚地看到页面中的空白部分。点击空白页的任何位置,使光标出现在该页面上。按下键盘上的“删除”键,直到空白页被完全删除。如果按下“删除”键没有起作用,那么您可能需要使用以下方法:选择页面上的所有内容(包括段落标记)。您可以使用键盘快捷键“Ctrl+A”(Windows)或“Comman
- Axure 动态面板初使用-实现简单的tab切换页面效果
设计师工作日常
产品设计axureui动态面板交互ux人机交互
使用工具版本Axure9实现的效果步骤过程1、打开Axure9,默认进入一个空白页,首先从元件库拉一个动态面板到页面中,位置肯定是C位咯~2、将面板尺寸调整一下,设置成你喜欢的数字,比如我就喜欢800×6003、然后给动态面板起个名字,随便起一个你容易识别的名字就可以,我这里就叫tab面板吧~4、尺寸、名称设置好后,双击页面中的面板,进入面板编辑模式5、从元件库拉3个按钮到面板内,用作tab点击按
- Axure 动态面板初使用 - 实现简单的Banner图轮播效果
设计师工作日常
产品设计axureui交互ux动态面板
使用工具版本Axure9实现的效果步骤过程1、打开Axure工具,从元件库拖个动态面板到空白页;2、给面板设置一个常用的banner尺寸,举个栗子:343×151(移动端我常用的banner尺寸),顺便给它起个名字,就叫[轮播面板];3、双击轮播面板,进入编辑状态;4、然后给面板再添加2个状态,并分别命名为[b1]、[b2]、[b3];5、回到[b1]状态,从元件库拖个矩形到页面,并把矩形调整到跟
- H5 嵌入在ios app中,input不能输入内容
小扶苏
ios前端vue
场景:vue写的H5页面嵌入在app中展示,点击跳转搜索页:如果是用$router.push跳转,input输入正常如果是调用app提供的新开webview窗口打开,则input输入时,可以唤起输入键盘,但是输入的文案不能在input框中展示原因:不清楚,猜测可能是新开窗口是有丢失js包解决方案:新增一个中转空白页面,在页面中自动用**$router.replace来跳转到目标页面**,跳转的时候
- 微信内置浏览器打开所有页面空白解决方案
Yu_摆摆
学习微信
一、问题描述微信版本3.6.0.18(当前最新版)问题描述:系统重装后新安装的微信,使用微信内置浏览器打开所有h5页面都显示空白页。二、解决方案打开InternetExplorer浏览器,进入设置-Internet选项-连接-局域网设置,取消为LAN使用代理服务器的勾选,点击确定,完成后再查看微信内置浏览器打开页面就能够正常使用。三、原理微信内置浏览器都是ie内核,直接调用的本机ie的设置,重装系
- gitlab 403 forbidden 报错解决
R6N
gitlabmysqljavalinuxtomcat
问题使用自搭建的Gitlab。但打开页面的时候显示的是空白页面,上面还有一次文本Forbidden。原因Gitlab使用rack_attack做了并发访问的限制。解决方案将Gitlab的IP设置为白名单即可。步骤如下:打开/etc/gitlab/gitlab.rb文件。查找gitlab_rails['rack_attack_git_basic_auth']关键词。取消注释修改ip_whitelis
- PDF操作——批量删除末页
Leuanghing
pdfpython经验分享
一、说明由于PDF末页为空白页或者是免责声明需要删除,涉及的文件比较多,因此写了一小段代码进行处理。二、完整架构流程这个代码的整体架构流程可以分为以下几个步骤:导入所需的库:首先,代码导入了PyPDF2和os两个库。PyPDF2是一个Python库,用于处理PDF文件,而os库提供了与操作系统交互的功能。定义find_pdf函数:这个函数用于获取指定文件夹中所有的PDF文件路径。它通过遍历文件夹及
- 网络带给我们的是好还是坏
孙小鱼s
网络的发展,是社会的进步,从刚开始的博客,微博,QQ到微信,网络让我们连接到不同国家的人,让我们的关系越来越亲近,给生活带来更多便利和好处,这是肯定的。我记得刚开始接触到网络是初中的时候,那时老师让我们在一台像电视机一样的机器面前学习,教我们打字,屏幕上有一张空白页面,我可以在上面写很多文字,觉得很神奇。互联网始于1969年的美国,是美军用于军事联络的工具,后由美国国家科学基金会资助建设,链接全美
- HTML基础
_殊途
html前端
目录1.基础标签2.图片、音频、视频标签3.超链接标签4.列表标签5.表格标签6.表单标签7.表单项标签1.基础标签水平分隔符换行符段落符对字体形式,大小,颜色设置加粗倾斜下划线移动到中心2.图片、音频、视频标签尺寸单位1.px:像素2.百分比:%3.超链接标签herf:指定访问资源的URLtarget:指定访问资源的方式_blank:在空白页面打开_self:默认值,在当前页面打开4.列表标签有
- mui混合开发(二)
全村的希望iOS
简述:混合App的流畅性不比原生的App,当网络不好的时候出现空白页面体验很不好,mui文档给出了两个解决方案,方案一很简单,方案二是预加载模式下一章节配合mui自定义事件详细讲解一:打开子页面配置一个属性show:{autoShow:true,}waiting:{autoShow:true,}二:打开页面网络请求成功关闭等待框、显示当前的webViewplus.nativeUI.closeWai
- 2021-11-21
意识抄写员
夜的静寂里最本质的振动像一股清泉,淌过每一个忙碌的电子原子核的舞台灯光真实,在戏剧的针脚密密穿刺絮絮耳语过往,在忏悔当下,险险地插在历史的空白页爱如清风柔柔地,翻过每一章节,每一页盖上,爱的水印在我的世界里,混沌爱在指引
- 微信小程序swiper实现tab切换显示空白页
小小苏1229
此处可能会出现Tab显示空白问题,经验证,swiper-item不可直接写样式或者class类名,需要在swiper内部写样式
- vite + vue3 + elementPlus + vuex + axios项目搭建及问题
Thekingyu
vue+apicloudvitevue3
遇到的问题:1:elementplus引入后功能正常其里面icon无效2:elementplus默认英文问题3:vue3把过滤器删掉了我用什么替代4:vue3routerview第一次加载空白页我想强制刷新怎么办nextupdata?5:引入vuex保存变量发现刷新丢失怎么办6:vite打包后放服务器jscss找不到怎么配置常规为题:1:vue3使用获取路由传参2:vue3父组件触发子组件方法3:
- PHP如何实现二维数组排序?
IT独行者
二维数组PHP排序
二维数组在PHP开发中经常遇到,但是他的排序就不如一维数组那样用内置函数来的方便了,(一维数组排序可以参考本站另一篇文章【PHP中数组排序函数详解汇总】)。二维数组的排序需要我们自己写函数处理了,这里UncleToo给大家分享一个PHP二维数组排序的函数:
代码:
functionarray_sort($arr,$keys,$type='asc'){
$keysvalue= $new_arr
- 【Hadoop十七】HDFS HA配置
bit1129
hadoop
基于Zookeeper的HDFS HA配置主要涉及两个文件,core-site和hdfs-site.xml。
测试环境有三台
hadoop.master
hadoop.slave1
hadoop.slave2
hadoop.master包含的组件NameNode, JournalNode, Zookeeper,DFSZKFailoverController
- 由wsdl生成的java vo类不适合做普通java vo
darrenzhu
VOwsdlwebservicerpc
开发java webservice项目时,如果我们通过SOAP协议来输入输出,我们会利用工具从wsdl文件生成webservice的client端类,但是这里面生成的java data model类却不适合做为项目中的普通java vo类来使用,当然有一中情况例外,如果这个自动生成的类里面的properties都是基本数据类型,就没问题,但是如果有集合类,就不行。原因如下:
1)使用了集合如Li
- JAVA海量数据处理之二(BitMap)
周凡杨
java算法bitmapbitset数据
路漫漫其修远兮,吾将上下而求索。想要更快,就要深入挖掘 JAVA 基础的数据结构,从来分析出所编写的 JAVA 代码为什么把内存耗尽,思考有什么办法可以节省内存呢? 啊哈!算法。这里采用了 BitMap 思想。
首先来看一个实验:
指定 VM 参数大小: -Xms256m -Xmx540m
- java类型与数据库类型
g21121
java
很多时候我们用hibernate的时候往往并不是十分关心数据库类型和java类型的对应关心,因为大多数hbm文件是自动生成的,但有些时候诸如:数据库设计、没有生成工具、使用原始JDBC、使用mybatis(ibatIS)等等情况,就会手动的去对应数据库与java的数据类型关心,当然比较简单的数据类型即使配置错了也会很快发现问题,但有些数据类型却并不是十分常见,这就给程序员带来了很多麻烦。
&nb
- Linux命令
510888780
linux命令
系统信息
arch 显示机器的处理器架构(1)
uname -m 显示机器的处理器架构(2)
uname -r 显示正在使用的内核版本
dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI)
hdparm -i /dev/hda 罗列一个磁盘的架构特性
hdparm -tT /dev/sda 在磁盘上执行测试性读取操作
cat /proc/cpuinfo 显示C
- java常用JVM参数
墙头上一根草
javajvm参数
-Xms:初始堆大小,默认为物理内存的1/64(<1GB);默认(MinHeapFreeRatio参数可以调整)空余堆内存小于40%时,JVM就会增大堆直到-Xmx的最大限制
-Xmx:最大堆大小,默认(MaxHeapFreeRatio参数可以调整)空余堆内存大于70%时,JVM会减少堆直到 -Xms的最小限制
-Xmn:新生代的内存空间大小,注意:此处的大小是(eden+ 2
- 我的spring学习笔记9-Spring使用工厂方法实例化Bean的注意点
aijuans
Spring 3
方法一:
<bean id="musicBox" class="onlyfun.caterpillar.factory.MusicBoxFactory"
factory-method="createMusicBoxStatic"></bean>
方法二:
- mysql查询性能优化之二
annan211
UNIONmysql查询优化索引优化
1 union的限制
有时mysql无法将限制条件从外层下推到内层,这使得原本能够限制部分返回结果的条件无法应用到内层
查询的优化上。
如果希望union的各个子句能够根据limit只取部分结果集,或者希望能够先排好序在
合并结果集的话,就需要在union的各个子句中分别使用这些子句。
例如 想将两个子查询结果联合起来,然后再取前20条记录,那么mys
- 数据的备份与恢复
百合不是茶
oraclesql数据恢复数据备份
数据的备份与恢复的方式有: 表,方案 ,数据库;
数据的备份:
导出到的常见命令;
参数 说明
USERID 确定执行导出实用程序的用户名和口令
BUFFER 确定导出数据时所使用的缓冲区大小,其大小用字节表示
FILE 指定导出的二进制文
- 线程组
bijian1013
java多线程threadjava多线程线程组
有些程序包含了相当数量的线程。这时,如果按照线程的功能将他们分成不同的类别将很有用。
线程组可以用来同时对一组线程进行操作。
创建线程组:ThreadGroup g = new ThreadGroup(groupName);
&nbs
- top命令找到占用CPU最高的java线程
bijian1013
javalinuxtop
上次分析系统中占用CPU高的问题,得到一些使用Java自身调试工具的经验,与大家分享。 (1)使用top命令找出占用cpu最高的JAVA进程PID:28174 (2)如下命令找出占用cpu最高的线程
top -Hp 28174 -d 1 -n 1
32694 root 20 0 3249m 2.0g 11m S 2 6.4 3:31.12 java
- 【持久化框架MyBatis3四】MyBatis3一对一关联查询
bit1129
Mybatis3
当两个实体具有1对1的对应关系时,可以使用One-To-One的进行映射关联查询
One-To-One示例数据
以学生表Student和地址信息表为例,每个学生都有都有1个唯一的地址(现实中,这种对应关系是不合适的,因为人和地址是多对一的关系),这里只是演示目的
学生表
CREATE TABLE STUDENTS
(
- C/C++图片或文件的读写
bitcarter
写图片
先看代码:
/*strTmpResult是文件或图片字符串
* filePath文件需要写入的地址或路径
*/
int writeFile(std::string &strTmpResult,std::string &filePath)
{
int i,len = strTmpResult.length();
unsigned cha
- nginx自定义指定加载配置
ronin47
进入 /usr/local/nginx/conf/include 目录,创建 nginx.node.conf 文件,在里面输入如下代码:
upstream nodejs {
server 127.0.0.1:3000;
#server 127.0.0.1:3001;
keepalive 64;
}
server {
liste
- java-71-数值的整数次方.实现函数double Power(double base, int exponent),求base的exponent次方
bylijinnan
double
public class Power {
/**
*Q71-数值的整数次方
*实现函数double Power(double base, int exponent),求base的exponent次方。不需要考虑溢出。
*/
private static boolean InvalidInput=false;
public static void main(
- Android四大组件的理解
Cb123456
android四大组件的理解
分享一下,今天在Android开发文档-开发者指南中看到的:
App components are the essential building blocks of an Android
- [宇宙与计算]涡旋场计算与拓扑分析
comsci
计算
怎么阐述我这个理论呢? 。。。。。。。。。
首先: 宇宙是一个非线性的拓扑结构与涡旋轨道时空的统一体。。。。
我们要在宇宙中寻找到一个适合人类居住的行星,时间非常重要,早一个刻度和晚一个刻度,这颗行星的
- 同一个Tomcat不同Web应用之间共享会话Session
cwqcwqmax9
session
实现两个WEB之间通过session 共享数据
查看tomcat 关于 HTTP Connector 中有个emptySessionPath 其解释如下:
If set to true, all paths for session cookies will be set to /. This can be useful for portlet specification impleme
- springmvc Spring3 MVC,ajax,乱码
dashuaifu
springjquerymvcAjax
springmvc Spring3 MVC @ResponseBody返回,jquery ajax调用中文乱码问题解决
Spring3.0 MVC @ResponseBody 的作用是把返回值直接写到HTTP response body里。具体实现AnnotationMethodHandlerAdapter类handleResponseBody方法,具体实
- 搭建WAMP环境
dcj3sjt126com
wamp
这里先解释一下WAMP是什么意思。W:windows,A:Apache,M:MYSQL,P:PHP。也就是说本文说明的是在windows系统下搭建以apache做服务器、MYSQL为数据库的PHP开发环境。
工欲善其事,必须先利其器。因为笔者的系统是WinXP,所以下文指的系统均为此系统。笔者所使用的Apache版本为apache_2.2.11-
- yii2 使用raw http request
dcj3sjt126com
http
Parses a raw HTTP request using yii\helpers\Json::decode()
To enable parsing for JSON requests you can configure yii\web\Request::$parsers using this class:
'request' =&g
- Quartz-1.8.6 理论部分
eksliang
quartz
转载请出自出处:http://eksliang.iteye.com/blog/2207691 一.概述
基于Quartz-1.8.6进行学习,因为Quartz2.0以后的API发生的非常大的变化,统一采用了build模式进行构建;
什么是quartz?
答:简单的说他是一个开源的java作业调度框架,为在 Java 应用程序中进行作业调度提供了简单却强大的机制。并且还能和Sp
- 什么是POJO?
gupeng_ie
javaPOJO框架Hibernate
POJO--Plain Old Java Objects(简单的java对象)
POJO是一个简单的、正规Java对象,它不包含业务逻辑处理或持久化逻辑等,也不是JavaBean、EntityBean等,不具有任何特殊角色和不继承或不实现任何其它Java框架的类或接口。
POJO对象有时也被称为Data对象,大量应用于表现现实中的对象。如果项目中使用了Hiber
- jQuery网站顶部定时折叠广告
ini
JavaScripthtmljqueryWebcss
效果体验:http://hovertree.com/texiao/jquery/4.htmHTML文件代码:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网页顶部定时收起广告jQuery特效 - HoverTree<
- Spring boot内嵌的tomcat启动失败
kane_xie
spring boot
根据这篇guide创建了一个简单的spring boot应用,能运行且成功的访问。但移植到现有项目(基于hbase)中的时候,却报出以下错误:
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.Lif
- leetcode: sort list
michelle_0916
Algorithmlinked listsort
Sort a linked list in O(n log n) time using constant space complexity.
====analysis=======
mergeSort for singly-linked list
====code======= /**
* Definition for sin
- nginx的安装与配置,中途遇到问题的解决
qifeifei
nginx
我使用的是ubuntu13.04系统,在安装nginx的时候遇到如下几个问题,然后找思路解决的,nginx 的下载与安装
wget http://nginx.org/download/nginx-1.0.11.tar.gz
tar zxvf nginx-1.0.11.tar.gz
./configure
make
make install
安装的时候出现
- 用枚举来处理java自定义异常
tcrct
javaenumexception
在系统开发过程中,总少不免要自己处理一些异常信息,然后将异常信息变成友好的提示返回到客户端的这样一个过程,之前都是new一个自定义的异常,当然这个所谓的自定义异常也是继承RuntimeException的,但这样往往会造成异常信息说明不一致的情况,所以就想到了用枚举来解决的办法。
1,先创建一个接口,里面有两个方法,一个是getCode, 一个是getMessage
public
- erlang supervisor分析
wudixiaotie
erlang
当我们给supervisor指定需要创建的子进程的时候,会指定M,F,A,如果是simple_one_for_one的策略的话,启动子进程的方式是supervisor:start_child(SupName, OtherArgs),这种方式可以根据调用者的需求传不同的参数给需要启动的子进程的方法。和最初的参数合并成一个数组,A ++ OtherArgs。那么这个时候就有个问题了,既然参数不一致,那