zhangwuji156 zhangwuji156
关注数: 7 粉丝数: 501 发帖数: 45,302 关注贴吧数: 24
程序员就得上知天文下知地理 以前看过一个贴,标题应该和我这个差不多,说某地某年的一个时间,加1秒,结果值就增加了5分钟。一开始怀疑是API的bug,后来研究才发现,那个地区在那一年时间调整了。 前几天我们系统出问题,服务器显示时间和用户地本显示时间不一致,差一小时。诈一看,很简单,就是美国夏令时搞的。具体看代码到底哪出了问题,前端后端一边C++,一边Java,本来就挺麻烦。主要是美国时间那个乱…本来就东部时间、西部时间,再各自搞个用夏令时,还是不用夏令时(用户电脑可以自己设置)。 后来验证了两边代码,发现C++这边强制使用夏令时(估计那时候设计需求提出的,程序员没搞懂那个变量的含义就用了),转成UTC时间上传给服务器。Java那边不管服务器设置没设置使用夏令时,在转换成当地时间的时候都会使用夏令时。看起来没问题,但在冬天的时候会减少一小时。 我终于改好了这个bug,提交测试,测试说发现时区设置成开罗的时候,又不对了。 然后我搜了一下,跟我猜测的一样。 The history of daylight saving time in Egypt is complicated. It was cancelled in both 2015 and 2016, after having been abolished and reinstated several times. 开罗现在应该是取消了夏令时(确实挺烦人)这一制度。而测试用的Win7,没更新,就有bug。而我用的Win10,就没这个问题。
奇怪的无线鼠标症状 最近买了两个无线鼠标。工作电脑主要用有线。买无线鼠标跟笔记本配合在卧室躺床上玩。 先说第一个,用着用着,电脑上网就卡,然后逐渐卡到掉线。后来发现是无线鼠标跟路由器无线冲突,改了几次信道也没解决。就把无线鼠标送媳妇了(还骗她是送她的礼物……)反正媳妇在公司上网也用有线(虽然是个笔记本,还得占个USB口连网线),回家她用那鼠标也没见干扰无线。 再说第二个,那个不行,又买了一个。这回倒是不干扰wifi。但是长时间不动,就动不了了。我们知道,无线鼠标为了节电,通常长时间不动会休眠。休眠之后,晃一两下就好了。我这个,怎么晃,或点每个键,都活不过来。只能拔USB,或者拔电池。联系客户,让充好电。别说充电了,就是一直插着电它也是这样。我这人从来不给人差评,估计要是别人早就给差评了。然后就弃用了,一直放那儿也不用。 最近工作要用,突然发现,它这个问题竟然没了。虽然长时间不动,再动会卡一下,但立马就好了,不影响继续操作。当我满心欢喜把它再拿到卧室娱乐用,结果它又出现长时间不动活不过来的现象…… 你要说上一个跟wifi冲突,拿到卧室是因为wifi信号不好了,导致的,这还能理解。但是你一个无线鼠标,我就放笔记本旁边,怎么在卧室就有问题,在另一个办公的房间就没问题呢?奇了个怪。
一辈子学不完英语之306种说“醉了”的方式 A bit on A couple of chapters into the novel A public mess A weeble (you know, they wobble but they don't fall down) About gone About right Afflicted Afloat Alcoholized Alcoholled Alkied-up All gone All gowed up Ambushed Annihilated At peace with the floor Backwards Banged up on sauce (England) Bassackwards Beerified Behind the cork Beligerant Belted Bent Besoffen (German) Besotted Bezopen (Flemish) Bibacious Blackout Drive (GI term) Bladdered Blasted Bleary Eyed Blitzed Blitzkrieged Blobbin' Blotto (Ireland) Blowin' a 2 Blowin' beer bubbles Blown-away Boiled Bolloxed (Ireland) Bombarded Bombed Boozed-up Borracho (Spanish) Brahms and List (pissed cockney ryming slang east London) Brandy-faced Broken Buckled (Ireland) Bull-dozed Bullet (Tennessee) Butt wasted Buzzed Can't see a hole in a ladder Canceled Caught the Irish flu Chemically enhanced Chemically imbalanced Cockeyed Cognacked Comblasted Comblinded Corked-up Count Drunkula Cracked Cranked Crocked Crushed Cued up Dead to the world Derailed Disorderly Dizzy as a coot Down the creek Drita (Norwegian) Driving home 'cause I can't ****ing walk Drucking Funk Drunk as a ships cat (Newcastle, England) Drunk as a hand cart (Newcastle, England) Drunk as a skunk Drunkity drunk Drunky drunk Embalmed Envergado (Honduran) Fears no man Feeling Irish Feeling no pain Fermented Fired-up Flamb�d Floatin' Floored Flutered (Ireland) Fractured Frayed Fried Fubar F*cked up Fully kroizoned Furschnickered Gansado (Portuguese) Gassed Gassosa (Italian) Gilded Ginned-up Glazed Goggled Gone Gone Borneo Gonzo Good to go Greased Had tutu (two too) many Half-cocked Half-cut (Ireland) Half-gone Hammered Happy Has a package on Has a perma smile Hooched-up Horizontal How-came-you-so? Hummin' Humored Hurting a turtle Imbibed Impaired In a ditch In his cups In rare form In the ozone In the gutter Inebriated Influenced Intoxed Intoxicated Invincible Jacked Jazzed Jazzed-up Jiggered JD'd to the max Juiced Just south of bejesus K.O.'d Keilazarus (Holland) Keyed La Femme Drunkita Lazarus (Holland) Leaked Leanin' Leg-less Licked Liquored up Lit Lit up Langered (Ireland) Loaded Locked (Ireland) Logged (Canadian, eh) Looking like "Weekend At Bernie's" Looped Lubed up Lubricated Lushed Lushed-up Mareado (Spanish) Marinated Massacred Merry (Ireland: drunk but can still walk) Messed up Mingin'(Scotland) Mortal drunk (Newcastle, England) Not so Farfrompuken Nuked Off of his trolley Off ya face (Australia) Off ya nut (Australia) Ossified (Ireland) Out of his mind Out of his tree (Australia) Out of it Paralatic (Ireland) Pealaid (S. Louisiana) Pickled Pie eyed Pissed Pissed as a fart Pissed as a newt Pissed out his face Pissin' Plastered Plowed over Poegaai (South Africa) Poisoned Polluted Possessed Put one on Quaffed Rat-arsed (London) Redirected Reekin' (Scottish) Ripped Roaring (Ireland) Rocked Rooked Roped Ruined Rummed-up Saturated Sauced Schlonkered Schnockered Schtumphy Schwacked Screwed Scuppered Seasoned Seeing triple Shellacked Shickered (Australia) Shit faced Shithoused Silly Slambasted Slammed Slappin' happy Slickered Slobbered Sloppy Sloshed Slozzled Smashed Smoked Smuckered Smurfed Up Snockered So lit you could read by him So wet he ripples Soaked Sodden Sotally Tober Sotted Soused Sozzled Spanked Squashed Squiffy Stewed Stinko Stinky Stocious (Ireland) Stonato (Italian) Stoned Stooped Strontzat (Flemish) Stuk in men Kloten (Flemish) Stupid Stupified Sunk Tanglefooted Tanked Tanked-up Tatered Tepo (Spanish) Three sheets to the wind Throwed off Tied one on Tipped Tipsey To' up from the flo' up Toasted Topped off Torqued Totalled Toxed Toxic Trashed Trollied Trounced Trousered Tuned up Tweeked Umbriacco (Italian) Under the influence Under the table Unk-dray Unsober Vulcanized Wankered Wasted Wearing a wobbly boot (Australia) Well oiled Well-bottled Wet Whiskey-frisky Whiskeyfied Wicked retarded (Boston) Wired-up Wobbly Wrecked Ziced Zipped Zonked
首页 1 2 3 4 下一页