两个MySQL的问题解决办法。

1、主从服务器同步:主从服务器中从服务器遇到问题后的同步:
stop slave;
set global sql_slave_skip_counter=1;
start slave; show slave status;

2、Table ‘%s’ is marked as crashed and last (automatic) repair failed
check table TABLENAME;
repair table TABLENAME;
check table TABLENAME;

字符编码问题。

在使用 iconv将中文转换为utf-8的时候(iconv(’gb2312′, ‘utf-8′, $string)),你有可能会遇到“Detected an illegal character in input string”,这个时候你可以将gb2312替换为GBK(iconv(’gbk’, ‘utf-8′, $string))。

NETSCAPE Bookmark的时间格式

ADD_DATE=”1213766453″,这里采用的时间格式是从 Unix 纪元(格林威治时间 1970 年 1 月 1 日 00:00:00)到当前时间的秒数。在PHP中你可以直接使用time()获得。

合理使用Memcached进行缓存部署

      使用Memcached来缓存数据是目前最有效的方案,使用Memcached能够有效的降低MySQL的查询压力。Memcached工作的原理是将MySQL查询出来的结果存储在内存中,下次查询时可以避开MySQL,以此来降低数据库的压力。但是现在的社区网站中,数据的更新十分频繁,这也给数据缓存带来了不小的难度。如果缓存的更新时间设计不合理,用户不能在数据修改的第一时间看到结果;过于频繁的更新又会丧失缓存的功能。

万蝶最原始的缓存策略中,我们采用的是:默认数据缓存1天时间,如果期间数据有更新,在更新的同时删除原有的缓存然后重新查询数据库并缓存新数据,如果没有没有更新,缓存数据1天后自动过期,下次查询经过数据库后重新缓存。这样的设计方案保证了数据的及时性,用户的更新在第一时间呈现出来,但是弊端是过于频繁的更新不但没有起到降低数据库压力的要求,同时也给Memcached自身带来一定的压力。

我们向数据库中插入一条数据,之后在需要的时候再从数据库中把这条数据提取出来,我们好像是在刻意给数据库增加压力?如果我们在把数据插入数据库的同时,也把这条数据同时让Memecached保存起来呢?这样,在需要查询的时候我们就可以直接从Memcached中得到这条数据了,查询避开MySQL,这样可以将数据库的压力将到最低。

下一步我们要考虑的就是在数据发生更新时候的操作了,这个时候就该Memcache::replace上场了。在pdx中,更新最频繁的就是用户的网志了,每一次的阅读,每一次的评论,数据都需要更新,但是每次更新的也只是数据中的一部分,所以这种情况下,我们只需要将Memcached中的数据提取出来,将需要更新的部分替换掉,然后使用Memcache::replace替换掉老的缓存,这样我们的需求就基本达到了:查询避开了数据库,有效的减轻了数据库压力;同时我们又在数据修改的第一时间让用户看到了更新。

MagickWand函数中文翻译

