杜甫被后人称为什么| 姑息性化疗什么意思| 怕老婆的男人说明什么| 距离产生美是什么意思| 胃窦隆起是什么意思| 颈椎不舒服挂什么科| 肚子痛什么原因| 体检生化项目查什么| 尿酸高吃什么可以降下去| 女人喝黄酒有什么好处| 女人梦见大蟒蛇是什么征兆| sku是什么意思| 每天吃鸡蛋有什么好处和坏处| 小肠气是什么病| gxg是什么牌子| 阿托伐他汀钙片有什么副作用| 不停的出汗是什么原因| 藏红花有什么功效| 补肝血吃什么食物最好| 樟脑丸是干什么的| 深喉是什么意思| 四维空间是什么样子| 嘴唇紫红色是什么原因| 吃什么通便| sunglasses什么意思| 敏使朗是什么药| 泡打粉是什么东西| 麦字五行属什么| 右边肚子疼是什么原因| 4p是什么意思| 尿道口灼热感吃什么药最快| 梦见很多肉是什么意思| 为什么会打雷| 腿疼膝盖疼是什么原因| 浸洗是什么意思| 血小板计数偏高是什么意思| 哺乳期吃什么下奶| 儿童去火吃什么药| 喉咙痛头痛吃什么药| 肚脐上面疼是什么原因| 现代是什么时候| 面瘫什么意思| 红加黄是什么颜色| 市盈率和市净率是什么意思| 收入是什么意思| 蜘蛛吃什么食物| 火字旁跟什么有关| 肺气阴两虚吃什么中成药| 刘亦菲为什么不结婚| 河南有什么市| 黄芪入什么经| 西洋菜是什么菜| 皲裂什么意思| 墨子是什么家| 甲状腺结节挂什么科| ra是什么病| 梦见吵架是什么意思| 射手座和什么座最配| 九二年属什么| 肌层彩色血流星点状是什么意思| 鲱鱼罐头为什么这么臭| 贪恋是什么意思| 外阴萎缩是什么症状| 鸭子吃什么| 风雨雷电代表什么生肖| 凉瓜是什么瓜| qt什么意思| 县级以上医院是指什么| 抗hbc阳性是什么意思| 一月来两次月经是什么原因| hpa是什么单位| 天秤座女和什么星座最配| 尿等待是什么症状| 金鱼吃什么食物| camper是什么牌子| com代表什么意思| 且行且珍惜什么意思| 摩羯男喜欢什么类型的女生| 什么情况下需要打破伤风针| ss是什么意思| 昆仑玉什么颜色最贵| 野生型是什么意思| 熊是什么生肖| 梦见和妈妈吵架是什么意思| 小狗需要打什么疫苗| 有冬瓜西瓜南瓜为什么没有北瓜| 胸胀是什么原因| 二十三岁属什么生肖| 头发多剪什么发型好看| 快闪店是什么意思| 来姨妈喝什么比较好| 腹泻可以吃什么| mk包包属于什么档次| 美国为什么不禁枪| 南瓜和什么相克| 什么茶刮油| 手腕疼去医院挂什么科| 关节痛吃什么药| 九三年属鸡是什么命| 孤僻是什么意思| 什么粥减肥效果好| 沙拉是什么意思| 我到底是什么| 苯磺酸氨氯地平片是什么药| 狗狗呕吐是什么原因| 狗为什么会吐| 垂爱是什么意思| 什么症状吃藿香清胃胶囊| 下雨天适合穿什么衣服| 颈椎病吃什么药最好效果| 5月25是什么星座| 白菜炒什么好吃| 结肠炎吃什么药好| 马冬梅是什么电影| 娘娘命是什么样的命| 家有喜事指什么生肖| 惹是什么意思| 血糖高的人吃什么水果| cpap是什么意思| 阴囊湿疹吃什么药| 择期手术是什么意思| 超敏c反应蛋白正常说明什么| 花中之王是什么花| 接触性皮炎用什么药膏| 包皮龟头炎吃什么药| 肝部有阴影一般都是什么病| 上午九点是什么时辰| 精索炎吃什么药最好| 堕胎是什么意思| 九死一生是指什么生肖| 皮肤暗黄是什么原因造成的| 飞机加什么油| 右位是什么意思| 胆是起什么作用的| 什么是骨质增生| 什么是纸片人| 女的学什么手艺最赚钱| d是什么意思| 阑尾粪石是什么意思| 女生无缘无故头疼是什么原因| 现役是什么意思| 298什么意思| 全麻是什么感觉| mri检查是什么| 王火火念什么| 二级产前超声检查是什么| 头里面有肿瘤有什么症状| 第一次什么感觉| 食是代表什么生肖| 边鱼是什么鱼| vampire是什么意思| 牙痛用什么药止痛快| 北极熊代表什么生肖| 什么是佝偻病有什么症状| 憩是什么意思| 胃炎吃什么消炎药| 隐匿是什么意思| 白萝卜煮水喝有什么功效和作用| 呵呵代表什么意思| 什么是低筋面粉| 4.14是什么星座| zf是什么意思| 晕车吃什么能缓解| 真心话大冒险问什么| 为什么刚吃完饭不能洗澡| 11.19是什么星座| 祛湿吃什么药| 抗核抗体是什么| 什么是甲亢| 血压偏低有什么危害| 超标是什么意思| 伤元气是什么意思| 瘊子是什么| 吃什么鱼最健康| 尿酸高适合喝什么汤| 手不自主颤抖是什么病| 鼻子红是什么原因| 黑曜石属于五行属什么| 滑膜炎吃什么药能治好| 静脉曲张是什么原因引起的| 支原体弱阳性是什么意思| 女生的阴道长什么样| 眼睛五行属什么| 香港脚是什么| 胸闷想吐是什么原因| 积聚病什么意思| 支气管炎能吃什么水果| 撕脱性骨折是什么意思| 地三鲜是什么| 什么是硬下疳| 孕期腰疼是什么原因| 细软是什么意思| 文心什么字| 无缘无故头疼是什么原因| 锁骨疼挂什么科| 鱼有念什么| 桑拿是什么| 什么茶最好| 渡劫是什么意思| 豆腐吃多了有什么坏处| 低血压高是什么原因| 包皮炎吃什么药| 郁金香的花语是什么| 学美容要学些什么| 番茄是什么时候传入中国的| 87年的兔是什么命| 什么叫红颜知己| 双子座男和什么座最配对| 什么样的智齿需要拔| 嘴角生疮是什么原因| 七月四日是什么星座| 嘴唇发乌是什么原因| 与世隔绝的绝是什么意思| 梦见大棺材是什么预兆| 兵马未动粮草先行是什么意思| 为什么会长痘| 饭票是什么意思| 蜜糖冲水喝有什么功效| 皮炎是什么原因引起的| 弊病是什么意思| 夏天适合种什么植物| 9月份怀孕预产期是什么时候| 彩色多普勒超声检查是什么| sa什么意思| 儿童腮腺炎挂什么科| 体检前三天不能吃什么| 深千尺是什么意思| 十二是什么意思| 橡胶过敏是什么症状| 宫颈病变是什么原因引起的| 4.28是什么星座| 胎儿停止发育是什么原因造成的| 肩周炎属于什么科室| 奕什么意思| 心气不足吃什么中成药| 女人叫床最好喊什么| 放我鸽子是什么意思| 男人耳后有痣代表什么| 细胞是什么| 腘窝囊肿挂什么科| 垮掉是什么意思| edsheeran为什么叫黄老板| 血热是什么原因引起的| 内痔是什么| 磨皮是什么意思| qid医学上是什么意思| 仪表堂堂是什么生肖| 三观是指什么| 沙茶酱做什么菜最好吃| 大便呈绿色是什么原因| 什么样的充电宝能带上飞机| 12.28是什么星座| ooh什么意思| 喝柠檬茶有什么好处| 马铃薯是什么| 茶氨酸是什么| 智齿拔了有什么影响| 豆包什么意思| 什么话| 5.29是什么星座| 总胆红素偏高是什么引起的| 孕妇建档是什么意思| 文化大革命是什么时候开始的| 什么原因引起抽搐| 百度Jump to content

