Day 2226 [转]关于程序员学英语的经验
学习编程语言却学不好书写编程语言教材的语言,别人我不知道,我自己就是个例子。
本文论述了程序员在阅读编程相关书籍时在英语方面应当注意的问题,值得参考。
本文原作者:Yurii,转载自:http://www.luanxiang.org/blog/archives/1236.html
学习编程语言却学不好书写编程语言教材的语言,别人我不知道,我自己就是个例子。
本文论述了程序员在阅读编程相关书籍时在英语方面应当注意的问题,值得参考。
本文原作者:Yurii,转载自:http://www.luanxiang.org/blog/archives/1236.html
这张图出现之后时间不长大白兔(upsuper,aka @Xidorn)就用avHash(不是你想的那个)算法把查找工具弄出来了,虽然理科很差的我到现在也没明白如何拉伸才能让所有的小头像均为31×31大小。
今天收拾办公桌的时候发现了一张当时用笨办法(PS画参考线orz)找小图边长规律的笔记,因为不知道哪会儿就可能扔了所以在这里备份一下:
此图上小图边长从第3张起的变化规律是:(2^n) x (31) , (32) 循环 (2≥n≥0, 正整数)
亦即:碎片变化变化规律为31, 32, 31, 31, 32, 31, 31, 31, 31, 32, 31, 31, 32, 31, 31, 31, 31, 32, …
横纵相同。猜想可能是图片经过缩放造成的吧?我不知道这叫什么数列……
2013 / 12 / 11
由于本人已经从洛奇AFK,本页面不再更新,请前往YY补丁区查找下载新版本。
This page is no longer updated since I do not play Mabinogi anymore, please visit the patch board of YYDZH forum for latest updates of the patches.
2013 / 06 / 02
发现访问来源里有不少大陆地区之外的,甚至有来自日本雅虎的搜索结果……〇痛地写了个英文提示方便这些人看。
注:此处只是转载,原发布帖请去YY补丁区查看,如果害怕这里有病毒请不要在这里下。
Notice: the following content are forwarded from YYDZH forum. If you really care about virus pollution of forwarded contents, please click on the original link to download from the source.
HS绕过工具CrackShield(全服通用,支持Windows 8)【YY原始发布地址 Original forum topic of YYDZH】
此版本更新调用方法,使用前务必删除或改名旧版的HSLaunch.exe和dinput8.dll
Caution: From version R15 Crackshield was updated and is completely NOT compatible with the old files, please delete the old HSLaunch.exe and dinput8.dll before putting the new one into your Mabinogi directory.
下载:
Ver.R17: CrackShield_2.0r17.zip(10KB)
更新时间/Update time: 2013 – 05 -19
MD5:0FA030411B685A5A12D3E27BC62CCE52
Ver.R15: CrackShield_2.0r15.zip(12KB)
更新时间/Update time: 2013 – 04 – 30
MD5:408890E3BB61DE44DD468E1B0F13D530
内存补丁MLP 3.0.2(2013-05-08)
Ver 3.0.2:MLP_v3.0.2_yydzh.rar
MD5:17F4C4B9190D09EEC58FDCE485901332
Ver 3.0.1:MLP_v3.0.1_yydzh.rar
MD5:DC5D9D67051E1AE208F761CFF7FBBAD9
Ver 2.2.0:MLP_v2.2.0_yydzh.rar(200KB)
MD5:48A6AC083E3369C7556C983A0BECBA3B
海森堡多开MabinogiLoader
下载:MabinogiLoader.7z(49KB)
MD5:6488C1A28721795517889A15ABCA5BD2
使用方法 / Usage:
1、将压缩包内的HSLauncher.exe和dinput8.dll置于洛奇的安装目录下。
1.Extract HSLauncher.exe and dinput8.dll into your Mabinogi folder. (e.g. If you have Mabinogi installed into C:\Program Files\Mabinogi , then extract the files into this folder.)
2、每次启动游戏前,首先执行HSLaunch.exe,待托盘(屏幕右下角)中出现小盾牌并有气泡提示洛奇的安装路径(例如:C:\Program Files\Mabinogi)后再启动游戏。
2.Run HSLaunch.exe every time before you launch the game if you didn’t, and wait until the little shield icon (with blue (or red, as it may vary between versions) cross stripes on it) appear in the system tray (the area where your system usually display the clock and volume control icons) and the prompt bubble pops up with your Mabinogi installation path.
3、退出游戏后如果想关闭之,双击小盾牌即可。
3.Now you may launch you game and care about Crackshield no more. The way to end its process is double clicking on its tray icon.
海森堡多开使用方法 / Usage of the “Heisenburg (海森堡)” multi-launch assistant:
1、将压缩包内的MabinogiLoader.exe和MabinogiPlus.dll置于洛奇的安装目录下。
1.Extract MabinogiLoader.exe and MabinogiPlus.dll into your Mabinogi folder.
2、以后使用MabinogiLoader.exe启动游戏,可以优化Launcher的卡住问题。Vista / Win7用户如发现游戏无法启动,请使用右键菜单中的「以管理员身份运行」。一劳永逸地办法是:右键MabinogiLoader.exe,选择属性,在「兼容性」选项卡中为「以管理员身份运行此程序」打钩,点击确定退出。
2.Launch your game with MabinogiLoader.exe instead of the official Mabinogi.exe. This assistant program will solve the problem the freeze while examining the ping value of servers with single-threaded official launcher. If you found nothing happened after launching the MabinogiLoader.exe and you’re using Windows Vista or Windows 7, please have your right mouse key clicked on the Loader icon and select [Run as Administrator]. To avoid right clicking every time you want to launch game, right click on the icon and select [properties], and have the [Run as administrator] check-box checked in the [Compatibility] tab.
关于「Lost connection with Crackshield. Try Again?」/ Solving the Crackshield prompt of “Lost connection with Crackshield”:
检查小盾牌是否还在托盘内,如果没有,重新执行HSLaunch.exe,待路径气泡冒出来之后点击「重试」即可。
Check if Crackshield was terminated accidentally by checking if the shield icon is still in the system tray, and run HSLaunched.exe again if necessary.
关于给HSLaunch.exe建立快捷方式 / Making shortcut to HSLaunch.exe:
请确认快捷方式的工作路径(在快捷方式上点右键-属性-「快捷方式」选项卡-起始位置)是洛奇的安装目录,否则CrackShield可能因为找不到HS的所在路径而启动失败。
Make sure the working path (the ‘starting position’ in the shortcut properties) is your Mabinogi installation path. Otherwise Crackshield will fail to locate the HackShield and thus fail to start.
关于海森堡多开的快速启动模式 / The fast launch mode of “Heisenburg” multi-launcher:
海森堡多开程序带有快速启动模式,可以绕过Launcher直接启动游戏,使用方法为:使用MabinogiLoader.exe按正常流程(Launcher-选分区-检查更新-开始游戏)启动一次游戏之后,在游戏目录下找到MabinogiPlus.xml,使用记事本打开,将其中的<FastRun>0</FastRun>部分中的数字0改成1即可,下次使用海森堡多开时即可跳过Launcher。
Heisenburg multi-launcher has a fast-launch mode to skip the original launcher and launch the game client directly. You have to follow these instruction to configure the function:
1.Fully launch the game once by running MabinogiLoader.exe, including selecting the server in the launcher, checking the update and finally launch the client. This step is to let the multi-launcher save the command line of launching the client.
2.Open MabinogiPlus.xml in your Mabinogi folder, and look for <FastRun>0</FastRun>, change the figure “0” to “1”.
3.Next time just use the MabinogiLoader.exe and enjoy the fast launch of Mabinogi. If you are using Windows Vista or 7, please follow the section of usage of Heisenburg to run the multi-launcher as administrator, as the client.exe requires admin privileges.
饭否的oAuth认证文档在这里:https://github.com/FanfouAPI/FanFouAPIDoc/wiki/Oauth
如果采用他人已经写好的库,则基本不存在什么问题,而如果认证过程是自己写,并且之前又没有多少网络应用的编程经验,只看这个文档可能会走不少弯路。 继续阅读 “Day 2138 饭否oAuth验证学习笔记”
网上的解决方法都是一大抄,经拆解得出以下结论(已测试通过):
一、故障原因
由于开发人员偷懒或疏忽,将所有多图片字段显示的div都使用了同一个名称file_div,而上传图片的原理是添加文件后向file_div中添加一个此图片的条目,由于以上原因,除第一个之外的多图片都跑到第一个里面去了,然后上传时由于field错误,除了最后一次添加的图片都会被忽略,造成只能上传1张的假象。
二、解决方法缩略版:
①修改include/fields/images/form.inc.php,大约在27行的位置:
将$data .= ‘<div id=”file_div”>’;
修改为$data .= ‘<div id=”file_div_’.$field.'”>’;
(即是按照fieldid区分对应的field)
②修改images/js/common.js,大约在279行位置,var Filenum=1;向下:
鉴于需要重新构造函数,将原有AddInputFile和DelInputFile函数内容直接删除,替换为:
function AddInputFile(Field, fileName)
{
FileNum++;
var fileTag = "<div id='file_"+FileNum+"'><input type='file' name='"+Field+"["+FileNum+"]' size='20' onchange='javascript:AddInputFile(\""+Field+"\", \""+Field+"\")'> <input type='text' name='"+Field+"_description["+FileNum+"]' size='20' title='名称'> <input type='button' value='删除' name='Del' onClick='DelInputFile("+FileNum+", 1);'></div>";
var fileObj = document.createElement("div");
fileObj.id = 'file_'+FileNum;
fileObj.innerHTML = fileTag;
if(arguments.length == 1)
{
document.getElementById("file_div").appendChild(fileObj);
}else{
document.getElementById("file_div_"+fileName).appendChild(fileObj);
}
}
function DelInputFile(FileNum, fileName)
{
var DelObj = document.getElementById("file_"+FileNum);
if(arguments.length == 1)
{
document.getElementById("file_div").removeChild(DelObj);
}else{
document.getElementById("file_div_"+Field).removeChild(DelObj);
}
}
重新登录后台,更新所有缓存,再打开有多个多图片字段的内容编辑时,便不会再发生以前的状况了。
每次启动TM2009时,登录后过不了多久UAC窗口就会弹出对「selfupdate.exe」的启动提示,很烦人,
关掉自动更新和删除TM\Bin\Selfupdate.exe都是无效的,经搜索可通过以下方案解决:
0、关闭正在运行的QQ/TM。
1、打开C:\Users(用户)\你的用户名\AppData\Local\Temp,
删除selfupdate.exe和selfupdate.exe.manifest,并建立两个同名文件夹。
2、打开C:\Users(用户)\你的用户名\AppData\Roaming,
QQ用户继续打开QQ文件夹,TM用户继续打开TM文件夹,然后打开SelfBase文件夹,
删除selfupdate.exe并建立同名文件夹。
以上操作针对Win7用户,XP用户请将「Users(用户)」替换为「Documents and Settings」。
此时重新打开QQ/TM,UAC提示就不会再出现了。
1、请确认C:\Windows\System32下面audiosrv.dll的存在。
2、将下列文本保存为一个纯文本reg文件后双击导入,应该可以解决大多数问题。
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_AUDIOSRV]
“NextInstance”=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_AUDIOSRV\0000]
“Service”=”AudioSrv”
“Legacy”=dword:00000001
“ConfigFlags”=dword:00000000
“Class”=”LegacyDriver”
“ClassGUID”=”{8ECC055D-047F-11D1-A537-0000F8753ED1}”
“DeviceDesc”=”Windows Audio”
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_AUDIOSRV\0000\Control]
“ActiveService”=”AudioSrv”
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AudioSrv]
“DependOnService”=hex(7):50,00,6c,00,75,00,67,00,50,00,6c,00,61,00,79,00,00,00,\
52,00,70,00,63,00,53,00,73,00,00,00,00,00
“Description”=”管理基于 Windows 的程序的音频设备。如果此服务被终止,音频设备及其音效将不能正常工作。如果此服务被禁用,任何依赖它的服务将无法启动。”
“DisplayName”=”Windows Audio”
“ErrorControl”=dword:00000001
“Group”=”AudioGroup”
“ImagePath”=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\
6b,00,20,00,6e,00,65,00,74,00,73,00,76,00,63,00,73,00,00,00
“ObjectName”=”LocalSystem”
“Start”=dword:00000002
“Type”=dword:00000020
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AudioSrv\Parameters]
“ServiceDll”=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
61,00,75,00,64,00,69,00,6f,00,73,00,72,00,76,00,2e,00,64,00,6c,00,6c,00,00,\
00
“ServiceDllUnloadOnStop”=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AudioSrv\Enum]
“0″=”Root\\LEGACY_AUDIOSRV\\0000″
“Count”=dword:00000001
“NextInstance”=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\Root\LEGACY_AUDIOSRV]
“NextInstance”=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\Root\LEGACY_AUDIOSRV\0000]
“Service”=”AudioSrv”
“Legacy”=dword:00000001
“ConfigFlags”=dword:00000000
“Class”=”LegacyDriver”
“ClassGUID”=”{8ECC055D-047F-11D1-A537-0000F8753ED1}”
“DeviceDesc”=”Windows Audio”
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_AUDIOSRV]
“NextInstance”=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_AUDIOSRV\0000]
“Service”=”AudioSrv”
“Legacy”=dword:00000001
“ConfigFlags”=dword:00000000
“Class”=”LegacyDriver”
“ClassGUID”=”{8ECC055D-047F-11D1-A537-0000F8753ED1}”
“DeviceDesc”=”Windows Audio”
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_AUDIOSRV\0000\Control]
“ActiveService”=”AudioSrv”