ClearDrawingWand — 清除DrawingWand资源
ClearMagickWand — 清除MagickWand相关资源
ClearPixelIterator — 清除PixelIterator相关资源
ClearPixelWand — 清除PixelWand相关资源
CloneDrawingWand — 从DrawingWand资源产生精确复制
CloneMagickWand — 从MagickWand资源产生复制
DestroyDrawingWand — 释放DrawingWand资源
DestroyMagickWand — 释放MagickWand资源
DestroyPixelIterator — 释放PixelIterator资源
DestroyPixelWand — 释放PixelWand资源
DestroyPixelWandArray — 释放PixelWand资源数组
DestroyPixelWands — alias of DestroyPixelWandArray()
DrawAffine — 调整当前变形矩阵
DrawAnnotation — 在图像上绘制文字
DrawArc — 在图像上绘制一个圆弧
DrawBezier — 使用当前笔划/宽度绘制贝塞尔曲线,并填充颜色和纹理
DrawCircle — 在图像上绘制圆
DrawColor — 在图像上使用当前颜色填充
DrawComment — 向矢量输出流里添加注释
DrawComposite — 合成当前图像
DrawEllipse — 在图像上绘制椭圆
DrawGetClipPath — 返回当前剪裁路径 ID
DrawGetClipRule — returns the current polygon fill rule to be used by the clipping path (使用剪裁路径,返回多边形填充规则,可能释的不准)
DrawGetClipUnits — 返回当前图片中剪裁路径单元的解释
DrawGetException — 返回DrawingWand的错误描述和类型
DrawGetExceptionString — 返回DrawingWand的错误描述
DrawGetExceptionType — 返回DrawingWand的错误类型数字
DrawGetFillAlpha — 返回填充颜色和纹理时的透明度
DrawGetFillColor — 返回填充对象的填充色
DrawGetFillOpacity — 返回填充颜色和纹理时的透明度
DrawGetFillRule — 返回绘制多边形的填充规则
DrawGetFont — 返回指定字体时所用的标注与文字
DrawGetFontFamily — 返回字体Family时使用的标注与文字
DrawGetFontSize — 返回字体pointsize时所用的标注与文字
DrawGetFontStretch — 返回字体拉伸时所用的标注与文字
DrawGetFontStyle — 返回的字体风格所用的标注与文字
DrawGetFontWeight — 返回字体weight时所用的标注与文字
DrawGetGravity — returns the text placement gravity used when annotating with text
DrawGetStrokeAlpha — 返回描边/填充对象概述
DrawGetStrokeAntialias — 返回当前笔划antialias设置
DrawGetStrokeColor — 返回描边对象颜色概述
DrawGetStrokeDashArray — returns an array representing the pattern of dashes and gaps used to stroke paths
DrawGetStrokeDashOffset — returns the offset into the dash pattern where the dash starts
DrawGetStrokeLineCap — returns the shape to be used at the end of open subpaths when they are stroked
DrawGetStrokeLineJoin — returns the shape to be used at the corners of paths (or other vector shapes) when they are stroked
DrawGetStrokeMiterLimit — returns the miter limit
DrawGetStrokeOpacity — returns the opacity of stroked object outlines
DrawGetStrokeWidth — returns the width of the stroke used to draw object outlines
DrawGetTextAlignment — 返回对齐方式的标注与文字
DrawGetTextAntialias — 返回当前文本antialias设置
DrawGetTextDecoration — returns the decoration applied when annotating with text
DrawGetTextEncoding — 返回指定文本编码
DrawGetTextUnderColor — 返回文本背景色
DrawGetVectorGraphics — 返回drawingwand的矢量图形字符串
DrawLine — 在图像上画一条线
DrawMatte — paints on the image’s opacity channel in order to set affected pixels to transparent
DrawPathClose — 关闭当有路径
DrawPathCurveToAbsolute — 以当前点绝对坐标绘制一个立体贝塞尔曲线
DrawPathCurveToQuadraticBezierAbsolute — 以当前点绝对坐标绘制一个平面贝塞尔曲线
DrawPathCurveToQuadraticBezierRelative — 以当前点相对坐标绘制一个平面贝塞尔曲线
DrawPathCurveToQuadraticBezierSmoothAbsolute — 以当前点绝对坐标绘制一个平面贝塞尔曲线
DrawPathCurveToQuadraticBezierSmoothRelative — 以当前点相对坐标绘制一个平面贝塞尔曲线
DrawPathCurveToRelative — 以当前点相对坐标绘制一个立体贝塞尔曲线
DrawPathCurveToSmoothAbsolute — 以当前点绝对坐标绘制一个立体贝塞尔曲线
DrawPathCurveToSmoothRelative — 以当前点相对坐标绘制一个立体贝塞尔曲线
DrawPathEllipticArcAbsolute — 以当前点绝对坐标绘制椭圆弧
DrawPathEllipticArcRelative — 以当前点相对坐标绘制椭圆弧
DrawPathFinish — 中止当前路径
DrawPathLineToAbsolute — 以当前点绝对坐标绘制一条线
DrawPathLineToHorizontalAbsolute — 以当前点绝对坐标到目标点绘制水平线
DrawPathLineToHorizontalRelative — 以当前点相对坐标到目标点绘制水平线
DrawPathLineToRelative — 以当前点相对坐标到目标点绘制一条线
DrawPathLineToVerticalAbsolute — 以当前点绝对坐标到目标点绘制垂直线
DrawPathLineToVerticalRelative — 以当前点相对坐标到目标点绘制垂直线
DrawPathMoveToAbsolute — 在给定的绝对坐标上建立新通道
DrawPathMoveToRelative — 在给定的相对坐标上建立新通道
DrawPathStart — 声明绘制列表开始
DrawPoint — 在指定坐标绘制一个点
DrawPolygon — 利用当前的笔划,笔划宽度,绘制一个多边形,并填补颜色或纹理
DrawPolyline — 利用当前的笔划,笔划宽度,绘制折线,并填补颜色或纹理
DrawPopClipPath — 终止修剪路径定义
DrawPopDefs — 终止定义列表
DrawPopPattern — 终止模式的定义
DrawPushClipPath — 开始修剪路径定义
DrawPushDefs –
DrawPushPattern — 开始名字模式定义
DrawRectangle — 绘制长方形
DrawRender — 渲染之前所有绘制命令
DrawRotate — applies the specified rotation to the current coordinate space (旋转当前坐标空间??)
DrawRoundRectangle — 绘制长方形(面)
DrawScale — 调整当前坐标空间缩放比例
DrawSetClipPath — associates a named clipping path with the DrawingWand (DrawingWand相关剪裁名字??)
DrawSetClipRule — 使用裁剪路径填充多边形规则
DrawSetClipUnits — 设置当前图像活动对象剪裁规则
DrawSetFillAlpha — 设置绘图补色或填补纹理时的透明度
DrawSetFillColor — 设置填补对象颜色
DrawSetFillOpacity — 设置绘图补色或填补纹理时的透明度
DrawSetFillPatternURL — 设置填补对象样式URL
DrawSetFillRule — 设置多边形填补规则
DrawSetFont — 设置文字字体
DrawSetFontFamily — 设置文字字体样式
DrawSetFontSize — 设置文字字体点陈大小
DrawSetFontStretch — 设置文字字体缩放
DrawSetFontStyle — 设置文字字体风格
DrawSetFontWeight — 设置文字字体大小
DrawSetGravity — 设置文字字体对齐方式
DrawSetStrokeAlpha — 指定描述对象外框不透明度
DrawSetStrokeAntialias — 控制描述对象外框锯齿
DrawSetStrokeColor — 设置描述对象外框颜色
DrawSetStrokeDashArray — specifies the pattern of dashes and gaps used to stroke paths (设置虚线??)
DrawSetStrokeDashOffset — specifies the offset into the dash pattern to start the dash (设置虚线位移??)
DrawSetStrokeLineCap — 设定子路径形状
DrawSetStrokeLineJoin — 设置描述形状转角样式或其它矢量样式
DrawSetStrokeMiterLimit — 指定miter(斜角??)限制
DrawSetStrokeOpacity — 指定描述对象外框不透明度
DrawSetStrokePatternURL — 设置描述对象外框图案
DrawSetStrokeWidth — 设置描述对象外框宽度
DrawSetTextAlignment — sets the alignment that will be applied when annotating with text(设定文字对齐方式??)
DrawSetTextAntialias — 控制文本锯齿
DrawSetTextDecoration — sets the decoration applied when annotating with text(设定文本修饰??)
DrawSetTextEncoding — 指定文本编码
DrawSetTextUnderColor — 设置文本背景色
DrawSetVectorGraphics — 设置指定的DrawingWand矢量图形字符串
DrawSetViewbox — 设定画布大小
DrawSkewX — 设置坐标系统水平偏移量
DrawSkewY — 设置坐标系统垂直偏移量
DrawTranslate — 当前坐标系统平移
IsDrawingWand — 是否DrawingWand资源
IsMagickWand — 是否MagickWand资源
IsPixelIterator — 是否PixelIterator资源
IsPixelWand — 是否PixelWand资源
MagickAdaptiveThresholdImage — 为当前图像每个像素选择一个threshold(阈值)
MagickAddImage — 添加其它的MagickWand到当前的图像
MagickAddNoiseImage — 添加噪点到当前图像
MagickAffineTransformImage — 以仿矩阵的DrawingWand 变换当前图像
MagickAnnotateImage — 用文字注释当前图像
MagickAppendImages — 添加图片设置
MagickAverageImages — averages a set of images(平分图像??)
MagickBlackThresholdImage — 低于指定阈值的像素设为黑色其它不变
MagickBlurImage — 模糊当前图像,或模糊的一个或多个图像通道
MagickBorderImage — 渲染当前图像边缘
MagickCharcoalImage — simulates a charcoal drawing(模拟炭笔绘画??)
MagickChopImage — 删除当有图像一个区域
MagickClipImage — 如果出现,则沿第一个8BIM轮廓剪辑
MagickClipPathImage — 如果出现,则沿8BIM命名路径轮廓剪辑
MagickCoalesceImages — 合成图像
MagickColorFloodfillImage — 改变相匹配像素相邻颜色
MagickColorizeImage — 混合当前图像中的填充色
MagickCombineImages — 合成一个或多个图像
MagickCommentImage — 添加注释到当前图像
MagickCompareImages — 比较一个或多个图像或通道,返回失真度
MagickCompositeImage — 在指定图像的偏移量上合成图像
MagickConstituteImage — 添加你提供的像素数据到图像
MagickContrastImage — 在当前图像上提高明暗之间的自然强度
MagickConvolveImage — 应用亮度勾画到当前图像或一个或多个图像通道
MagickCropImage — 提取当前图像一个区域
MagickCycleColormapImage — 按给定位置数替换色图
MagickDeconstructImages — compares each image with the next in a sequence(比较每一个图像的相近序列 ??)
MagickDescribeImage — 返回当前图像文字描述
MagickDespeckleImage — 降低当前图像噪点
MagickDrawImage — renders the DrawingWand on the current active image (渲染当前图像上的DrawingWand??)
MagickEchoImageBlob — 以标准输出显示当前图像
MagickEchoImagesBlob — 以标准输出显示当前图像序列
MagickEdgeImage — 按给定半径的回旋滤波器,提高当前图像边线
MagickEmbossImage — creates a grayscale version of the current active image, with a three-dimensional effect(创建灰度三维效果图 ??)
MagickEnhanceImage — 用数字滤波,提高嘈杂图像质量
MagickEqualizeImage — equalizes the histogram of the current active image(创建均衡直方图??)
MagickEvaluateImage — applies an arithmetic, relational, or logical operator to the current active image(在当前图像上应用算法,关系,逻辑运算)
MagickFlattenImages — 合并序列图像
MagickFlipImage — 创建图像垂直镜象
MagickFlopImage — 创建图像水平镜象
MagickFrameImage — 在图像边框附近创建三维立体边境
MagickFxImage — 评价当前图像或图像通道上的每一个像素
MagickGammaImage — 伽玛纠正特殊的图象或图像通道
MagickGaussianBlurImage — 模糊当前图像或他自忆的一个通道
MagickGetCharHeight — 返回指定字符最大高度
MagickGetCharWidth — 返回指定字符最大宽度
MagickGetCopyright — 返回 ImageMagick API 版权信息
MagickGetException — 返回 MagickWand 错误描述和类型
MagickGetExceptionString — 返回 MagickWand 错误描述
MagickGetExceptionType — 返回 MagickWand 错误类型号
MagickGetFilename — 返回一个文件的图像序列
MagickGetFormat — 返回MagickWand 的图像格式
MagickGetHomeURL — 返回 ImageMagick 主页URL
MagickGetImage — returns the current active image, in a New MagickWand (在新的MagickWand里返回当前图像??)
MagickGetImageBackgroundColor — 返回当前图像背景色
MagickGetImageBlob — 返回当前图像的BLOB (BLOB:Binary Large OBject 二进制大型对象)
MagickGetImageBluePrimary — 返回当前图像中以蓝色为主色的点
MagickGetImageBorderColor — 返回当前图像的边缘色
MagickGetImageChannelMean — 返回一个或多个图像通道的均值和标准偏差值
MagickGetImageColormapColor — 返回当前图像指定色图索引的颜色
MagickGetImageColors –返回当前图像中一些独特的色彩
MagickGetImageColorspace — 返回当前图像的着色模式
MagickGetImageCompose — 返回当前图像相关CompositeOperator(运算组合??)
MagickGetImageCompression — 返回当前图像使用的压缩技术
MagickGetImageCompressionQuality — 返回当前图像使用的压缩品质
MagickGetImageDelay — returns the delay of the current active image(返回当前图像的延迟??)
MagickGetImageDepth — returns the depth of a particular image or image channel(返回一个特别图像或通道的深度??)
MagickGetImageDispose — 返回当前图像的处理方法
MagickGetImageExtrema — returns the extrema for one or more images, or image channels (返回图像或通道的极值 ??)
MagickGetImageFilename — returns the filename of a particular image in a sequence (返回一个文件的特殊图像序列??)
MagickGetImageFormat — 返回当前图像格式
MagickGetImageGamma — returns the gamma of the current active image (返回当前图像的gamma,gamma:度与输入电压的非线性关系??)
MagickGetImageGreenPrimary — 返回当前图像中以绿色为主色的点
MagickGetImageHeight — 返回图像高度
MagickGetImageHistogram — 返回图像直方图数组做为PixelWand资源
MagickGetImageIndex — 返回当前图像索引
MagickGetImageInterlaceScheme — returns the image interlace scheme of the current active image (返回当前图像的扫描结构??)
MagickGetImageIterations — 返回图像迭代次数
MagickGetImageMatteColor — 返回图像颜色底纹
MagickGetImageMimeType — 返回图像的MIME类型
MagickGetImagePixels — 提取当前图像的像素数组到一个数组
MagickGetImageProfile — returns the named profile of the current active image (返回图像概要名??)
MagickGetImageRedPrimary — 返回当前图像中以红色为主色的点
MagickGetImageRenderingIntent — returns the image rendering intent of the current active image (返回图像渲染意图??)
MagickGetImageResolution — 返回图像分辨率,X和Y轴信息
MagickGetImageScene — returns the scene of the current active image (返回激活图像画布??)
MagickGetImageSignature — 为当前的像素流产生一个SHA-256信息摘要
MagickGetImageSize — 返回图像大小,bytes值
MagickGetImageType — returns the potential image type of the current active image (返回可能的图像类型??)
MagickGetImageUnits — returns the image’s units of resolution (返回图像分辨率单位??)
MagickGetImageVirtualPixelMethod — returns the virtual pixel method for the current active image (返回虚像素方法??)
MagickGetImageWhitePoint — returns the chromaticy white point (返回白点色彩??)
MagickGetImageWidth — 返回图像宽度
MagickGetImagesBlob — 返回图像序列的BLOB
MagickGetInterlaceScheme — returns the image interlace scheme of a MagickWand
MagickGetMaxTextAdvance — 返回指定字符串水平增加最大值
MagickGetMimeType — 返回MagickWand 的 MIME类型
MagickGetNumberImages — 返回当前相关的MagickWand 图像数
MagickGetPackageName — 返回ImageMagick软件包的名称
MagickGetQuantumDepth — returns the ImageMagick quantum depth as a double (返回ImageMagick双重分配深度值??)
MagickGetReleaseDate — 返回ImageMagick发行日期
MagickGetResourceLimit — 返回指定资源的兆字节
MagickGetSamplingFactors — 返回横向和纵向采样系数
MagickGetSize — MagickGetWandSize() 别名
MagickGetStringHeight — 返回指定字符高度
MagickGetStringWidth — 返回指定字符宽度
MagickGetTextAscent — returns the maximum character ascent of characters in a specified string(返回指定字符串上升字符最大数??)
MagickGetTextDescent — returns the maximum character descent of characters in a specified string (返回指定字符串下降字符最大数??)
MagickGetVersion — 返回 ImageMagick API 版本信息及版本号
MagickGetVersionNumber — 返回 ImageMagick API 版本号
MagickGetVersionString — 返回 ImageMagick API 版本信息
MagickGetWandSize — returns the size (pixel columns & rows) associated with a MagickWand (返回MagickWand相关尺寸,像素列和行)
MagickHasNextImage — returns TRUE if there are images following the current one (当前图像有跟随图像则返回true??)
MagickHasPreviousImage — returns TRUE if there are images preceeding the current one (当前图像有前置图像则返回true??)
MagickImplodeImage — “implodes” the current active image’s pixels by the specified percentage (当前图像像素指定百分比??)
MagickLabelImage — 添加标签到图像
MagickLevelImage — 调整图像通道层次
MagickMagnifyImage — 放大图像2倍
MagickMapImage — 用最近的参考图颜色替换当前图像颜色
MagickMatteFloodfillImage — 改变任意像素附近透明度值??
MagickMedianFilterImage — 以数字滤波,提高嘈杂图像的质量
MagickMinifyImage — 按比例缩放图片到原始的一半
MagickModulateImage — 调节当前图像的亮度,饱和度,和色调
MagickMontageImage — creates a composite image by combining several separate images (合成几个独立图像??)
MagickMorphImages — 锐化图像??
MagickMosaicImages — 嵌入MagickWand图像组成连贯图画
MagickMotionBlurImage — 模糊图像
MagickNegateImage — 去除图像或通道的颜色
MagickNewImage — 按指定背景和大小增加一个空白画布
MagickNextImage — 激活当前图像表里下一个图像
MagickNormalizeImage — 提高图像对比度
MagickOilPaintImage — 用特殊效果形成油画效果
MagickPaintOpaqueImage — 以目标色匹配图像中的任何像素颜色
MagickPaintTransparentImage — 以目标色改变图像透明度??
MagickPingImage — 取回/恢复图像文件属性
MagickPosterizeImage — 降低图像色彩层次
MagickPreviewImages — 把图像拼贴成9个缩略图
MagickPreviousImage — 激活当前图像表里前一个图像
MagickProfileImage — 增加或删除当前图像的ICC, IPTC
MagickQuantizeImage — 分析图像,选择固定颜色数代表本图
MagickQuantizeImages — 分析图像色彩与magickwand的序列图像 ,选择固定颜色数代表本图
MagickQueryConfigureOption — 返回指定配置选项值
MagickQueryConfigureOptions — 返回匹配项指定值
MagickQueryFontMetrics — 返回字体度量7元素
MagickQueryFonts — 返回指定模式任何字体
MagickQueryFormats — 返回指定模式任意图片格式
MagickRadialBlurImage — 模糊当前图像径向
MagickRaiseImage — 在图像上创建一个立体按钮
MagickReadImage — 读入图象或图像序列
MagickReadImageBlob — 从BLOB读入图象或图像序列
MagickReadImageFile — 从PHP流读入图象或图像序列
MagickReadImages — 读入一组图像文件到magickwand
MagickReduceNoiseImage — 使图像平滑
MagickRemoveImage — 从magickwand的图像列表删除当前图像
MagickRemoveImageProfile — 除删图像概要并返回
MagickRemoveImageProfiles — 删除图像的 ICC, IPTC
MagickResampleImage — 以期望的分辨率重新采样
MagickResetIterator — 重新设置图像迭代器
MagickResizeImage — 调整图像尺寸
MagickRollImage — 移动当前图像坐标
MagickRotateImage — 旋转图像
MagickSampleImage — 缩放图像
MagickScaleImage — 调整图像大小到给定值
MagickSeparateImageChannel — 从图像分离通道
MagickSetCompressionQuality — 设置图像序列压缩品质
MagickSetFilename — 设置读/写图像文件名
MagickSetFirstIterator — 设置图像迭代器
MagickSetFormat — 设置MagickWand 格式
MagickSetImage — 替换图像
MagickSetImageBackgroundColor — 设置图像背景色
MagickSetImageBias — sets the image bias for any method that convolves the current active image(设置图像convolves偏差??)
MagickSetImageBluePrimary — 设置图像蓝点色度
MagickSetImageBorderColor — 设置图这框色
MagickSetImageColormapColor — 设置色图索引
MagickSetImageColorspace — 设置图像颜色空间
MagickSetImageCompose — 设置图像合成方式
MagickSetImageCompression — 设置图像压缩方式
MagickSetImageCompressionQuality — 设置图像压缩品质
MagickSetImageDelay — sets the delay of the current active image (设置图像延迟??)
MagickSetImageDepth — 设置图像深度或图像通道
MagickSetImageDispose — 设置图像处理方法
MagickSetImageFilename — 设置图像文件名
MagickSetImageFormat — 设置图像格式
MagickSetImageGamma — 设置图像gamma
MagickSetImageGreenPrimary — 设置图像绿点色度
MagickSetImageIndex — 在指定位置设置MagickWand的图像索引
MagickSetImageInterlaceScheme — sets the image interlace scheme of the current active image(设置图像交错扫描方式??)
MagickSetImageIterations — 设置图像迭代次数
MagickSetImageMatteColor — sets matte color of the current active image (设置图像暗影色??)
MagickSetImageOption — 关联或选择特殊文件格式
MagickSetImagePixels — 在指定位置得到像素相关数据并存储存
MagickSetImageProfile — 在图像上增加named profile
MagickSetImageRedPrimary — 设置图像红点色度
MagickSetImageRenderingIntent — 设置图像渲染意图
MagickSetImageResolution — 设置图分辨率
MagickSetImageScene — sets the scene of the current active image(设置图像(场景)画布??)
MagickSetImageType — 设置图像类型
MagickSetImageUnits — 设置分辨率单位
MagickSetImageVirtualPixelMethod — sets the virtual pixel method for the current active image(设置虚像素??)
MagickSetImageWhitePoint — 设置图像白点色度
MagickSetInterlaceScheme — 设置MagickWand图像序列交错方案
MagickSetLastIterator — 设置MagickWand图像列表迭代器
MagickSetPassphrase — 设置密码
MagickSetResolution — 设置分辨率
MagickSetResourceLimit — 设置特定资源限额,兆字节
MagickSetSamplingFactors — 设置采样系数
MagickSetSize — MagickSetWandSize() 别名
MagickSetWandSize — 设置 MagickWand 大小
MagickSharpenImage — 锐化图像或图像通道
MagickShaveImage — 修整图像边缘像素
MagickShearImage — 沿幻灯片x轴和y轴边缘建立平行四边形
MagickSolarizeImage — 在图像上应用特殊效果
MagickSpliceImage — 在图像上拼接固定颜色
MagickSpreadImage –
MagickSteganoImage — 隐藏数字水印
MagickStereoImage –
MagickStripImage — 删除图像的说明资源和注释
MagickSwirlImage — 以图像中心像素为圆心旋转
MagickTextureImage — 在图像上交叉拼贴纹理
MagickThresholdImage — 改变图像高对比度
MagickTintImage — 应用色彩到图像
MagickTransformImage –
MagickTrimImage — 删除背景中边界相同的颜色
MagickUnsharpMaskImage — 锐化图像或通道
MagickWaveImage — 在图像上建立”涟漪”效果
MagickWhiteThresholdImage –
MagickWriteImage — 把图像写入文件
MagickWriteImageFile — 把图像写入到PHP流
MagickWriteImages — 把MagickWand图像序列写入到文件
MagickWriteImagesFile — 把MagickWand图像序列写入到PHP流
NewDrawingWand — 建立DrawingWand资源
NewMagickWand — 建立MagickWand资源
NewPixelIterator — 建立PixelIterator资源
NewPixelRegionIterator — 建立PixelIterator资源
NewPixelWand — 建立PixelWand资源
NewPixelWandArray — 把PixelWand资源返回成一个数组
NewPixelWands — NewPixelWandArray()别名
PixelGetAlpha — 返回PixelWand资源的标准透明度数
PixelGetAlphaQuantum — returns the alpha Quantum color value of the PixelWand(返回PixelWand资源的标准透明分配量??)
PixelGetBlack — 返回PixelWand资源的标准黑色值
PixelGetBlackQuantum — returns the black Quantum color of the PixelWand(返回PixelWand资源的标准黑色分配量??)
PixelGetBlue — 返回PixelWand资源的标准蓝色值
PixelGetBlueQuantum — returns the blue Quantum color of the PixelWand(返回PixelWand资源的标准蓝色分配量??)
PixelGetColorAsString — 返回 PixelWand 的颜色字符串
PixelGetColorCount — 返回PixelWand相关颜色统计
PixelGetCyan — 返回PixelWand资源的标准蓝绿色值
PixelGetCyanQuantum — returns the cyan Quantum color of the PixelWand (返回PixelWand资源的标准蓝绿色分配量??)
PixelGetException — 返回PixelWand的错误描述和类型
PixelGetExceptionString — 返回PixelWand的错误描述
PixelGetExceptionType — 返回PixelWand的错误类型
PixelGetGreen — 返回PixelWand资源的标准绿色值
PixelGetGreenQuantum — returns the green Quantum color of the PixelWand (返回PixelWand资源的标准绿色分配量??)
PixelGetIndex — 返回PixelWand的色图索引
PixelGetIteratorException — 返回PixelIterator的错误描述和类型
PixelGetIteratorExceptionString — 返回PixelIterator的错误描述
PixelGetIteratorExceptionType — 返回PixelIterator的错误类型
PixelGetMagenta — 返回PixelWand资源的标准紫红色值
PixelGetMagentaQuantum — returns the magenta Quantum color of the PixelWand(返回PixelWand资源的标准紫红色分配量??)
PixelGetNextIteratorRow — 返回PixelIterator的下一行
PixelGetOpacity — 返回PixelWand资源的标准不透明色
PixelGetOpacityQuantum — returns the opacity Quantum color of the PixelWand (返回PixelWand资源的标准不透明色分配量??)
PixelGetQuantumColor — 返回一个数组,组成了红,绿,蓝和不透明量子色值的PixelWand
PixelGetRed — 返回PixelWand资源的标准红色
PixelGetRedQuantum — returns the red Quantum color of the PixelWand(返回PixelWand资源的标准红色分配量??)
PixelGetYellow — 返回PixelWand资源的标准黄色
PixelGetYellowQuantum — returns the yellow Quantum color of the PixelWand(返回PixelWand资源的标准黄色分配量??)
PixelResetIterator — 重设PixelIterator资源
PixelSetAlpha — 返回PixelWand资源的标准透明色
PixelSetAlphaQuantum — sets the alpha Quantum color of the PixelWand (返回PixelWand资源的标准透明色分配量??)
PixelSetBlack — 返回PixelWand资源的黑色
PixelSetBlackQuantum — sets the black Quantum color of the PixelWand(返回PixelWand资源的黑色分配量??)
PixelSetBlue — 返回PixelWand资源的蓝色
PixelSetBlueQuantum — sets the blue Quantum color of the PixelWand (返回PixelWand资源的蓝色分配量??)
PixelSetColor — 设置字符串为彩色
PixelSetColorCount — 设置PixelWand色彩总数
PixelSetCyan — 返回PixelWand资源的标准蓝绿色
PixelSetCyanQuantum — sets the cyan Quantum color of the PixelWand (返回PixelWand资源的蓝绿色分配量??)
PixelSetGreen — 返回PixelWand资源的标准绿色
PixelSetGreenQuantum — sets the green Quantum color of the PixelWand (返回PixelWand资源的绿色分配量??)
PixelSetIndex — 设置色图索引
PixelSetIteratorRow — 设置PixelIterator当前行
PixelSetMagenta — 返回PixelWand资源的标准紫红色
PixelSetMagentaQuantum — sets the magenta Quantum color of the PixelWand (返回PixelWand资源的紫红色分配量??)
PixelSetOpacity — 返回PixelWand资源的标准不透明色
PixelSetOpacityQuantum — sets the opacity Quantum color of the PixelWand(返回PixelWand资源的不透明色分配量??)
PixelSetQuantumColor — 设置PixelWand红,绿,蓝,以及可选不透明量子色
PixelSetRed — 返回PixelWand资源的标准红色
PixelSetRedQuantum — sets the red Quantum color of the PixelWand (返回PixelWand资源的红色分配量??)
PixelSetYellow — 返回PixelWand资源的标准黄色
PixelSetYellowQuantum — sets the yellow Quantum color of the PixelWand(返回PixelWand资源的黄色分配量??)
PixelSyncIterator — 同步PixelIterator
PopDrawingWand — 释放当前DrawingWand ,返回上一个DrawingWand
PushDrawingWand — 克隆新的 DrawingWand
WandGetException — 返回任意wand/PixelIterator错误描述和类型
WandGetExceptionString — 返回任意wand/PixelIterator错误描述
WandGetExceptionType — 返回任意wand/PixelIterator错误类型
WandHasException — 确定任意 wand/PixelIterator是否包含错误