自己创办的公司,如何避免被 VC 取代 CEO 的位置

From mediawiki.org
百度 聚众实施前款行为的,对首要分子处十日以上十五日以下拘留,可以并处一千元以下罚款。

Base revision: r95304

General notes

[edit]
  • You're adding a table where you permanently map an (ns,title) pair to an ID. Is this because you want the ID to keep referring to the same title through moves etc, unlike page IDs? I guess my question is: is there a specific reason why you're not using page IDs?
    • Another thing to consider may be deletion of a page and re-creation of the same page at a later time. As well as disambiguation/split of page, where keeping the page_id would make an assumption of which definition would be intended (instead of the title, which would then have become a disambigpage) Krinkle 00:05, 29 September 2011 (UTC)
  • There's a layout bug in IE7, see this screenshot

ShortUrl.php

[edit]
Done in r103035
  • 'dependencies' => array( 'jquery' ) is unnecessary. jQuery is guaranteed to be present
  • Configuration variables (you have only one in this case) should be near the top of the file, clearly marked as such, have a documentation comment. Since the default is null, you should explain what that means too

ShortUrl.i18n.php

[edit]
Done in r103035
  • Don't Use Title Case (Or Otherwise Use Too Many Capitals), The People At TranslateWiki Don't Like That. Specifically, (No Short should not be capitalized

ShortUrl.hooks.php

[edit]
Done in r103035
  • Line 24: don't do a loose comparison with null, do a strict comparison instead
  • Line 25: you need to use getCanonicalUrl() here instead of getFullUrl() so things will work properly on wikis with protocol-relative URLs. You couldn't have known this because getCanonicalUrl() and most of the other protocol-relative URL support code didn't even exist yet when you wrote this code

ShortUrl.utils.php

[edit]
Done in r103035
  • Line 28: you probably want getPrefixedText() rather than getFullText(). The latter will return different values for 'Foo' and 'Foo#Bar', even though they'll map to the same su_id and the same base36 thing.
  • Line 32: there's a convenient function called $dbr->selectRow() that returns a single row object or false. It's specifically intended for queries like these where you only want one row. It adds LIMIT 1 to the query but that's not a problem here
  • decodeURL() does not account for the possibility that the short URL ID does not occur in the database. In that case it returns an invalid (!!!) Title object with an empty string as the title. There is a check in SpecialShortUrl::execute() that shows an error page if decodeURL() returns false or null or something, but that code is never reached because it always returns an object. Instead, the code will try to redirect to a page with an empty name, and it so happens that that redirects you to the main page.
    • The way the error message is done looks wrong anyway. $wgOut->showErrorPage() should be used for that

shorturls.sql

[edit]
Done in r103035

ext.shortUrl.js

[edit]
Done in r103035
  • Line 4: url is not escaped here. Use something like $( '<a>' ).addClass( 'foo' ).attr( 'href', url ).text( url ) so things are escaped properly

ext.shortUrl.css

[edit]
Done in r103035
  • display: Block; should not be capitalized
  • Applying display: block to the link has a weird side effect where the clickable area extends all the way to the right, see this screenshot

populateSortUrlTable.php

[edit]
Done in r103665.
  • Line 29: you can't just select all rows from the page table in one query. Here's why:
mysql> SELECT COUNT(*) FROM page;
+----------+
| COUNT(*) |
+----------+
| 24849480 |
+----------+
1 row in set (2 min 38.66 sec)
  • Using $insertBuffer to insert rows in batches of 100 is a good idea. However, you should also
    • select stuff from the page table in 100-row batches too. You can do that with something like SELECT stuff FROM page WHERE page_id > $previousPageID ORDER BY page_id LIMIT 100
    • print progress markers for each batch rather than for each row, so you get something like 100 titles done \n 200 titles done \n 223 titles done instead of 1 titles done \n 2 titles done \n 3 titles done
    • increment $rowCount before printing, not after. Currently it starts at zero and finishes one too low
    • call wfWaitForSlaves() after inserting each batch to make sure replication lag doesn't go through the roof while you populate your 25 million-row table
    • print "done" at the end so the user knows the script finished properly rather than dying in the middle or something
身份证号码代表什么 舌头发红是什么原因 海市蜃楼是什么现象 为什么会得牙周炎 菊粉是什么
牙龈起泡是什么原因 嫑怹是什么意思 什么叫世家 r代表什么 宫颈多发纳囊是什么病
trp是什么氨基酸 步兵什么意思 红醋是什么醋 为什么总是耳鸣 全麦面包是什么做的
狗狗能看见什么颜色 什么时候喝蜂蜜水最好 什么牙什么嘴 冲正是什么意思 玻璃体混浊用什么眼药水
04年属什么生肖hcv8jop5ns8r.cn 脉弱是什么意思hcv8jop7ns3r.cn 荨麻疹吃什么药效果好jinxinzhichuang.com 黄腔是什么意思xianpinbao.com 有酒瘾是什么感觉hanqikai.com
jackjones是什么品牌hcv9jop0ns2r.cn 过期的酸奶有什么用hcv7jop7ns2r.cn 为什么会口臭的原因hcv9jop0ns5r.cn 鲁迅字什么hcv9jop6ns3r.cn 水克什么hcv8jop5ns5r.cn
血压偏低是什么原因造成的hcv7jop5ns4r.cn 被蜜蜂蛰了有什么好处hcv7jop9ns0r.cn 没事在家可以做些什么hcv9jop8ns1r.cn 血红蛋白浓度偏高是什么意思hcv8jop1ns5r.cn 融合菜是什么意思hcv8jop7ns9r.cn
什么东西蛋白质最高hcv7jop5ns4r.cn 指南针是什么时候发明的hcv8jop3ns0r.cn 警察两杠三星是什么级别hcv7jop9ns5r.cn 神经性耳鸣有什么症状hcv7jop9ns7r.cn osprey是什么牌子hcv8jop4ns1r.cn
百度