转自 http://bbsfine.net/detail.php?thread_id=1519&post_id=2891

市场决定技术!

商业周刊发表了一篇《摩托罗拉失落的十年》的文章,中间指出了一个很有深意的哲学:

其根源正在于 以技术而非市场驱动的摩托过度为“工程师文化”主导,没有学会从用户和市场需求的角度来反求技术战略,而是习惯于从技术蓝图出发去勾画市场。

“铱星”计划基于摩托内部工程师们的一个恢弘构想:搭建一个低轨道卫星网络,覆盖包括南北极及各大海域的整个地球,使人类在地球上任何“能见到天空 的地方”都可以进行无缝隙的永不中断的通信联络,打造“真正意义上的全球通”。除了铱星计划,摩托还启动了另一个名为“Teledesic LLC”的卫星计划,用以传输声音、数据和手持设备的高速互联网接入服务。

以卫星通信超越地面移动通信,是一次巨大的赌局。如果卫星通信后来真的成了气候,摩托罗拉也将越过第二代地面通信技术,直接由模拟时代的霸主晋 升为卫星通信时代的垄断者。而对于动辄能开创一个新工业的摩托罗拉和高尔文家族来说,在别人看来超乎想象的构想从来不足畏,它非常擅长以这种路径从一个工 业跃迁到另一个更有未来的工业。而且放眼全球,当时只有摩托罗拉有技术能力和财力牵头搞铱星系统。因此老高尔文决定上马铱星,绝不仅仅是出于商业利益考虑 ——高尔文家族素有造福全人类的梦想,铱星也承载了老高尔文天降大任的使命感。

摩托罗拉的这一构想的确有其合理性。1987年“铱星”计划提出时,移动电话的全球普及率还不到10%,不仅网络和终端普及率低,通话地域有 限,而且最先商用的GSM网间漫游和切换时也时常因技术原因而发生掉线、失真等故障。一旦铱星成功,人类就将一步跨越到最高级的通信时代,摩托将再次泽被 全人类。

“铱星”1991年正式立项,对于这个耗资数百亿美元的项目,摩托罗拉表现出其自负和刻舟求剑式的思维。美国“雷鸟”商学院 (ThunderBird)后来的一份研究报告称,摩托罗拉花在铱星项目技术与商业可行性论证上的时间仅仅1年——从1987年底到1988年底, 1989年秋,老高尔文便在公司内部宣布将上马铱星。1990年初,摩托成立了由20名精英组成的铱星项目团队。

事后证明,摩托罗拉既没有预见到第二代数字移动通讯会很快以非常简单的技术手段解决网络漫游问题:随着基站铺设速度的指数式增长,GSM网络能 以比铱星低得多的成本实现几乎覆盖全球的自由通信;它也没有意识到一个常识,手机用户绝大部分是在建筑物内或车内通话,而非那些人迹罕至的“能见到天的地 方”。据报道,早在1990年代初就有一位运营商的高管曾经提醒过摩托罗拉,运营商不可能卖出这种“用户必须首先将自己置于在电话天线和卫星之间没有任何 障碍物的地点才能顺利使用”的电话。

摩托罗拉也高估了自己实现铱星构想的效率。原计划于1995年投入运营的铱星系统,由于技术太复杂和融资等方面的原因,直到1998年11月才 投入运营。在这期间,全球移动电话的普及率快速提升,1992年是超过25%,2000年是超过45%。早期的技术问题也早已得到解决,“人们需要铱星” 的理论基础和市场基础都已经不复存在,摩托罗拉早就应该“壮士断腕”及时止损。

但摩托罗拉却选择继续坚守这个已经明显不合时宜的“让地球村真正变小”的技术理想。历时12年,耗资50多亿美元,由66颗卫星组成的铱星系统 正式投入商业运营后,摩托罗拉原本预期到1998年底拥有5万用户,但却仅有1万用户愿意买单,直到其破产时也只有5.5万名用户。铱星一年的运营维护费 用高达数亿美元,要想实现赢利最少需要65万个用户。

摩托罗拉原本预计到2000年铱星收入将达到26亿美元,但1999年第一季度,铱星亏损已达5.05亿美元。2000年3月,美国联邦破产法 院宣布背负40多亿美元债务的铱星公司破产,留下一堆至今还没有结果的财务官司和66颗在太空游荡的美丽卫星。而此后,由于种种后文将述及的原因,直到 2001年,拥有铱星公司17.7%股份的摩托罗拉才从这个巨大的无底洞中抽身。

今天的铱星在被一家私人股权基金以不到当初投资额1%的低价买下,拥有了超过20万用户和近3亿美元的营业额,似乎开始起死回生,但这一切已经与摩托罗拉无关了。

从技术角度看,铱星系统是真正的科技精品。“我常常想,我们这些被称为高科技的互联网公司做的东西和铱星系统相比,简直就像是玩具。” Google公司研究员吴军在Google黑板报上感叹到。但从商业的角度,铱星却是不折不扣的“在错误时间认准错误市场投入的错误产品”。其根源正在于 以技术而非市场驱动的摩托过度为“工程师文化”主导,没有学会从用户和市场需求的角度来反求技术战略,而是习惯于从技术蓝图出发去勾画市场。当它在技术判 断上出现重大偏差时,遭到市场的惩罚也就不奇怪了。

APC for PHP

APC is a free, open, and robust framework for caching and optimizing PHP intermediate code

可以利用APC将php的程序缓存到内存中,这样不用每次请求都消耗解析资源,FreeBSD下安装很方便:

cd /usr/ports/www/pecl-APC
make install clean

然后重启你的webserver即可。现在hlddn.com就运行在APC环境下。

PHP5.2.5_1发布,修正zend_mm_heap corrupted错误

终于等到5.2.5_1的发布了,可以摆脱这个zend_mm_heap corrupted错误了。

歌华宽带 TP-LINK无线路由 wifi网路 E61i

家里用的是歌华的宽带,Cable Modem方式。买了一个TP-LINK WR541G+的无线路由器,用来搭建家庭无线局域网。搭建还算简单,按照说明书将Modem与路由器连上,然后用网线将一台电脑连上路由器,进入路由器的操作界面配置一下就行。需要注意的是上网方式选择动态IP,然后一定要注意的是选择左侧菜单的“网络参数”->“MAC地址克隆”,然后在右侧的界面中点击“克隆MAC地址”,将你使用机器的MAC地址克隆到路由器上,不然无法获取IP。不知道这个是歌华的限制,还是路由器本身的问题。

路由器运行时间:“5 day(s) 11:57:21” ,两台电脑,eMule正常使用,总体效果还是不错的。无线效果也不错,欧版的Nokia E61i,支持wifi功能,隔一堵墙信号满格,现在使用手机上网的速度非常理想,以后测试WAP就方便了。

采集类网站、免费建站程序是下给互联网的慢性毒药

采集类网站、免费建站程序是下给互联网的慢性毒药

下一页 »